Index: third_party/WebKit/LayoutTests/imported/wpt/custom-elements/htmlconstructor/newtarget.html |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/htmlconstructor/newtarget.html b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/htmlconstructor/newtarget.html |
index 67cf0e8fc6127c65aefc26aba496377c1fe7ae30..ab43803c244e5f4492a1eb9c74337f24b89fabf6 100644 |
--- a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/htmlconstructor/newtarget.html |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/htmlconstructor/newtarget.html |
@@ -101,9 +101,9 @@ test_with_window(w => { |
function TestElement() { |
const o = Reflect.construct(w.HTMLParagraphElement, [], new.target); |
- assert_equals(Object.getPrototypeOf(o), window.HTMLParagraphElement, |
+ assert_equals(Object.getPrototypeOf(o), window.HTMLParagraphElement.prototype, |
"Must use the HTMLParagraphElement from the realm of NewTarget"); |
- assert_not_equals(Object.getPrototypeOf(o), w.HTMLParagraphElement, |
+ assert_not_equals(Object.getPrototypeOf(o), w.HTMLParagraphElement.prototype, |
"Must not use the HTMLParagraphElement from the realm of the active function object (w.HTMLParagraphElement)"); |
return o; |