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

Unified Diff: tests/standalone/io/stdin_sync_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
Index: tests/standalone/io/stdin_sync_test.dart
diff --git a/tests/standalone/io/stdin_sync_test.dart b/tests/standalone/io/stdin_sync_test.dart
index 67082369b484f93a4bf097fe743825afbe902a20..bb0c113a9c5546cd6ac0930a3432bc662e56818e 100644
--- a/tests/standalone/io/stdin_sync_test.dart
+++ b/tests/standalone/io/stdin_sync_test.dart
@@ -2,14 +2,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+import "package:path/path.dart";
import "dart:io";
import "dart:json";
void test(String line, List<String> expected) {
- var script = new Path(Platform.script).directoryPath;
- script = script.append("stdin_sync_script.dart");
+ var script = join(dirname(Platform.script), "stdin_sync_script.dart");
Process.start(Platform.executable,
- [script.toNativePath()]..addAll(
+ [script]..addAll(
expected.map(stringify))).then((process) {
process.stdin.write(line);
process.stdin.close();
« no previous file with comments | « tests/standalone/io/socket_upgrade_to_secure_test.dart ('k') | tests/standalone/io/test_extension_fail_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698