blob: de15da362c8f0688cd7e95100bcfcbd0ff8d4bf0 [file] [log] [blame]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001This directory contains code for running Promise/A+ Compliance Test Suite[1].
2You can download the it from [1], or by specifying --download to
3tools/run-tests.py.
4Promise/A+ Compliance Test Suite requires Node environment and needs some
5libraries. To run it in d8 shell, we provides some emulation functions in the
6lib/ 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
21The emulation is not complete. Upgrading Promise/A+ tests will require
22changing lib/ scripts.
23
24Sinon.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