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

Unified Diff: tests/standalone/io/process_invalid_arguments_test.dart

Issue 10392023: Change dart:io to use Future for one-shot operations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding stable test binaries Created 8 years, 7 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/standalone/io/process_exit_test.dart ('k') | tests/standalone/io/process_run_output_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ad44d461b1adc1871072f4db6f497c828ec8d1ee..dd1c87f3da1f98c6074f8d31146b91a3f9fc20ed 100644
--- a/tests/standalone/io/process_invalid_arguments_test.dart
+++ b/tests/standalone/io/process_invalid_arguments_test.dart
@@ -7,36 +7,30 @@
#import("dart:io");
void main() {
- Expect.throws(() => new Process.start(["true"], []),
+ Expect.throws(() => Process.start(["true"], []),
(e) => e is IllegalArgumentException);
- Expect.throws(() => new Process.start("true", "asdf"),
+ Expect.throws(() => Process.start("true", "asdf"),
(e) => e is IllegalArgumentException);
- Expect.throws(() => new Process.start("true", ["asdf", 1]),
+ Expect.throws(() => Process.start("true", ["asdf", 1]),
(e) => e is IllegalArgumentException);
- Expect.throws(() => new Process.run(["true"], [], null,
- (exit, out, err) => null),
+ Expect.throws(() => Process.run(["true"], [], null),
(e) => e is IllegalArgumentException);
- Expect.throws(() => new Process.run("true", "asdf", null,
- (exit, out, err) => null),
+ Expect.throws(() => Process.run("true", "asdf", null),
(e) => e is IllegalArgumentException);
- Expect.throws(() => new Process.run("true", ["asdf", 1], null,
- (exit, out, err) => null),
+ Expect.throws(() => Process.run("true", ["asdf", 1], null),
(e) => e is IllegalArgumentException);
var options = new ProcessOptions();
options.workingDirectory = 23;
- Expect.throws(() => new Process.start("true", [], options),
+ Expect.throws(() => Process.start("true", [], options),
(e) => e is IllegalArgumentException);
- Expect.throws(() => new Process.run("true", [], options,
- (exit, out, err) => null),
+ Expect.throws(() => Process.run("true", [], options),
(e) => e is IllegalArgumentException);
options = new ProcessOptions();
options.stdoutEncoding = 23;
- Expect.throws(() => new Process.run("true", [], options,
- (exit, out, err) => null),
+ Expect.throws(() => Process.run("true", [], options),
(e) => e is IllegalArgumentException);
options = new ProcessOptions();
options.stderrEncoding = 23;
- Expect.throws(() => new Process.run("true", [], options,
- (exit, out, err) => null),
+ Expect.throws(() => Process.run("true", [], options),
(e) => e is IllegalArgumentException);
}
« no previous file with comments | « tests/standalone/io/process_exit_test.dart ('k') | tests/standalone/io/process_run_output_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698