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

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

Issue 19967002: Remove uses of Path class from tests/standalone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix windows error Created 7 years, 5 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/link_test.dart ('k') | tests/standalone/io/process_shell_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/process_set_exit_code_test.dart
diff --git a/tests/standalone/io/process_set_exit_code_test.dart b/tests/standalone/io/process_set_exit_code_test.dart
index 39aa9b04c3e4efb7e3be3f413cab6a9f07565f9a..722b8756c2a3d6bf79b290c5303d0fd0aa7ac371 100644
--- a/tests/standalone/io/process_set_exit_code_test.dart
+++ b/tests/standalone/io/process_set_exit_code_test.dart
@@ -7,15 +7,14 @@
library ProcessSetExitCodeTest;
import "package:expect/expect.dart";
+import "package:path/path.dart";
import "dart:io";
main() {
var executable = Platform.executable;
- var script = Platform.script;
- var scriptDirectory = new Path(script).directoryPath;
- var exitCodeScript =
- scriptDirectory.append('process_set_exit_code_script.dart');
- Process.run(executable, [exitCodeScript.toNativePath()]).then((result) {
+ var exitCodeScript = join(dirname(Platform.script),
+ 'process_set_exit_code_script.dart');
+ Process.run(executable, [exitCodeScript]).then((result) {
Expect.equals("standard out", result.stdout);
Expect.equals("standard error", result.stderr);
Expect.equals(25, result.exitCode);
« no previous file with comments | « tests/standalone/io/link_test.dart ('k') | tests/standalone/io/process_shell_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698