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

Unified Diff: tests/html/node_test.dart

Issue 12596004: Replaced Element.append with Node.appendChild (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/node_test.dart
diff --git a/tests/html/node_test.dart b/tests/html/node_test.dart
index c0a0dde4e607b5eec9c879aad8112f8ccc1a960f..e56403dcdf50eb438d6c1df02ddb04ec02011bb7 100644
--- a/tests/html/node_test.dart
+++ b/tests/html/node_test.dart
@@ -39,6 +39,12 @@ main() {
expect(node.nodes[2], isComment);
});
+ test('append', () {
+ var node = makeNode();
+ node.append(new Element.tag('hr'));
+ expect(node.nodes.last, isHRElement);
+ });
+
test('remove', () {
final node = makeNodeWithChildren();
final subnode = node.nodes[1];
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698