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

Unified Diff: LayoutTests/fast/dom/custom/unresolved-pseudoclass.html

Issue 14626005: Upgrade elements that are created before a custom element definition is registered (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Feedback+test 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/unresolved-pseudoclass.html
diff --git a/LayoutTests/fast/dom/custom/unresolved-pseudoclass.html b/LayoutTests/fast/dom/custom/unresolved-pseudoclass.html
index 54a716711e42630fbe0e2e8c3ba459492cad9ae9..263f0694e925de0fa4e462c3759e3aa176617795 100644
--- a/LayoutTests/fast/dom/custom/unresolved-pseudoclass.html
+++ b/LayoutTests/fast/dom/custom/unresolved-pseudoclass.html
@@ -36,12 +36,16 @@ var c = new X();
document.body.insertBefore(c, b);
shouldBe('window.getComputedStyle(c).color', '"rgb(0, 222, 0)"');
+// Registering x-x should have changed the styles of #a.
+shouldBe('window.getComputedStyle(a).color', '"rgb(0, 222, 0)"');
+
var Y = document.webkitRegister('x-y', {prototype: Object.create(HTMLSpanElement.prototype)});
var d = new Y();
document.body.insertBefore(d, b);
shouldBe('window.getComputedStyle(d).color', '"rgb(0, 111, 0)"');
-// FIXME: When upgrade is implemented check that a and b's styles have changed.
+// Registering is="x-y" should have changed the styles of #b.
+shouldBe('window.getComputedStyle(b).color', '"rgb(0, 111, 0)"');
successfullyParsed = true;
</script>

Powered by Google App Engine
This is Rietveld 408576698