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

Unified Diff: tests/html/node_test.dart

Issue 613063002: Make Node.nodes.insertAll take an end-positioned index. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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/templates/html/impl/impl_Node.darttemplate » ('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 3dd567948bd2f70477a01246deef0c79614adae4..18f7f36dfff9eb9ef344db9382d456d7dad2f9b6 100644
--- a/tests/html/node_test.dart
+++ b/tests/html/node_test.dart
@@ -316,6 +316,13 @@ main() {
expect(node.nodes[6], isImageElement);
expect(node.nodes[7], isInputElement);
expect(node.nodes[8], isComment);
+
+ var d = new DivElement();
+ var ns = d.nodes;
+ // `insertAll` should work when positioned at end.
+ ns.insertAll(ns.length, [new HRElement()]);
+ expect(ns.length, 1);
+ expect(ns[0], isHRElement);
});
testUnsupported('removeRange', () {
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698