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

Unified Diff: tests/html/shadow_dom_test.dart

Issue 15701010: Adding test for removed ShadowDOM layout test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/shadow_dom_test.dart
diff --git a/tests/html/shadow_dom_test.dart b/tests/html/shadow_dom_test.dart
index 78b62b5e6583b2f2158593e48ad6e960a4901b80..d9ec86a7d3a74d778747d69cc845bfb1cd0c549e 100644
--- a/tests/html/shadow_dom_test.dart
+++ b/tests/html/shadow_dom_test.dart
@@ -66,5 +66,30 @@ main() {
expect(shadowRoot.queryAll('.foo'), equals([paragraph1]));
}, expectation);
});
+
+ if (ShadowRoot.supported) {
+ test('Shadowroot contents are distributed', () {
+
+ var div = new DivElement();
+
+ var box1 = new DivElement()
+ ..classes.add('foo');
+ div.append(box1);
+
+ var box2 = new DivElement();
+ div.append(box2);
+
+ var sRoot = div.createShadowRoot();
+ var content1 = new ContentElement()
+ ..select = ".foo";
+ sRoot.append(content1);
+
+ var content2 = new ContentElement();
+ sRoot.append(content2);
+
+ expect(content1.getDistributedNodes(), [box1]);
+ expect(content2.getDistributedNodes(), [box2]);
+ });
+ }
});
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698