Fail | command is a readonly defaulting to '' | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:14:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:13:3 Asserts runNo asserts ran |
Fail | source is readonly defaulting to null | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:20:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:19:3 Asserts runNo asserts ran |
Fail | command reflects initialized attribute | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:26:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:25:3 Asserts runNo asserts ran |
Fail | command set to undefined | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:31:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:30:3 Asserts runNo asserts ran |
Fail | command set to null | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:36:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:35:3 Asserts runNo asserts ran |
Fail | command set to false | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:41:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:40:3 Asserts runNo asserts ran |
Fail | command explicitly set to empty string | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:46:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:45:3 Asserts runNo asserts ran |
Fail | command set to true | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:51:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:50:3 Asserts runNo asserts ran |
Fail | command set to a number | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:56:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:55:3 Asserts runNo asserts ran |
Fail | command set to [] | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:61:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:60:3 Asserts runNo asserts ran |
Fail | command set to [1, 2, 3] | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:66:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:65:3 Asserts runNo asserts ran |
Fail | command set to an object | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:71:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:70:3 Asserts runNo asserts ran |
Fail | command set to an object with a toString function | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:76:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:75:3 Asserts runNo asserts ran |
Fail | CommandEventInit properties set value | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:88:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:86:3 Asserts runNo asserts ran |
Fail | CommandEventInit properties set value 2 | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:98:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:93:3 Asserts runNo asserts ran |
Fail | CommandEventInit properties set value 3 | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:108:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:103:3 Asserts runNo asserts ran |
Fail | source set to undefined | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:114:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:113:3 Asserts runNo asserts ran |
Fail | source set to null | CommandEvent is not definedReferenceError: CommandEvent is not defined
at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:119:19)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:118:3 Asserts runNo asserts ran |
Fail | source set to false | assert_throws_js: source is not an object function "function () {
new CommandEvent("test", { source: false });
}" threw object "ReferenceError: CommandEvent is not defined" ("ReferenceError") expected instance of function "function TypeError() { [native code] }" ("TypeError") at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:124:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:123:3 Asserts runFail | assert_throws_js(function "function TypeError() { [native code] }", function "function () { new CommandEvent("test", { source: false }); }", "source is not an object")
at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/event-interface.html:124:5) |
|
Fail | source set to true | assert_throws_js: source is not an object function "function () {
const event = new CommandEvent("test", { source: true });
}" threw object "ReferenceError: CommandEvent is not defined" ("ReferenceError") expected instance of function "function TypeError() { [native code] }" ("TypeError") at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:134:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:133:3 Asserts runFail | assert_throws_js(function "function TypeError() { [native code] }", function "function () { const event = new CommandEvent("test", { source: true }); }", "source is not an object")
at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/event-interface.html:134:5) |
|
Fail | source set to {} | assert_throws_js: source is not an object function "function () {
const event = new CommandEvent("test", { source: {} });
}" threw object "ReferenceError: CommandEvent is not defined" ("ReferenceError") expected instance of function "function TypeError() { [native code] }" ("TypeError") at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:144:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:143:3 Asserts runFail | assert_throws_js(function "function TypeError() { [native code] }", function "function () { const event = new CommandEvent("test", { source: {} }); }", "source is not an object")
at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/event-interface.html:144:5) |
|
Fail | source set to non-Element EventTarget | assert_throws_js: source is not an Element function "function () {
const eventInit = { command: "closed", source: new XMLHttpRequest() };
const event = new CommandEvent("toggle", eventInit);
}" threw object "ReferenceError: CommandEvent is not defined" ("ReferenceError") expected instance of function "function TypeError() { [native code] }" ("TypeError") at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:154:5)
at Test.step (https://wpt.live/resources/testharness.js:2642:25)
at test (https://wpt.live/resources/testharness.js:633:30)
at https://wpt.live/html/semantics/the-button-element/command-and-commandfor/event-interface.html:153:3 Asserts runFail | assert_throws_js(function "function TypeError() { [native code] }", function "function () { const eventInit = { command: "closed", source: new XMLHttpRequest() }; const event = new CommandEvent("toggle", eventInit); }", "source is not an Element")
at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/event-interface.html:154:5) |
|