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

Unified Diff: tests/standalone/io/file_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/file_invalid_arguments_test.dart
diff --git a/tests/standalone/io/file_invalid_arguments_test.dart b/tests/standalone/io/file_invalid_arguments_test.dart
index 73f8b98c7489fd1a5d41f6397e545ae4ead5f1f4..674b789f4156c29fa6326b9b3f457e2b3acd287b 100644
--- a/tests/standalone/io/file_invalid_arguments_test.dart
+++ b/tests/standalone/io/file_invalid_arguments_test.dart
@@ -11,12 +11,12 @@ class FileTest {
file.openSync();
Expect.fail('exception expected');
} catch (e) {
- Expect.isTrue(e is IllegalArgumentException);
+ Expect.isTrue(e is ArgumentError);
}
var openFuture = file.open(FileMode.READ);
openFuture.handleException((e) {
- Expect.isTrue(e is IllegalArgumentException);
+ Expect.isTrue(e is ArgumentError);
return true;
});
openFuture.then((opened) {
@@ -30,12 +30,12 @@ class FileTest {
file.existsSync();
Expect.fail('exception expected');
} catch (e) {
- Expect.isTrue(e is IllegalArgumentException);
+ Expect.isTrue(e is ArgumentError);
}
var existsFuture = file.exists();
existsFuture.handleException((e) {
- Expect.isTrue(e is IllegalArgumentException);
+ Expect.isTrue(e is ArgumentError);
return true;
});
existsFuture.then((bool) {
@@ -49,12 +49,12 @@ class FileTest {
file.createSync();
Expect.fail('exception expected');
} catch (e) {
- Expect.isTrue(e is IllegalArgumentException);
+ Expect.isTrue(e is ArgumentError);
}
var createFuture = file.create();
createFuture.handleException((e) {
- Expect.isTrue(e is IllegalArgumentException);
+ Expect.isTrue(e is ArgumentError);
return true;
});
createFuture.then((ignore) => Expect.fail('non-string name exists'));
@@ -167,12 +167,12 @@ class FileTest {
file.fullPathSync();
Expect.fail('exception expected');
} catch (e) {
- Expect.isTrue(e is IllegalArgumentException);
+ Expect.isTrue(e is ArgumentError);
}
var fullPathFuture = file.fullPath();
fullPathFuture.handleException((e) {
- Expect.isTrue(e is IllegalArgumentException);
+ Expect.isTrue(e is ArgumentError);
return true;
});
fullPathFuture.then((path) {

Powered by Google App Engine
This is Rietveld 408576698