kangax/compat-table — pull request #375 by webbedspace (2014-12-30 07:11:39+00:00)
Title: Improved Promise tests, and added support for async testing

Closes #247. This makes the Promise test call `Promise#then` and `Promise#catch` and checks what behaviour results, and also adds `Promise.all` and `Promise.race` tests.

In order to get the Promise test to work, I needed to implement asynchronous test result writing. To do this, test functions may now, instead of returning true/false, instead at some point call `asyncTestPassed()`, which is a function of no arguments, provided by the testing environment, that records the test as passed regardless of execution order. `build.js` has been updated to provide such a function (which manually updates the class and text of the corresponding `	`) as has the `node.js` test runner script.

This is a re-do of #248, now fully up-to-date with the current codebase.