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

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

Issue 11878015: Default constructor for dart:io Path now handles native Windows paths. Path() now does the same as… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't change tools/version.dart until the binaries are updated. Created 7 years, 11 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/skipping_dart2js_compilations_test.dart
diff --git a/tests/standalone/io/skipping_dart2js_compilations_test.dart b/tests/standalone/io/skipping_dart2js_compilations_test.dart
index 044cd222cde2a22f76d983d411ef4387b27e5ef6..e8c4e75148ad2cc98680924a169839a7cc6c07e2 100644
--- a/tests/standalone/io/skipping_dart2js_compilations_test.dart
+++ b/tests/standalone/io/skipping_dart2js_compilations_test.dart
@@ -52,7 +52,7 @@ class FileUtils {
}
if (createJsDeps) {
testJsDeps = _createFile(testJsDepsFilePath);
- var path = suite.TestUtils.absolutePath(new Path.fromNative(tempDir.path))
+ var path = suite.TestUtils.absolutePath(new Path(tempDir.path))
.append("test.dart");
_writeToFile(testJsDeps, "file://$path");
}
@@ -74,27 +74,27 @@ class FileUtils {
}
Path get scriptOutputPath {
- return suite.TestUtils.absolutePath(new Path.fromNative(tempDir.path)
+ return suite.TestUtils.absolutePath(new Path(tempDir.path)
.append('created_if_command_did_run.txt'));
}
Path get testDartFilePath {
- return suite.TestUtils.absolutePath(new Path.fromNative(tempDir.path)
+ return suite.TestUtils.absolutePath(new Path(tempDir.path)
.append('test.dart'));
}
Path get testJsFilePath {
- return suite.TestUtils.absolutePath(new Path.fromNative(tempDir.path)
+ return suite.TestUtils.absolutePath(new Path(tempDir.path)
.append('test.js'));
}
Path get testJsDepsFilePath {
- return suite.TestUtils.absolutePath(new Path.fromNative(tempDir.path)
+ return suite.TestUtils.absolutePath(new Path(tempDir.path)
.append('test.js.deps'));
}
Path get testSnapshotFilePath {
- return suite.TestUtils.absolutePath(new Path.fromNative(tempDir.path)
+ return suite.TestUtils.absolutePath(new Path(tempDir.path)
.append('test_dart2js.snapshot'));
}
@@ -149,7 +149,7 @@ runner.TestCase makeTestCase(String testName,
TestCompletedHandler completedHandler) {
var fileUtils = completedHandler.fileUtils;
var config = new options.TestOptionsParser().parse(['--timeout', '2'])[0];
- var scriptDirPath = new Path.fromNative(new Options().script).directoryPath;
+ var scriptDirPath = new Path(new Options().script).directoryPath;
var createFileScript = scriptDirPath.
append('skipping_dart2js_compilations_helper.dart').toNativePath();
var executable = new Options().executable;
« no previous file with comments | « tests/standalone/io/secure_session_resume_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