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

Unified Diff: tests/standalone/io/directory_invalid_arguments_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/standalone/io/directory_invalid_arguments_test.dart
diff --git a/tests/standalone/io/directory_invalid_arguments_test.dart b/tests/standalone/io/directory_invalid_arguments_test.dart
index e7754d86429aca8e6c29213d6b170f0368cb7594..a34836f60849a4400dfb591779022cec973afd29 100644
--- a/tests/standalone/io/directory_invalid_arguments_test.dart
+++ b/tests/standalone/io/directory_invalid_arguments_test.dart
@@ -24,19 +24,19 @@ class DirectoryInvalidArgumentsTest {
d.existsSync();
Expect.fail("No exception thrown");
} catch (e) {
- Expect.isTrue(e is IllegalArgumentException);
+ Expect.isTrue(e is ArgumentError);
}
try {
d.deleteSync();
Expect.fail("No exception thrown");
} catch (e) {
- Expect.isTrue(e is IllegalArgumentException);
+ Expect.isTrue(e is ArgumentError);
}
try {
d.createSync();
Expect.fail("No exception thrown");
} catch (e) {
- Expect.isTrue(e is IllegalArgumentException);
+ Expect.isTrue(e is ArgumentError);
}
testFailingList(d, false);
d = new Directory(".");

Powered by Google App Engine
This is Rietveld 408576698