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

Unified Diff: tests/html/shadow_dom_layout_test.dart

Issue 14883008: use .append instead of .nodes.add (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: revert node_test and element_test 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 | « tests/html/queryall_test.dart ('k') | tests/html/shadow_dom_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/shadow_dom_layout_test.dart
diff --git a/tests/html/shadow_dom_layout_test.dart b/tests/html/shadow_dom_layout_test.dart
index 5a1d6b8c14213d8d4ae23ad52d3c604ed579019d..82705bc9420cfae02aafc0c3ee96f5d246867199 100644
--- a/tests/html/shadow_dom_layout_test.dart
+++ b/tests/html/shadow_dom_layout_test.dart
@@ -21,12 +21,12 @@ main() {
// assemble DOM
var sRoot = div.createShadowRoot();
- sRoot.nodes.add(new Element.html('<content select=".foo"></content>'));
- sRoot.nodes.add(redbox);
- sRoot.nodes.add(new Element.tag('content'));
+ sRoot.append(new Element.html('<content select=".foo"></content>'));
+ sRoot.append(redbox);
+ sRoot.append(new Element.tag('content'));
- div.nodes.add(bluebox);
- div.nodes.add(greenbox);
+ div.append(bluebox);
+ div.append(greenbox);
}
DivElement _colorBox(String color, int width, int height) {
« no previous file with comments | « tests/html/queryall_test.dart ('k') | tests/html/shadow_dom_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698