v8/test/promises-aplus
jkummerow@chromium.org d4d4d30204 Stop using urllib.urlretrieve() directly.
Using urllib for SSL connections when behind a proxy is known to be
broken, so apply the same fix from depot_tools r149742 and use a wrapper
around urllib2 instead.

R=jkummerow@chromium.org
TEST=run test262 behind corporate proxy

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

Patch from Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>.

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21402 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-05-21 09:25:05 +00:00
..
lib Add Promises/A+ Compliance Test Suite. 2014-03-17 10:03:01 +00:00
promises-aplus.status Re^3-land "Ship promises and weak collections" 2014-05-06 14:48:34 +00:00
README Add Promises/A+ Compliance Test Suite. 2014-03-17 10:03:01 +00:00
testcfg.py Stop using urllib.urlretrieve() directly. 2014-05-21 09:25:05 +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/