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

Unified Diff: tests/corelib/string_base_vm_test.dart

Issue 10989013: Change IllegalArgumentException to ArgumentError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated co19 test expectations. Created 8 years, 3 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
Index: tests/corelib/string_base_vm_test.dart
diff --git a/tests/corelib/string_base_vm_test.dart b/tests/corelib/string_base_vm_test.dart
index fef8b04c5655b81ac6fa8abfb81020965c83f4b7..8d86120905db2019d4ec12aaccee6a4d78a26b06 100644
--- a/tests/corelib/string_base_vm_test.dart
+++ b/tests/corelib/string_base_vm_test.dart
@@ -48,14 +48,14 @@ class StringBaseTest {
Expect.equals(s, s3);
try {
String s4 = new String.fromCharCodes([0.0]);
- } on IllegalArgumentException catch (ex) {
+ } on ArgumentError catch (ex) {
exception_caught = true;
}
Expect.equals(true, exception_caught);
exception_caught = false;
try {
String s4 = new String.fromCharCodes([-1]);
- } on IllegalArgumentException catch (ex) {
+ } on ArgumentError catch (ex) {
exception_caught = true;
}
Expect.equals(true, exception_caught);

Powered by Google App Engine
This is Rietveld 408576698