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

Unified Diff: tests/html/template_element_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/svg_test.dart ('k') | tests/html/window_open_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/template_element_test.dart
diff --git a/tests/html/template_element_test.dart b/tests/html/template_element_test.dart
index c34aa76a7e2b1eb029085fd7d00a8e1b753b6d85..3a5854c9f29c582bccb32031c53ec0e6a09df5fd 100644
--- a/tests/html/template_element_test.dart
+++ b/tests/html/template_element_test.dart
@@ -28,7 +28,7 @@ templateElementTests() {
var testDiv;
setUp(() {
- document.body.nodes.add(testDiv = new DivElement());
+ document.body.append(testDiv = new DivElement());
});
tearDown(() {
@@ -39,7 +39,7 @@ templateElementTests() {
createTestHtml(s) {
var div = new DivElement();
div.innerHtml = s;
- testDiv.nodes.add(div);
+ testDiv.append(div);
for (var node in div.queryAll('*')) {
if (node.isTemplate) TemplateElement.decorate(node);
@@ -52,7 +52,7 @@ templateElementTests() {
var div = new DivElement();
var root = div.createShadowRoot();
root.innerHtml = s;
- testDiv.nodes.add(div);
+ testDiv.append(div);
for (var node in root.queryAll('*')) {
if (node.isTemplate) TemplateElement.decorate(node);
@@ -434,7 +434,7 @@ templateElementTests() {
var t = new Element.tag('template');
TemplateElement.decorate(t);
- document.body.nodes.add(t);
+ document.body.append(t);
expect(t.getComputedStyle().display, 'none');
t.remove();
« no previous file with comments | « tests/html/svg_test.dart ('k') | tests/html/window_open_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698