Summary

Harness status: OK

Found 10 tests

Details

ResultTest NameMessage
PassUse NewTarget's prototype, not the one stored at definition time
Asserts run
Pass
assert_equals(object "[object Object]", object "[object Object]", "Must use the value returned from new.target.prototype")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:19:5)
Pass
assert_not_equals(object "[object Object]", object "[object Object]", "Must not use the prototype stored at definition time")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:21:5)
PassRethrow any exceptions thrown while getting the prototype
Asserts run
Pass
assert_throws_exactly(object "[object Object]", function "() => {       Reflect.construct(w.HTMLElement, [], new.target);     }")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:46:5)
PassIf prototype is not object (null), derives the fallback from NewTarget's realm (autonomous custom elements)
Asserts run
Pass
assert_equals(function "function () { [native code] }", function "function () { [native code] }")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:73:7)
Pass
assert_equals(object "[object HTMLElement]", object "[object HTMLElement]", "Must use the HTMLElement from the realm of NewTarget")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:74:7)
Pass
assert_not_equals(object "[object HTMLElement]", object "[object HTMLElement]", "Must not use the HTMLElement from the realm of the active function object (w.HTMLElement)")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:76:7)
FailIf prototype is not object (null), derives the fallback from NewTarget's GetFunctionRealm (autonomous custom elements)assert_equals: Must use the HTMLElement from the realm of NewTarget expected object "[object HTMLElement]" but got object "[object HTMLElement]"
    at new TestElement (https://www1.wpt.live/custom-elements/htmlconstructor/newtarget.html:104:7)
    at https://www1.wpt.live/custom-elements/htmlconstructor/newtarget.html:125:5
    at https://www1.wpt.live/custom-elements/resources/custom-elements-helpers.js:33:7
Asserts run
Pass
assert_equals(function "function () { [native code] }", function "function () { [native code] }")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:103:7)
Fail
assert_equals(object "[object HTMLElement]", object "[object HTMLElement]", "Must use the HTMLElement from the realm of NewTarget")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:104:7)
PassIf prototype is not object (undefined), derives the fallback from NewTarget's realm (autonomous custom elements)
Asserts run
Pass
assert_equals(function "function () { [native code] }", function "function () { [native code] }")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:73:7)
Pass
assert_equals(object "[object HTMLElement]", object "[object HTMLElement]", "Must use the HTMLElement from the realm of NewTarget")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:74:7)
Pass
assert_not_equals(object "[object HTMLElement]", object "[object HTMLElement]", "Must not use the HTMLElement from the realm of the active function object (w.HTMLElement)")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:76:7)
FailIf prototype is not object (undefined), derives the fallback from NewTarget's GetFunctionRealm (autonomous custom elements)assert_equals: Must use the HTMLElement from the realm of NewTarget expected object "[object HTMLElement]" but got object "[object HTMLElement]"
    at new TestElement (https://www1.wpt.live/custom-elements/htmlconstructor/newtarget.html:104:7)
    at https://www1.wpt.live/custom-elements/htmlconstructor/newtarget.html:125:5
    at https://www1.wpt.live/custom-elements/resources/custom-elements-helpers.js:33:7
Asserts run
Pass
assert_equals(function "function () { [native code] }", function "function () { [native code] }")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:103:7)
Fail
assert_equals(object "[object HTMLElement]", object "[object HTMLElement]", "Must use the HTMLElement from the realm of NewTarget")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:104:7)
PassIf prototype is not object (5), derives the fallback from NewTarget's realm (autonomous custom elements)
Asserts run
Pass
assert_equals(function "function () { [native code] }", function "function () { [native code] }")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:73:7)
Pass
assert_equals(object "[object HTMLElement]", object "[object HTMLElement]", "Must use the HTMLElement from the realm of NewTarget")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:74:7)
Pass
assert_not_equals(object "[object HTMLElement]", object "[object HTMLElement]", "Must not use the HTMLElement from the realm of the active function object (w.HTMLElement)")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:76:7)
FailIf prototype is not object (5), derives the fallback from NewTarget's GetFunctionRealm (autonomous custom elements)assert_equals: Must use the HTMLElement from the realm of NewTarget expected object "[object HTMLElement]" but got object "[object HTMLElement]"
    at new TestElement (https://www1.wpt.live/custom-elements/htmlconstructor/newtarget.html:104:7)
    at https://www1.wpt.live/custom-elements/htmlconstructor/newtarget.html:125:5
    at https://www1.wpt.live/custom-elements/resources/custom-elements-helpers.js:33:7
Asserts run
Pass
assert_equals(function "function () { [native code] }", function "function () { [native code] }")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:103:7)
Fail
assert_equals(object "[object HTMLElement]", object "[object HTMLElement]", "Must use the HTMLElement from the realm of NewTarget")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:104:7)
PassIf prototype is not object (string), derives the fallback from NewTarget's realm (autonomous custom elements)
Asserts run
Pass
assert_equals(function "function () { [native code] }", function "function () { [native code] }")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:73:7)
Pass
assert_equals(object "[object HTMLElement]", object "[object HTMLElement]", "Must use the HTMLElement from the realm of NewTarget")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:74:7)
Pass
assert_not_equals(object "[object HTMLElement]", object "[object HTMLElement]", "Must not use the HTMLElement from the realm of the active function object (w.HTMLElement)")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:76:7)
FailIf prototype is not object (string), derives the fallback from NewTarget's GetFunctionRealm (autonomous custom elements)assert_equals: Must use the HTMLElement from the realm of NewTarget expected object "[object HTMLElement]" but got object "[object HTMLElement]"
    at new TestElement (https://www1.wpt.live/custom-elements/htmlconstructor/newtarget.html:104:7)
    at https://www1.wpt.live/custom-elements/htmlconstructor/newtarget.html:125:5
    at https://www1.wpt.live/custom-elements/resources/custom-elements-helpers.js:33:7
Asserts run
Pass
assert_equals(function "function () { [native code] }", function "function () { [native code] }")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:103:7)
Fail
assert_equals(object "[object HTMLElement]", object "[object HTMLElement]", "Must use the HTMLElement from the realm of NewTarget")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget.html:104:7)