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

Unified Diff: tests/corelib_2/list_removeat_test.dart

Issue 2991363002: Migrated test block 14 to Dart 2.0. (Closed)
Patch Set: Migrated test block 14 to Dart 2.0. Created 3 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_2/list_remove_range_test.dart ('k') | tests/corelib_2/list_replace_range_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib_2/list_removeat_test.dart
diff --git a/tests/corelib/list_removeat_test.dart b/tests/corelib_2/list_removeat_test.dart
similarity index 87%
rename from tests/corelib/list_removeat_test.dart
rename to tests/corelib_2/list_removeat_test.dart
index 43bf2eb3ce30b9d5c586db1ae9e8a1865ec8c53b..02d39e09326e0273e2fc7920c5264c435998c243 100644
--- a/tests/corelib/list_removeat_test.dart
+++ b/tests/corelib_2/list_removeat_test.dart
@@ -32,14 +32,6 @@ void testModifiableList(l1) {
Expect.throws(() {
l1.removeAt(null);
}, (e) => e is ArgumentError, "too large");
- Expect.throws(() {
- l1.removeAt("1");
- }, (e) => (typeAssertionsEnabled ? e is TypeError : e is ArgumentError),
- "string");
- Expect.throws(() {
- l1.removeAt(1.5);
- }, (e) => (typeAssertionsEnabled ? e is TypeError : e is ArgumentError),
- "double");
Bob Nystrom 2017/08/03 20:22:25 Woo!
Expect.equals(2, l1.removeAt(2), "l1-remove2");
Expect.equals(1, l1[1], "l1-1[1]");
« no previous file with comments | « tests/corelib_2/list_remove_range_test.dart ('k') | tests/corelib_2/list_replace_range_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698