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

Unified Diff: tests/corelib/growable_object_array2_vm_test.dart

Issue 10898003: Remove List.copyFrom from VM and from tests. It was removed from the List interface in r941. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment, fix error. Created 8 years, 4 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/const_list_literal_test.dart ('k') | tests/corelib/growable_object_array_vm_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/growable_object_array2_vm_test.dart
diff --git a/tests/corelib/growable_object_array2_vm_test.dart b/tests/corelib/growable_object_array2_vm_test.dart
index 875332ee518395430c47ef72f40683e3b1c31a63..5c8af1422bb498781107e2ec9f256730f0b11885 100644
--- a/tests/corelib/growable_object_array2_vm_test.dart
+++ b/tests/corelib/growable_object_array2_vm_test.dart
@@ -29,11 +29,11 @@ class GrowableObjectArray2Test {
f.add(2);
list[i] = 5;
}
- list.copyFrom(f, 0, 0, f.length);
+ list.setRange(0, f.length, f, 0);
for (int i = 0; i < f.length; i++) {
Expect.equals(2, list[i]);
}
- f.copyFrom(g, 10, 0, 2);
+ f.setRange(0, 2, g, 10);
Expect.equals(20, f.length);
bool exceptionCaught = false;
« no previous file with comments | « tests/corelib/const_list_literal_test.dart ('k') | tests/corelib/growable_object_array_vm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698