Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 1 | This directory contains code for running Promise/A+ Compliance Test Suite[1]. |
| 2 | You can download the it from [1], or by specifying --download to |
| 3 | tools/run-tests.py. |
| 4 | Promise/A+ Compliance Test Suite requires Node environment and needs some |
| 5 | libraries. To run it in d8 shell, we provides some emulation functions in the |
| 6 | lib/ directory. |
| 7 | |
| 8 | - lib/adapter.js |
| 9 | - An adapter for harmony Promise used in Promise/A+ tests. |
| 10 | - lib/assert.js |
| 11 | - Emulates assert modules in Node. |
| 12 | - lib/global.js |
| 13 | - Provides global functions and variables. |
| 14 | - lib/mocha.js |
| 15 | - Emulates Mocha[2] test framework. |
| 16 | - lib/require.j |
| 17 | - Emulate require function in Node. |
| 18 | - lib/run-tests.js |
| 19 | - Run all describe tests. |
| 20 | |
| 21 | The emulation is not complete. Upgrading Promise/A+ tests will require |
| 22 | changing lib/ scripts. |
| 23 | |
| 24 | Sinon.JS[3], required by Promise/A+ tests, is also downloaded by run-tests.py. |
| 25 | |
| 26 | [1]: https://github.com/promises-aplus/promises-tests |
| 27 | [2]: http://visionmedia.github.io/mocha/ |
| 28 | [3]: http://sinonjs.org/ |
| 29 | |