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

Unified Diff: LayoutTests/fast/dom/custom/element-upgrade.html

Issue 23009004: Process Custom Elements in post-order. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing. Created 7 years, 4 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/element-upgrade.html
diff --git a/LayoutTests/fast/dom/custom/element-upgrade.html b/LayoutTests/fast/dom/custom/element-upgrade.html
index e7e0ecde4d0cdb3d3bd684eb1da3af6bffa713d5..c0ac9ab159c49d0d67752ae49cf96cac0733eb1a 100644
--- a/LayoutTests/fast/dom/custom/element-upgrade.html
+++ b/LayoutTests/fast/dom/custom/element-upgrade.html
@@ -45,14 +45,14 @@ var D = document.register('x-d', {prototype: Object.create(HTMLDivElement.protot
shouldBeFalse('host.firstChild instanceof D');
shouldBe('document.querySelector(":unresolved")', 'host.firstChild');
-// Scenario E: The order of upgrades should be the reverse of their creation.
+// Scenario E: The order of upgrades should be the order of completing parsing.
// Use a good number of elements to avoid false positives from random correct ordering.
host.innerHTML = '<x-e id="e1"><x-e id="e2"></x-e></x-e><x-e id="e3"></x-e><x-e id="e4"></x-e><x-e id="e5"></x-e>';
var upgradedOrder = [];
var protoE = Object.create(HTMLElement.prototype);
protoE.createdCallback = function() { upgradedOrder.push(this.id); };
document.register('x-e', {prototype: protoE});
-shouldBe('upgradedOrder', '["e5","e4","e3","e2","e1"]');
+shouldBe('upgradedOrder', '["e2","e1","e3","e4","e5"]');
successfullyParsed = true;
</script>
« no previous file with comments | « LayoutTests/fast/dom/custom/created-callback.html ('k') | LayoutTests/fast/dom/custom/element-upgrade-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698