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(); |