Summary

Harness status: OK

Found 9 tests

Details

ResultTest NameMessage
PassStream objects created in expected globals
Asserts run
Pass
assert_equals(true, true, "reader was created in this global (.call)")
    at Test.<anonymous> ( /streams/readable-streams/global.html:45:5)
Pass
assert_equals(false, false, "reader was created in other global (new)")
    at Test.<anonymous> ( /streams/readable-streams/global.html:46:5)
Pass
assert_equals(false, false, "reader isn't coming from other global (.call)")
    at Test.<anonymous> ( /streams/readable-streams/global.html:48:5)
Pass
assert_equals(true, true, "reader isn't coming from other global (new)")
    at Test.<anonymous> ( /streams/readable-streams/global.html:49:5)
Pass
assert_equals(false, false, "otherController should come from other gloal")
    at Test.<anonymous> ( /streams/readable-streams/global.html:51:5)
Pass
assert_equals(true, true, "Promise comes from this global")
    at Test.<anonymous> ( /streams/readable-streams/global.html:55:5)
Pass
assert_equals(true, true, "returned object comes from this global")
    at Test.<anonymous> ( /streams/readable-streams/global.html:59:5)
FailCancel promise is created in same global as streamassert_equals: Cancel promise comes from the same global as the stream expected true but got false
    at Test.<anonymous> (https://wpt.live/streams/readable-streams/global.html:66:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at https://wpt.live/resources/testharness.js:738:36
    at new Promise (<anonymous>)
    at https://wpt.live/resources/testharness.js:737:20
Asserts run
Fail
assert_equals(false, true, "Cancel promise comes from the same global as the stream")
    at Test.<anonymous> ( /streams/readable-streams/global.html:66:5)
PassClosed Promise in correct global
Asserts run
Pass
assert_equals(true, true, "Closed promise in other global.")
    at Test.<anonymous> ( /streams/readable-streams/global.html:96:5)
PassReader objects in correct global
Asserts run
Pass
assert_equals(true, true, "Reader comes from this global")
    at Test.<anonymous> ( /streams/readable-streams/global.html:103:5)
Pass
assert_equals(true, true, "Promise still comes from stream's realm (this realm)")
    at Test.<anonymous> ( /streams/readable-streams/global.html:105:5)
Pass
assert_equals(true, true, "Object comes from other realm")
    at Test.<anonymous> ( /streams/readable-streams/global.html:107:5)
PassDesired size can be grafted from one prototype to another
Asserts run
Pass
assert_equals(1, 1, "Desired size is expected")
    at Test.<anonymous> ( /streams/readable-streams/global.html:113:5)
Pass
assert_equals(1, 1, "Grafting getter from other prototype still returns desired size")
    at Test.<anonymous> ( /streams/readable-streams/global.html:116:5)
PassClosing errored stream throws object in appropriate global
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => controller.close()", "Current Global controller")
    at Test.<anonymous> ( /streams/readable-streams/global.html:126:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => otherController.close.call(controller)", "Other global controller")
    at Test.<anonymous> ( /streams/readable-streams/global.html:127:5)
PassCan enqueue chunks from multiple globals
Asserts runNo asserts ran
PassCorrect errors and globals for closed streams
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => controller.enqueue(new otherGlobal.Uint8Array(10))")
    at Test.<anonymous> ( /streams/readable-streams/global.html:148:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => otherController.enqueue.call(controller, chunk)")
    at Test.<anonymous> ( /streams/readable-streams/global.html:149:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => otherController.enqueue.call(controller, new otherGlobal.Uint8Array(10))")
    at Test.<anonymous> ( /streams/readable-streams/global.html:150:5)
PassTee Branches in correct global
Asserts run
Pass
assert_equals(true, true, "Branch created in this global (as stream is in this global)")
    at Test.<anonymous> ( /streams/readable-streams/global.html:159:5)
Pass
assert_equals(true, true, "Branch created in this global (as stream is in this global)")
    at Test.<anonymous> ( /streams/readable-streams/global.html:160:5)