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

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

Issue 2441743002: Fix two io tests for precompilation, update status (Closed)
Patch Set: Created 4 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
Index: tests/standalone/io/stream_pipe_test.dart
diff --git a/tests/standalone/io/stream_pipe_test.dart b/tests/standalone/io/stream_pipe_test.dart
index 2504e77e4f2543e260707e7baa72e6ffae96c9fd..1945a7bdc089be4a50b9e88717eb16f042f0effb 100644
--- a/tests/standalone/io/stream_pipe_test.dart
+++ b/tests/standalone/io/stream_pipe_test.dart
@@ -2,6 +2,8 @@
// 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.
//
+// OtherResources=readline_test1.dat
+//
// VMOptions=
// VMOptions=--short_socket_read
// VMOptions=--short_socket_write
@@ -15,7 +17,7 @@ import "package:expect/expect.dart";
// Helper method to be able to run the test from the runtime
// directory, or the top directory.
String getDataFilename(String path) =>
- new File(path).existsSync() ? path : '../$path';
+ Platform.script.resolve(path).toFilePath();
bool compareFileContent(String fileName1,
@@ -64,7 +66,7 @@ testFileToFilePipe1() {
asyncStart();
String srcFileName =
- getDataFilename("tests/standalone/io/readline_test1.dat");
+ getDataFilename("readline_test1.dat");
var srcStream = new File(srcFileName).openRead();
var tempDir = Directory.systemTemp.createTempSync('dart_stream_pipe');
@@ -89,7 +91,7 @@ testFileToFilePipe2() {
asyncStart();
String srcFileName =
- getDataFilename("tests/standalone/io/readline_test1.dat");
+ getDataFilename("readline_test1.dat");
var srcFile = new File(srcFileName);
var srcStream = srcFile.openRead();
@@ -131,7 +133,7 @@ testFileToFilePipe3() {
asyncStart();
String srcFileName =
- getDataFilename("tests/standalone/io/readline_test1.dat");
+ getDataFilename("readline_test1.dat");
var srcFile = new File(srcFileName);
var srcStream = srcFile.openRead();

Powered by Google App Engine
This is Rietveld 408576698