Summary

Harness status: OK

Found 10 tests

Details

ResultTest NameMessage
PassIf prototype is not object (null), derives the fallback from NewTarget's realm (customized built-in elements)
Asserts run
Pass
assert_equals(object "[object HTMLParagraphElement]", object "[object HTMLParagraphElement]", "Must use the HTMLParagraphElement from the realm of NewTarget")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget-customized-builtins.html:20:7)
Pass
assert_not_equals(object "[object HTMLParagraphElement]", object "[object HTMLParagraphElement]", "Must not use the HTMLParagraphElement from the realm of the active function object (w.HTMLParagraphElement)")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget-customized-builtins.html:22:7)
FailIf prototype is not object (null), derives the fallback from NewTarget's GetFunctionRealm (customized built-in elements)assert_equals: Must use the HTMLParagraphElement from the realm of NewTarget expected object "[object HTMLParagraphElement]" but got object "[object HTMLParagraphElement]"
    at new TestElement (https://www1.wpt.live/custom-elements/htmlconstructor/newtarget-customized-builtins.html:49:7)
    at https://www1.wpt.live/custom-elements/htmlconstructor/newtarget-customized-builtins.html:70:5
    at https://www1.wpt.live/custom-elements/resources/custom-elements-helpers.js:33:7
Asserts run
Fail
assert_equals(object "[object HTMLParagraphElement]", object "[object HTMLParagraphElement]", "Must use the HTMLParagraphElement from the realm of NewTarget")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget-customized-builtins.html:49:7)
PassIf prototype is not object (undefined), derives the fallback from NewTarget's realm (customized built-in elements)
Asserts run
Pass
assert_equals(object "[object HTMLParagraphElement]", object "[object HTMLParagraphElement]", "Must use the HTMLParagraphElement from the realm of NewTarget")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget-customized-builtins.html:20:7)
Pass
assert_not_equals(object "[object HTMLParagraphElement]", object "[object HTMLParagraphElement]", "Must not use the HTMLParagraphElement from the realm of the active function object (w.HTMLParagraphElement)")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget-customized-builtins.html:22:7)
FailIf prototype is not object (undefined), derives the fallback from NewTarget's GetFunctionRealm (customized built-in elements)assert_equals: Must use the HTMLParagraphElement from the realm of NewTarget expected object "[object HTMLParagraphElement]" but got object "[object HTMLParagraphElement]"
    at new TestElement (https://www1.wpt.live/custom-elements/htmlconstructor/newtarget-customized-builtins.html:49:7)
    at https://www1.wpt.live/custom-elements/htmlconstructor/newtarget-customized-builtins.html:70:5
    at https://www1.wpt.live/custom-elements/resources/custom-elements-helpers.js:33:7
Asserts run
Fail
assert_equals(object "[object HTMLParagraphElement]", object "[object HTMLParagraphElement]", "Must use the HTMLParagraphElement from the realm of NewTarget")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget-customized-builtins.html:49:7)
PassIf prototype is not object (5), derives the fallback from NewTarget's realm (customized built-in elements)
Asserts run
Pass
assert_equals(object "[object HTMLParagraphElement]", object "[object HTMLParagraphElement]", "Must use the HTMLParagraphElement from the realm of NewTarget")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget-customized-builtins.html:20:7)
Pass
assert_not_equals(object "[object HTMLParagraphElement]", object "[object HTMLParagraphElement]", "Must not use the HTMLParagraphElement from the realm of the active function object (w.HTMLParagraphElement)")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget-customized-builtins.html:22:7)
FailIf prototype is not object (5), derives the fallback from NewTarget's GetFunctionRealm (customized built-in elements)assert_equals: Must use the HTMLParagraphElement from the realm of NewTarget expected object "[object HTMLParagraphElement]" but got object "[object HTMLParagraphElement]"
    at new TestElement (https://www1.wpt.live/custom-elements/htmlconstructor/newtarget-customized-builtins.html:49:7)
    at https://www1.wpt.live/custom-elements/htmlconstructor/newtarget-customized-builtins.html:70:5
    at https://www1.wpt.live/custom-elements/resources/custom-elements-helpers.js:33:7
Asserts run
Fail
assert_equals(object "[object HTMLParagraphElement]", object "[object HTMLParagraphElement]", "Must use the HTMLParagraphElement from the realm of NewTarget")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget-customized-builtins.html:49:7)
PassIf prototype is not object (string), derives the fallback from NewTarget's realm (customized built-in elements)
Asserts run
Pass
assert_equals(object "[object HTMLParagraphElement]", object "[object HTMLParagraphElement]", "Must use the HTMLParagraphElement from the realm of NewTarget")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget-customized-builtins.html:20:7)
Pass
assert_not_equals(object "[object HTMLParagraphElement]", object "[object HTMLParagraphElement]", "Must not use the HTMLParagraphElement from the realm of the active function object (w.HTMLParagraphElement)")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget-customized-builtins.html:22:7)
FailIf prototype is not object (string), derives the fallback from NewTarget's GetFunctionRealm (customized built-in elements)assert_equals: Must use the HTMLParagraphElement from the realm of NewTarget expected object "[object HTMLParagraphElement]" but got object "[object HTMLParagraphElement]"
    at new TestElement (https://www1.wpt.live/custom-elements/htmlconstructor/newtarget-customized-builtins.html:49:7)
    at https://www1.wpt.live/custom-elements/htmlconstructor/newtarget-customized-builtins.html:70:5
    at https://www1.wpt.live/custom-elements/resources/custom-elements-helpers.js:33:7
Asserts run
Fail
assert_equals(object "[object HTMLParagraphElement]", object "[object HTMLParagraphElement]", "Must use the HTMLParagraphElement from the realm of NewTarget")
    at new TestElement ( /custom-elements/htmlconstructor/newtarget-customized-builtins.html:49:7)
FailHTMLParagraphElement constructor must not get .prototype until it finishes its extends sanity checks, calling proxy constructor directlyassert_equals: Should never have gotten .prototype expected 0 but got 1
    at https://www1.wpt.live/custom-elements/htmlconstructor/newtarget-customized-builtins.html:92:5
    at https://www1.wpt.live/custom-elements/resources/custom-elements-helpers.js:33:7
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function () { new countingProxy() }", "Should not be able to construct an HTMLParagraphElement not named 'p'")
    at  /custom-elements/htmlconstructor/newtarget-customized-builtins.html:89:5
Fail
assert_equals(1, 0, "Should never have gotten .prototype")
    at  /custom-elements/htmlconstructor/newtarget-customized-builtins.html:92:5
FailHTMLParagraphElement constructor must not get .prototype until it finishes its extends sanity checks, calling via Reflectassert_equals: Should never have gotten .prototype expected 0 but got 1
    at https://www1.wpt.live/custom-elements/htmlconstructor/newtarget-customized-builtins.html:113:5
    at https://www1.wpt.live/custom-elements/resources/custom-elements-helpers.js:33:7
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function () { Reflect.construct(HTMLParagraphElement, [], countingProxy) }", "Should not be able to construct an HTMLParagraphElement not named 'p'")
    at  /custom-elements/htmlconstructor/newtarget-customized-builtins.html:110:5
Fail
assert_equals(1, 0, "Should never have gotten .prototype")
    at  /custom-elements/htmlconstructor/newtarget-customized-builtins.html:113:5