Summary

Harness status: OK

Found 9 tests

Details

ResultTest NameMessage
PassMessageEvent constructor called as normal function
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => MessageEvent("")", "Calling MessageEvent constructor without 'new' must throw")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:8:5)
PassDefault event values
Asserts run
Pass
assert_equals("test", "test", "type attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:17:3)
Pass
assert_equals(null, null, "target attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:18:3)
Pass
assert_equals(null, null, "currentTarget attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:19:3)
Pass
assert_equals(0, 0, "eventPhase attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:20:3)
Pass
assert_equals(false, false, "bubbles attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:21:3)
Pass
assert_equals(false, false, "cancelable attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:22:3)
Pass
assert_equals(false, false, "defaultPrevented attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:23:3)
Pass
assert_equals(false, false, "isTrusted attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:24:3)
Pass
assert_true(true, "timeStamp attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:25:3)
Pass
assert_true(true, "initMessageEvent operation")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:26:3)
Pass
assert_equals(null, null, "data attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:27:3)
Pass
assert_equals("", "", "origin attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:28:3)
Pass
assert_equals("", "", "lastEventId attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:29:3)
Pass
assert_equals(null, null, "source attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:30:3)
Pass
assert_array_equals([], [], "ports attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:31:3)
PassMessageEventInit dictionary
Asserts run
Pass
assert_equals("test", "test", "type attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:37:3)
Pass
assert_equals("testData", "testData", "data attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:38:3)
Pass
assert_equals("testOrigin", "testOrigin", "origin attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:39:3)
Pass
assert_equals("testId", "testId", "lastEventId attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:40:3)
Pass
assert_equals(object "[object Window]", object "[object Window]", "source attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:41:3)
Pass
assert_array_equals([object "[object MessagePort]"], [object "[object MessagePort]"], "ports attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:42:3)
PassPassing null for ports member
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {     new MessageEvent("test", { ports: null })   }")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:46:3)
Passports attribute should be a FrozenArray
Asserts run
Pass
assert_true(true, "Array.isArray() should return true")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:53:3)
Pass
assert_true(true, "Object.isFrozen() should return true")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:54:3)
Pass
assert_equals([], [], "ev.ports should return the same object")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:55:3)
Pass
assert_not_equals([], [], "initMessageEvent() changes ev.ports")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:59:3)
PassinitMessageEvent operation
Asserts run
Pass
assert_equals("test", "test", "type attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:66:3)
Pass
assert_equals(true, true, "bubbles attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:67:3)
Pass
assert_equals(false, false, "bubbles attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:68:3)
Pass
assert_equals("testData", "testData", "data attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:69:3)
Pass
assert_equals("testOrigin", "testOrigin", "origin attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:70:3)
Pass
assert_equals("testId", "testId", "lastEventId attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:71:3)
Pass
assert_equals(object "[object Window]", object "[object Window]", "source attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:72:3)
Pass
assert_array_equals([object "[object MessagePort]"], [object "[object MessagePort]"], "ports attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:73:3)
PassPassing null for ports parameter to initMessageEvent
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {     ev.initMessageEvent("test", true, false, "testData", "testOrigin", "testId", window, null)   }")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:78:3)
PassinitMessageEvent operation default parameter values
Asserts run
Pass
assert_equals(1, 1, "MessageEvent.prototype.initMessageEvent.length should be 1")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:85:3)
Pass
assert_equals("test", "test", "type attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:87:3)
Pass
assert_equals(false, false, "bubbles attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:88:3)
Pass
assert_equals(false, false, "bubbles attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:89:3)
Pass
assert_equals(null, null, "data attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:90:3)
Pass
assert_equals("", "", "origin attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:91:3)
Pass
assert_equals("", "", "lastEventId attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:92:3)
Pass
assert_equals(null, null, "source attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:93:3)
Pass
assert_array_equals([], [], "ports attribute")
    at Test.<anonymous> ( /html/webappapis/scripting/events/messageevent-constructor.https.html:94:3)
FailPassing ServiceWorker for source memberpromise_test: Unhandled rejection with value: object "TypeError: Cannot read properties of undefined (reading 'installing')"
Error
    at get_stack (https://wpt.live/resources/testharness.js:4571:21)
    at new AssertionError (https://wpt.live/resources/testharness.js:4564:22)
    at assert (https://wpt.live/resources/testharness.js:4548:19)
    at Test.<anonymous> (https://wpt.live/resources/testharness.js:764:29)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at https://wpt.live/resources/testharness.js:2689:35
Asserts runNo asserts ran