Summary

Harness status: OK

Found 8 tests

Details

ResultTest NameMessage
Passwindow.postMessage should be able to transfer a WritableStream
Asserts run
Pass
assert_true(true, "the original stream should be locked")
    at Test.<anonymous> ( /streams/transferable/writable-stream.html:27:3)
Pass
assert_equals(function "function WritableStream() { [native code] }", function "function WritableStream() { [native code] }", "transferred should be a WritableStream in this realm")
    at Test.<anonymous> ( /streams/transferable/writable-stream.html:16:7)
Pass
assert_true(true, "instanceof check should pass")
    at Test.<anonymous> ( /streams/transferable/writable-stream.html:18:7)
Passa locked WritableStream should not be transferable
Asserts run
Pass
assert_throws_dom("DataCloneError", function "() => postMessage(ws, '*', [ws])", "postMessage should throw")
    at Test.<anonymous> ( /streams/transferable/writable-stream.html:34:3)
Passwindow.postMessage should be able to transfer a {readable, writable} pair
Asserts run
Pass
assert_false(false, "we should not be done")
    at Test.<anonymous> ( /streams/transferable/writable-stream.html:50:7)
Pass
assert_equals("hi", "hi", "chunk should have been delivered")
    at Test.<anonymous> ( /streams/transferable/writable-stream.html:51:7)
Pass
assert_true(true, "readable should be closed")
    at Test.<anonymous> ( /streams/transferable/writable-stream.html:53:7)
PassdesiredSize for a newly-transferred stream should be 1
Asserts run
Pass
assert_equals(1, 1, "desiredSize should be 1")
    at Test.<anonymous> ( /streams/transferable/writable-stream.html:74:3)
Passeffective queue size of a transferred writable should be 2
Asserts run
Pass
assert_equals(1, 1, "desiredSize should be 1")
    at Test.<anonymous> ( /streams/transferable/writable-stream.html:86:3)
Passsecond write should wait for first underlying write to complete
Asserts run
Pass
assert_false(false, "second write should not have resolved yet")
    at Test.<anonymous> ( /streams/transferable/writable-stream.html:108:3)
Passabort() should work
Asserts run
Pass
assert_array_equals(["abort", "p"], ["abort", "p"], "abort() should have been called")
    at Test.<anonymous> ( /streams/transferable/writable-stream.html:128:3)
Passwriting a unclonable object should error the stream
Asserts run
Pass
assert_equals(2, 2, "abort should have been called")
    at Test.<anonymous> ( /streams/transferable/writable-stream.html:141:3)
Pass
assert_equals("abort", "abort", "first event should be abort")
    at Test.<anonymous> ( /streams/transferable/writable-stream.html:142:3)
Pass
assert_equals("DataCloneError", "DataCloneError", "reason should be a DataCloneError")
    at Test.<anonymous> ( /streams/transferable/writable-stream.html:143:3)