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

Unified Diff: tests/language/list_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/language/language_dart2js.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/list_test.dart
diff --git a/tests/language/list_test.dart b/tests/language/list_test.dart
index f9d6c8a9e55a957d02376e6283e316e393145d1e..5021a00b855cda0ec8be7de82cf3477a83d082fe 100644
--- a/tests/language/list_test.dart
+++ b/tests/language/list_test.dart
@@ -59,8 +59,8 @@ class ListTest {
exception_caught = false;
try {
List a = new List(4);
- a.copyFrom(a, null, 1, 1);
- } catch (IllegalArgumentException e) {
+ a.setRange(1, 1, a, null);
+ } catch (Exception e) {
exception_caught = true;
}
Expect.equals(true, exception_caught);
@@ -68,7 +68,7 @@ class ListTest {
exception_caught = false;
try {
List a = new List(4);
- a.copyFrom(a, 10, 1, 1);
+ a.setRange(10, 1, a, 1);
} catch (IndexOutOfRangeException e) {
exception_caught = true;
}
@@ -78,7 +78,7 @@ class ListTest {
try {
List a = new List(4);
List b = new List(4);
- b.copyFrom(a, 0, 0, 4);
+ b.setRange(0, 4, a, 0);
} catch (var e) {
exception_caught = true;
}
« no previous file with comments | « tests/language/language_dart2js.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698