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

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

Issue 27215002: Very simple version of Isolates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 2 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/platform_test.dart ('k') | tests/standalone/io/socket_close_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/process_shell_test.dart
diff --git a/tests/standalone/io/process_shell_test.dart b/tests/standalone/io/process_shell_test.dart
index e461a8d96b4488683031316fb099dc6a7230f09b..4e6593d4605f70b8bba13ab45822e3f9b66009d2 100644
--- a/tests/standalone/io/process_shell_test.dart
+++ b/tests/standalone/io/process_shell_test.dart
@@ -3,11 +3,14 @@
// BSD-style license that can be found in the LICENSE file.
import "package:path/path.dart";
+import "package:async_helper/async_helper.dart";
import "dart:io";
+import "dart:async";
import "dart:isolate";
void testRunShell() {
test(args) {
+ asyncStart();
var path = join(dirname(Platform.script), "process_echo_util.dart");
Process.run(Platform.executable,
[path]..addAll(args),
@@ -26,6 +29,7 @@ void testRunShell() {
throw "bad result at $i: '${args[i]}' vs '${result[i]}'";
}
}
+ asyncEnd();
});
}
test(["\""]);
@@ -43,12 +47,13 @@ void testRunShell() {
void testBadRunShell() {
test(exe, [args = const []]) {
+ asyncStart();
Process.run(exe, args, runInShell: true)
.then((result) {
- port.close();
if (result.exitCode == 0) {
throw "error expected";
}
+ asyncEnd();
});
}
test("'\"'");
« no previous file with comments | « tests/standalone/io/platform_test.dart ('k') | tests/standalone/io/socket_close_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698