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

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

Issue 2479593003: Attempt to fix Windows path issue. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_test.dart
diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
index 946aac90d9646aae47798dfe65bb32b89c403fd3..b987698471933629077f63d24486b1d4809d8173 100644
--- a/tests/standalone/io/file_test.dart
+++ b/tests/standalone/io/file_test.dart
@@ -1406,9 +1406,11 @@ class FileTest {
// directory, or the top directory.
static String getFilename(String path) {
var testPath = Platform.script.resolve(path);
- return new File.fromUri(testPath).existsSync()
- ? testPath.toFilePath()
- : Uri.parse(Platform.executable).resolve('../../runtime/$path').toFilePath();
+ if (new File.fromUri(testPath).existsSync()) {
+ return testPath.toFilePath();
+ }
+ return Uri.parse(Platform.resolvedExecutable)
+ .resolve('../../runtime/$path').toFilePath();
}
// Main test entrypoint.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698