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

Unified Diff: LayoutTests/fast/dom/custom/created-callback.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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/custom/element-upgrade.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/custom/created-callback.html
diff --git a/LayoutTests/fast/dom/custom/created-callback.html b/LayoutTests/fast/dom/custom/created-callback.html
index 9cd7f5f3e01cb10d66d5438763bc16031f54f758..748b542e751d7533b438e24fc5cd18affc99f466 100644
--- a/LayoutTests/fast/dom/custom/created-callback.html
+++ b/LayoutTests/fast/dom/custom/created-callback.html
@@ -38,19 +38,19 @@ t.step(function () {
function created() {
createdInvocations++;
- if (this.id != 'v')
+ if (this.id != 'u')
return;
t.step(function () {
var t = div.querySelector('#t');
- var u = div.querySelector('#u');
+ var v = div.querySelector('#v');
var w = div.querySelector('#w');
- assert_equals(div.querySelector('x-c:not(:unresolved)'), this, 'the :unresolved pseudoclass should cease to apply when the created callback is invoked');
- assert_array_equals(div.querySelectorAll(':unresolved'), [t, u], 'the :unresolved pseudoclass should be processed in order');
+ assert_equals(div.querySelector('x-b:not(:unresolved)'), this, 'the :unresolved pseudoclass should cease to apply when the created callback is invoked');
+ assert_array_equals(div.querySelectorAll(':unresolved'), [v, w], 'the :unresolved pseudoclass should be processed in order');
- assert_false(t instanceof C, 'prototype upgrade should happen in order (#t)');
- assert_false(u instanceof B, 'prototype upgrade should happen in order (#u)');
+ assert_true(t instanceof C, 'prototype upgrade should happen in order (#t)');
+ assert_false(v instanceof C, 'prototype upgrade should happen in order (#v)');
}, this);
}
@@ -67,7 +67,7 @@ t.step(function () {
'<x-c id="v"></x-c>' +
'<x-b id="w"></x-b>';
assert_equals(createdInvocations, 2, 'the created callback should have been invoked once for each x-c element');
- assert_true(div.querySelector('#t') instanceof C, '#t\'s prototype should have ultimately been upgraded');
+ assert_true(div.querySelector('#w') instanceof B, '#w\'s prototype should have ultimately been upgraded');
t.done();
});
</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/custom/element-upgrade.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698