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

Unified Diff: tests/html/node_test.dart

Issue 14619013: Explicitly implementing some DOM iterable APIs for performance (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « sdk/lib/web_sql/dartium/web_sql_dartium.dart ('k') | tools/dom/scripts/systemhtml.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 c8a009cdc3a535be01311d3d97aa03830ca7ba99..083478f87b04c33a9a9ab0c38956dec148f90093 100644
--- a/tests/html/node_test.dart
+++ b/tests/html/node_test.dart
@@ -118,6 +118,17 @@ main() {
expect(makeNodeWithChildren().nodes, isNodeList);
});
+ test('indexer', () {
+ var node = new DivElement();
+ expect(() {
+ node.nodes[0];
+ }, throwsRangeError);
+
+ expect(() {
+ node.nodes[-1];
+ }, throwsRangeError);
+ });
+
test('first', () {
var node = makeNodeWithChildren();
expect(node.nodes.first, isText);
« no previous file with comments | « sdk/lib/web_sql/dartium/web_sql_dartium.dart ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698