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

Unified Diff: tests/html/htmlelement_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/htmlcollection_test.dart ('k') | tests/html/instance_of_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/htmlelement_test.dart
diff --git a/tests/html/htmlelement_test.dart b/tests/html/htmlelement_test.dart
index c18ba6788817e0bc6c857ee8e2c6cb4cc04bda7e..df2704dfb53fc468ac685bedc0b610fb6d8bb45d 100644
--- a/tests/html/htmlelement_test.dart
+++ b/tests/html/htmlelement_test.dart
@@ -9,7 +9,7 @@ main() {
Element element = new Element.tag('div');
element.id = 'test';
element.innerHtml = 'Hello World';
- document.body.nodes.add(element);
+ document.body.append(element);
element = document.query('#test');
expect(element.innerHtml, 'Hello World');
@@ -19,10 +19,10 @@ main() {
Element table = new Element.tag('table');
TableRowElement row = new Element.tag('tr');
- table.nodes.add(row);
+ table.append(row);
- row.nodes.add(new Element.tag('td'));
- row.nodes.add(new Element.tag('td'));
+ row.append(new Element.tag('td'));
+ row.append(new Element.tag('td'));
expect(row.cells.length, 2);
« no previous file with comments | « tests/html/htmlcollection_test.dart ('k') | tests/html/instance_of_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698