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

Unified Diff: tests/standalone/io/process_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/process_invalid_arguments_test.dart
diff --git a/tests/standalone/io/process_invalid_arguments_test.dart b/tests/standalone/io/process_invalid_arguments_test.dart
index dd1c87f3da1f98c6074f8d31146b91a3f9fc20ed..35385b44e802f0b7a31225a99fc770c48a3d7a19 100644
--- a/tests/standalone/io/process_invalid_arguments_test.dart
+++ b/tests/standalone/io/process_invalid_arguments_test.dart
@@ -8,29 +8,29 @@
void main() {
Expect.throws(() => Process.start(["true"], []),
- (e) => e is IllegalArgumentException);
+ (e) => e is ArgumentError);
Expect.throws(() => Process.start("true", "asdf"),
- (e) => e is IllegalArgumentException);
+ (e) => e is ArgumentError);
Expect.throws(() => Process.start("true", ["asdf", 1]),
- (e) => e is IllegalArgumentException);
+ (e) => e is ArgumentError);
Expect.throws(() => Process.run(["true"], [], null),
- (e) => e is IllegalArgumentException);
+ (e) => e is ArgumentError);
Expect.throws(() => Process.run("true", "asdf", null),
- (e) => e is IllegalArgumentException);
+ (e) => e is ArgumentError);
Expect.throws(() => Process.run("true", ["asdf", 1], null),
- (e) => e is IllegalArgumentException);
+ (e) => e is ArgumentError);
var options = new ProcessOptions();
options.workingDirectory = 23;
Expect.throws(() => Process.start("true", [], options),
- (e) => e is IllegalArgumentException);
+ (e) => e is ArgumentError);
Expect.throws(() => Process.run("true", [], options),
- (e) => e is IllegalArgumentException);
+ (e) => e is ArgumentError);
options = new ProcessOptions();
options.stdoutEncoding = 23;
Expect.throws(() => Process.run("true", [], options),
- (e) => e is IllegalArgumentException);
+ (e) => e is ArgumentError);
options = new ProcessOptions();
options.stderrEncoding = 23;
Expect.throws(() => Process.run("true", [], options),
- (e) => e is IllegalArgumentException);
+ (e) => e is ArgumentError);
}

Powered by Google App Engine
This is Rietveld 408576698