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

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

Issue 8431028: Implement async file API on top of isolates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix type mismatch. 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
« no previous file with comments | « tests/corelib/corelib.status ('k') | tests/standalone/src/DirectoryInvalidArgumentsTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/src/ListSetRangeTest.dart
diff --git a/tests/corelib/src/ListSetRangeTest.dart b/tests/corelib/src/ListSetRangeTest.dart
index d728f2c3a9f6eb7cc9840adc65a3ed508b5ba1c8..ad004a380564be7567a2a5b998eb00c0eceb4c91 100644
--- a/tests/corelib/src/ListSetRangeTest.dart
+++ b/tests/corelib/src/ListSetRangeTest.dart
@@ -52,6 +52,8 @@ main() {
Expect.listEquals([1, 9, 10, 6], list);
testNegativeIndices();
+
+ testNonExtendableList();
}
void expectIOORE(Function f) {
@@ -78,3 +80,11 @@ void testNegativeIndices() {
list.setRange(0, 0, [1], -1);
Expect.listEquals([1, 2], list);
}
+
+void testNonExtendableList() {
+ var list = new List<int>(6);
+ Expect.listEquals([null, null, null, null, null, null], list);
+ list.setRange(0, 3, [1, 2, 3, 4]);
+ list.setRange(3, 3, [1, 2, 3, 4]);
+ Expect.listEquals([1, 2, 3, 1, 2, 3], list);
+}
« no previous file with comments | « tests/corelib/corelib.status ('k') | tests/standalone/src/DirectoryInvalidArgumentsTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698