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

Unified Diff: tests/corelib/src/ConstListRemoveRangeTest.dart

Issue 8273004: Implement removeRange, and update some documentation on the list interface. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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
Index: tests/corelib/src/ConstListRemoveRangeTest.dart
===================================================================
--- tests/corelib/src/ConstListRemoveRangeTest.dart (revision 394)
+++ tests/corelib/src/ConstListRemoveRangeTest.dart (working copy)
@@ -13,15 +13,7 @@
}
testImmutable(var list) {
- expectUOE(() { list.setRange(0, 0, const []); });
- expectUOE(() { list.setRange(0, 1, const [], 1); });
- expectUOE(() { list.setRange(0, 1, const []); });
- expectUOE(() { list.setRange(0, 0, []); });
- expectUOE(() { list.setRange(0, 1, [], 1); });
- expectUOE(() { list.setRange(0, 1, []); });
- expectUOE(() { list.setRange(0, 0, const [1]); });
- expectUOE(() { list.setRange(0, 1, const [1]); });
- expectUOE(() { list.setRange(0, 0, [1]); });
- expectUOE(() { list.setRange(0, 1, [1]); });
- expectUOE(() { list.setRange(0, 1, [1], 1); });
+ expectUOE(() { list.removeRange(0, 0); });
+ expectUOE(() { list.removeRange(0, 1); });
+ expectUOE(() { list.removeRange(-1, 1); });
}

Powered by Google App Engine
This is Rietveld 408576698