Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Unified Diff: LayoutTests/fast/dom/custom/document-register-type-extensions.html

Issue 14776002: Create wrappers for unresolved Custom Elements at the correct type (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/custom/document-register-type-extensions.html
diff --git a/LayoutTests/fast/dom/custom/document-register-type-extensions.html b/LayoutTests/fast/dom/custom/document-register-type-extensions.html
index 443706626f080842371a7d88e502ec3bd0b81969..2f9b45a80648013d2b75e8d1c3154cceee40ef5e 100644
--- a/LayoutTests/fast/dom/custom/document-register-type-extensions.html
+++ b/LayoutTests/fast/dom/custom/document-register-type-extensions.html
@@ -73,7 +73,8 @@ shouldBeTrue("fooCreated instanceof fooConstructor");
barCreated = document.createElement("x-bar");
shouldBe("barCreated.outerHTML", "'<x-bar></x-bar>'");
shouldBeFalse("barCreated instanceof barConstructor");
-shouldBeTrue("barCreated instanceof HTMLUnknownElement");
+shouldBeFalse("barCreated instanceof HTMLUnknownElement");
+shouldBeTrue("barCreated instanceof HTMLElement");
bazCreated = document.createElement("x-baz");
shouldBe("bazCreated.outerHTML", "'<x-baz></x-baz>'");
@@ -83,7 +84,8 @@ shouldBeFalse("bazCreated instanceof HTMLUnknownElement");
quxCreated = document.createElement("x-qux");
shouldBe("quxCreated.outerHTML", "'<x-qux></x-qux>'");
shouldBeFalse("quxCreated instanceof quxConstructor");
-shouldBeTrue("quxCreated instanceof HTMLUnknownElement");
+shouldBeFalse("quxCreated instanceof HTMLUnknownElement");
+shouldBeTrue("quxCreated instanceof HTMLElement");
//
// createElement() with type extensions
@@ -111,7 +113,8 @@ shouldBeTrue("fooBarCreated instanceof fooConstructor");
barFooCreated = document.createElement("x-bar", "x-foo");
shouldBe("barFooCreated.outerHTML", "'<x-bar is=\"x-foo\"></x-bar>'");
-shouldBeTrue("barFooCreated instanceof HTMLUnknownElement");
+shouldBeFalse("barFooCreated instanceof HTMLUnknownElement");
+shouldBeTrue("barFooCreated instanceof HTMLElement");
fooCreatedNull = document.createElement("x-foo", null);
shouldBe("fooCreatedNull.outerHTML", fooOuterHTML);
@@ -158,7 +161,8 @@ shouldBeTrue("divFooParsed instanceof HTMLDivElement");
namedBarParsed = createElementFromHTML('<x-bar>')
shouldBeFalse("namedBarParsed instanceof barConstructor");
-shouldBeTrue("namedBarParsed instanceof HTMLUnknownElement");
+shouldBeFalse("namedBarParsed instanceof HTMLUnknownElement");
+shouldBeTrue("namedBarParsed instanceof HTMLElement");
divBarParsed = createElementFromHTML('<div is=x-bar>')
shouldBeFalse("divBarParsed instanceof barConstructor");

Powered by Google App Engine
This is Rietveld 408576698