v8/test/promises-aplus
adamk 4b8200078a Remove unnecessary coupling between Promise tests and Object.observe
Many mjsunit tests (as well as the promises-aplus adapter scripts) were
using Object.observe simply for microtask-enqueueing purposes. Replaced
such uses with %EnqueueMicrotask.

Review URL: https://codereview.chromium.org/1246933002

Cr-Commit-Position: refs/heads/master@{#29779}
2015-07-21 17:17:07 +00:00
..
lib Remove unnecessary coupling between Promise tests and Object.observe 2015-07-21 17:17:07 +00:00
promises-aplus.status Enable access check tests that no longer fail with TF. 2014-08-14 13:24:57 +00:00
README Add Promises/A+ Compliance Test Suite. 2014-03-17 10:03:01 +00:00
testcfg.py Remove unnecessary coupling between Promise tests and Object.observe 2015-07-21 17:17:07 +00:00

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/