v8/test/webkit/fast/js/Promise-init-expected.txt
rossberg@chromium.org 2d48e06e52 Import Blink layout tests for Promises.
Import Blink layout tests for Promises.
We omitted some tests (for example workers tests).
We fixed some wrong test expectations.

BUG=347095
LOG=N
R=rossberg@chromium.org

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

Patch from Yutaka Hirano <yhirano@chromium.org>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19757 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-03-10 12:30:47 +00:00

20 lines
680 B
Plaintext

Test Promise construction.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS promise instanceof Promise is true
PASS promise.constructor is Promise
PASS thisInInit is undefined
PASS resolve instanceof Function is true
PASS reject instanceof Function is true
PASS new Promise() threw exception TypeError: Promise resolver undefined is not a function.
PASS new Promise(37) threw exception TypeError: Promise resolver 37 is not a function.
PASS promise = new Promise(function() { throw Error("foo"); }) did not throw exception.
PASS result.message is "foo"
PASS fulfilled
PASS result is "hello"
PASS successfullyParsed is true
TEST COMPLETE