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

Unified Diff: LayoutTests/fast/dom/shadow/nested-reprojection-inconsistent.html

Issue 137993003: Revert the feature of the <shadow> element as 'a function call' to the previous behavior. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update LayoutTests/TestExpectations Created 6 years, 11 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/shadow/nested-reprojection-inconsistent.html
diff --git a/LayoutTests/fast/dom/shadow/nested-reprojection-inconsistent.html b/LayoutTests/fast/dom/shadow/nested-reprojection-inconsistent.html
index 2a0a3537aca44a833d06b90efd675a92aeba8ff9..3a3cc673118c6727be49c8bea6fac6c0a9b69e68 100644
--- a/LayoutTests/fast/dom/shadow/nested-reprojection-inconsistent.html
+++ b/LayoutTests/fast/dom/shadow/nested-reprojection-inconsistent.html
@@ -43,20 +43,18 @@ setTimeout(function() {
debug('');
- debug('Adds a div as fallback content');
+ debug('Adds a div as fallback content, which should not be used.');
anotherAddedDiv = document.createElement('div');
shadow1.appendChild(anotherAddedDiv);
- shouldBe('content.getDistributedNodes().length', '3');
+ shouldBe('content.getDistributedNodes().length', '2');
shouldBe('content.getDistributedNodes().item(0)', 'div1');
- shouldBe('content.getDistributedNodes().item(1)', 'anotherAddedDiv');
- shouldBe('content.getDistributedNodes().item(2)', 'addedDiv');
+ shouldBe('content.getDistributedNodes().item(1)', 'addedDiv');
debug('');
debug('Removes the first added div');
addedDiv.remove();
- shouldBe('content.getDistributedNodes().length', '2');
+ shouldBe('content.getDistributedNodes().length', '1');
shouldBe('content.getDistributedNodes().item(0)', 'div1');
- shouldBe('content.getDistributedNodes().item(1)', 'anotherAddedDiv');
debug('');
debug('Removes the second added div');

Powered by Google App Engine
This is Rietveld 408576698