Summary

Harness status: OK

Found 2 tests

Details

ResultTest NameMessage
PassHTMLCollection as a prototype should not allow getting .length on the base object
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {     obj.length;   }")
    at Test.<anonymous> ( /dom/collections/HTMLCollection-as-prototype.html:10:3)
FailHTMLCollection as a prototype and setting own propertiesassert_equals: expected (string) "foo" but got (object) Element node <p id="named"></p>
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/dom/collections/HTMLCollection-as-prototype.html:26:3)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2684:25)
    at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/dom/collections/HTMLCollection-as-prototype.html:15:1
Asserts run
Pass
assert_equals(Element node <p id="named"></p>, Element node <p id="named"></p>)
    at Test.<anonymous> ( /dom/collections/HTMLCollection-as-prototype.html:22:3)
Pass
assert_equals(Element node <p id="named"></p>, Element node <p id="named"></p>)
    at Test.<anonymous> ( /dom/collections/HTMLCollection-as-prototype.html:24:3)
Fail
assert_equals(Element node <p id="named"></p>, "foo")
    at Test.<anonymous> ( /dom/collections/HTMLCollection-as-prototype.html:26:3)