Summary

Harness status: OK

Found 11 tests

Details

ResultTest NameMessage
FailcommandForElement reflects invokee HTML elementassert_equals: expected (object) Element node <div id="invokee"></div> but got (undefined) undefined
    at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/interface.html:13: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/interface.html:12:3
Asserts run
Fail
assert_equals(undefined, Element node <div id="invokee"></div>)
    at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/interface.html:13:5)
FailcommandForElement reflects set valueassert_equals: expected "" but got "invokee"
    at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/interface.html:20: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/interface.html:16:3
Asserts run
Pass
assert_equals(Element node <div></div>, Element node <div></div>)
    at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/interface.html:19:5)
Fail
assert_equals("invokee", "")
    at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/interface.html:20:5)
FailcommandForElement reflects set value across shadow root into light domassert_equals: expected "" but got "invokee"
    at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/interface.html:30: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/interface.html:24:3
Asserts run
Pass
assert_equals(Element node <div id="invokee"></div>, Element node <div id="invokee"></div>)
    at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/interface.html:29:5)
Fail
assert_equals("invokee", "")
    at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/interface.html:30:5)
FailcommandForElement does not reflect set value inside shadowrootassert_equals: expected null but got Element node <div></div>
    at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/interface.html:39: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/interface.html:34:3
Asserts run
Fail
assert_equals(Element node <div></div>, null)
    at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/interface.html:39:5)
FailcommandForElement throws error on assignment of non Elementassert_throws_js: commandForElement attribute must be an instance of Element function "function () { invoker.commandForElement = {}; }" did not throw
    at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/interface.html:45: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/interface.html:44:3
Asserts run
Fail
assert_throws_js(function "function TypeError() { [native code] }", function "function () {         invoker.commandForElement = {};       }", "commandForElement attribute must be an instance of Element")
    at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/interface.html:45:5)
Failcommand reflects '' when attribute empty, setAttribute versionassert_equals: expected (string) "" but got (undefined) undefined
    at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/interface.html:57: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/interface.html:54:3
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/interface.html:56:5)
Fail
assert_equals(undefined, "")
    at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/interface.html:57:5)
Failcommand reflects correctly for invalidassert_equals: expected "fooBarBaz" but got ""
    at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/interface.html:62: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/interface.html:60:3
Asserts run
Fail
assert_equals("", "fooBarBaz")
    at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/interface.html:62:5)
Passcommand reflects '' when attribute empty, IDL version
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/interface.html:68:5)
Pass
assert_equals("", "")
    at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/interface.html:69:5)
Failcommand reflects correctly for invalid when arrayassert_equals: expected "1,2,3" but got ""
    at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/interface.html:74: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/interface.html:72:3
Asserts run
Fail
assert_equals("", "1,2,3")
    at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/interface.html:74:5)
Failcommand reflects '' when attribute set to []assert_equals: expected (string) "" but got (object) []
    at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/interface.html:81: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/interface.html:78:3
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/interface.html:80:5)
Fail
assert_equals([], "")
    at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/interface.html:81:5)
Failcommand reflects correctly for invalid when objectassert_equals: expected (string) "" but got (object) object "[object Object]"
    at Test.<anonymous> (https://wpt.live/html/semantics/the-button-element/command-and-commandfor/interface.html:86: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/interface.html:84:3
Asserts run
Fail
assert_equals(object "[object Object]", "")
    at Test.<anonymous> ( /html/semantics/the-button-element/command-and-commandfor/interface.html:86:5)