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

Unified Diff: tests/corelib/const_list_literal_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/co19/co19-runtime.status ('k') | tests/corelib/growable_object_array2_vm_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/const_list_literal_test.dart
diff --git a/tests/corelib/const_list_literal_test.dart b/tests/corelib/const_list_literal_test.dart
index f2e73dcf5cfffe78a51d631c56f10a301f538e1d..01658a9f75f900729c059a332ca8e5e7ddb3a375 100644
--- a/tests/corelib/const_list_literal_test.dart
+++ b/tests/corelib/const_list_literal_test.dart
@@ -52,12 +52,7 @@ class ConstListLiteralTest {
exception = null;
try {
- list.copyFrom([1], 0, 0, 1);
- } catch (NoSuchMethodException e) {
- // TODO(ahe): While we are resolving CL 9839101, we have two
- // cases: the VMs implementation class has a method named
- // copyFrom, dart2js does not.
- exception = e;
+ list.setRange(0, 1, [1], 0);
} catch (UnsupportedOperationException e) {
exception = e;
}
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | tests/corelib/growable_object_array2_vm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698