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

Unified Diff: LayoutTests/fast/dom/shadow/composed-shadow-tree-walker.html

Issue 60203009: ComposedTreeWalker does't have to return a node if an insertion point has no distributed nodes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compile warnings Created 7 years, 1 month 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/shadow/composed-shadow-tree-walker-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/composed-shadow-tree-walker.html
diff --git a/LayoutTests/fast/dom/shadow/composed-shadow-tree-walker.html b/LayoutTests/fast/dom/shadow/composed-shadow-tree-walker.html
index 76ff4ebdc45df6347895b2f8b9535ba4bb96a5ed..c1934b60c03a274252d23361d9772fe255ed75f5 100644
--- a/LayoutTests/fast/dom/shadow/composed-shadow-tree-walker.html
+++ b/LayoutTests/fast/dom/shadow/composed-shadow-tree-walker.html
@@ -216,6 +216,16 @@ testComposedShadowTree(
createDOM('div', {'id': 'child-1', 'class': 'foo'}),
createDOM('div', {'id': 'not-selected', 'class': 'foo'}),
createDOM('div', {'id': 'child-2', 'class': 'foo'})));
+
+debug('Test for a shadow insertion point where nothing is distributed.');
+testComposedShadowTree(
+ createDOM('div', {'id': 'a'},
+ createShadowRoot(),
+ createShadowRoot(
+ createDOM('div', {'id': 'b'}),
+ createDOM('shadow', {'id': 'shadow'},
+ createDOM('div', {'id': 'should-not-be-used'})),
+ createDOM('div', {'id': 'c'}))));
</script>
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/composed-shadow-tree-walker-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698