dbb7f982d3
This CL introduces Promises/A+ tests[1]. This CL doesn't contain the test itself: it will be downloaded by test cfg.py. This CL includes some helper JS functions to run the test in d8 shell. [1]: https://github.com/promises-aplus/promises-tests BUG=347095 LOG=Y R=rossberg@chromium.org Review URL: https://codereview.chromium.org/196733002 Patch from Yutaka Hirano <yhirano@chromium.org>. git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19973 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
30 lines
981 B
Plaintext
30 lines
981 B
Plaintext
This directory contains code for running Promise/A+ Compliance Test Suite[1].
|
|
You can download the it from [1], or by specifying --download to
|
|
tools/run-tests.py.
|
|
Promise/A+ Compliance Test Suite requires Node environment and needs some
|
|
libraries. To run it in d8 shell, we provides some emulation functions in the
|
|
lib/ directory.
|
|
|
|
- lib/adapter.js
|
|
- An adapter for harmony Promise used in Promise/A+ tests.
|
|
- lib/assert.js
|
|
- Emulates assert modules in Node.
|
|
- lib/global.js
|
|
- Provides global functions and variables.
|
|
- lib/mocha.js
|
|
- Emulates Mocha[2] test framework.
|
|
- lib/require.j
|
|
- Emulate require function in Node.
|
|
- lib/run-tests.js
|
|
- Run all describe tests.
|
|
|
|
The emulation is not complete. Upgrading Promise/A+ tests will require
|
|
changing lib/ scripts.
|
|
|
|
Sinon.JS[3], required by Promise/A+ tests, is also downloaded by run-tests.py.
|
|
|
|
[1]: https://github.com/promises-aplus/promises-tests
|
|
[2]: http://visionmedia.github.io/mocha/
|
|
[3]: http://sinonjs.org/
|
|
|