Async Tests and Promises

This test assumes ECMAScript 6 Promise support. Some failures are expected.

Summary

Harness status: OK

Found 7 tests

Details

ResultTest NameMessage
PassPromises are supported in your browser
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /resources/test/tests/functional/promise-async.html:16:3)
Pass
assert_equals("function", "function")
    at Test.<anonymous> ( /resources/test/tests/functional/promise-async.html:17:3)
Pass
assert_equals("function", "function")
    at Test.<anonymous> ( /resources/test/tests/functional/promise-async.html:18:3)
PassPromise resolution
Asserts run
Pass
assert_equals("x", "x")
    at Test.<anonymous> ( /resources/test/tests/functional/promise-async.html:26:9)
PassPromise rejection
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /resources/test/tests/functional/promise-async.html:40:9)
Pass
assert_equals("fail", "fail")
    at Test.<anonymous> ( /resources/test/tests/functional/promise-async.html:41:9)
PassPromises resolution chaining
Asserts run
Pass
assert_array_equals(["a", "b", "c"], ["a", "b", "c"])
    at Test.<anonymous> ( /resources/test/tests/functional/promise-async.html:66:9)
PassUse of step_func with Promises
Asserts runNo asserts ran
FailPromises and test assertion failures (should fail)assert_true: This failure is expected expected true got false
    at Test.<anonymous> (https://www1.wpt.live/resources/test/tests/functional/promise-async.html:92:9)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2638:25)
    at https://www1.wpt.live/resources/testharness.js:2685:35
Asserts run
Fail
assert_true(false, "This failure is expected")
    at Test.<anonymous> ( /resources/test/tests/functional/promise-async.html:92:9)
FailUse of unreached_func with Promises (should fail)assert_unreached: This failure is expected Reached unreachable code
Error
    at get_stack (https://www1.wpt.live/resources/testharness.js:4567:21)
    at new AssertionError (https://www1.wpt.live/resources/testharness.js:4560:22)
    at assert (https://www1.wpt.live/resources/testharness.js:4544:19)
    at assert_unreached (https://www1.wpt.live/resources/testharness.js:2392:10)
    at Test.<anonymous> (https://www1.wpt.live/resources/testharness.js:2731:13)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2638:25)
    at https://www1.wpt.live/resources/testharness.js:2685:35
Asserts runNo asserts ran