Promise Tests

This test demonstrates the use of promise_test alongside synchronous tests.

Summary

Harness status: OK

Found 4 tests

Details

ResultTest NameMessage
Passfirst synchronous test
Asserts run
Pass
assert_array_equals([], [])
    at Test.<anonymous> ( /resources/test/tests/functional/promise-with-sync.html:17:3)
Passfirst promise_test
Asserts run
Pass
assert_array_equals([1, 2], [1, 2])
    at Test.<anonymous> ( /resources/test/tests/functional/promise-with-sync.html:22:3)
Pass
assert_array_equals([1, 2], [1, 2])
    at  /resources/test/tests/functional/promise-with-sync.html:26:9
Passsecond synchronous test
Asserts run
Pass
assert_array_equals([1], [1])
    at Test.<anonymous> ( /resources/test/tests/functional/promise-with-sync.html:32:3)
Passsecond promise_test
Asserts run
Pass
assert_array_equals([1, 2, 3], [1, 2, 3])
    at Test.<anonymous> ( /resources/test/tests/functional/promise-with-sync.html:37:3)
Pass
assert_array_equals([1, 2, 3], [1, 2, 3])
    at  /resources/test/tests/functional/promise-with-sync.html:41:9