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

Unified Diff: LayoutTests/fast/dom/custom/registration-context-delete-during-attribute-changed.html

Issue 18789002: Implement Custom Elements' attributeChangedCallback. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/registration-context-delete-during-attribute-changed.html
diff --git a/LayoutTests/fast/dom/custom/registration-context-delete-during-upgrade.html b/LayoutTests/fast/dom/custom/registration-context-delete-during-attribute-changed.html
similarity index 68%
copy from LayoutTests/fast/dom/custom/registration-context-delete-during-upgrade.html
copy to LayoutTests/fast/dom/custom/registration-context-delete-during-attribute-changed.html
index e740ef2759eda99d4effc3508d785c0bab1e2fb9..3cb260a3ab3d80073de3a3cead62e00caad2d04a 100644
--- a/LayoutTests/fast/dom/custom/registration-context-delete-during-upgrade.html
+++ b/LayoutTests/fast/dom/custom/registration-context-delete-during-attribute-changed.html
@@ -3,26 +3,23 @@
<script src="testutils.js"></script>
<body>
<x-a></x-a>
-<x-a></x-a>
-<x-a></x-a>
<script>
if (fork()) {
// The controlling parent frame
- description('Tests destroying a context during element upgrade.');
+ description('Tests destroying a context during attributeChanged callback.');
jsTestIsAsync = true;
successfullyParsed = true;
} else {
// The child frame
- var n = 0;
var proto = Object.create(HTMLElement.prototype);
- proto.createdCallback = function () {
- if (++n == 2)
- destroyContext();
+ proto.attributeChangedCallback = function () {
+ destroyContext();
};
var A = document.register('x-a', {prototype: proto});
- new A();
+ var a = new A();
+ a.id = 'boom';
done();
}
</script>

Powered by Google App Engine
This is Rietveld 408576698