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

Unified Diff: tests/standalone/src/ProcessExitTest.dart

Issue 9024008: Change the process API to be completely asynchronous. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add binaries. Created 9 years 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/src/ProcessExitTest.dart
diff --git a/tests/standalone/src/ProcessExitTest.dart b/tests/standalone/src/ProcessExitTest.dart
index 90e77c2584765bef6a5a3fb98cc63f2954ceeeb0..2f46cacf7c9481879ec979bfa12d1eaeee210341 100644
--- a/tests/standalone/src/ProcessExitTest.dart
+++ b/tests/standalone/src/ProcessExitTest.dart
@@ -8,25 +8,17 @@
#source("ProcessTestUtil.dart");
class ProcessExitTest {
-
static void testExit() {
- Process process = new Process(getProcessTestFileName(),
- const ["0", "0", "99", "0"]);
+ Process process = new Process.start(getProcessTestFileName(),
+ const ["0", "0", "99", "0"]);
- void exitHandler(int exitCode) {
+ process.exitHandler = (int exitCode) {
Expect.equals(exitCode, 99);
process.close();
- }
-
- process.exitHandler = exitHandler;
- process.start();
- }
-
- static void testMain() {
- testExit();
+ };
}
}
main() {
- ProcessExitTest.testMain();
+ ProcessExitTest.testExit();
}
« no previous file with comments | « tests/standalone/src/ProcessExitNegativeTest.dart ('k') | tests/standalone/src/ProcessInvalidArgumentsTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698