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

Unified Diff: tools/testing/dart/test_suite.dart

Issue 282173004: test.dart: Handle checkout paths containing spaces. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | « tools/testing/dart/http_server.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_suite.dart
===================================================================
--- tools/testing/dart/test_suite.dart (revision 36288)
+++ tools/testing/dart/test_suite.dart (working copy)
@@ -1874,18 +1874,19 @@
class TestUtils {
/**
- * The libraries in this directory relies on finding various files
- * relative to the 'test.dart' script in '.../dart/tools/test.dart'. If
- * the main script using 'test_suite.dart' is not there, the main
- * script must set this to '.../dart/tools/test.dart'.
+ * Any script using TestUtils must set dartDirUri to a file:// URI
+ * pointing to the root of the Dart checkout.
*/
- static String testScriptPath = new Path(Platform.script.path).toNativePath();
+ static setDartDirUri(uri) {
+ dartDirUri = uri;
+ dartDir = new Path(uri.toFilePath());
+ }
+ static Uri dartDirUri;
+ static Path dartDir;
static LastModifiedCache lastModifiedCache = new LastModifiedCache();
static ExistsCache existsCache = new ExistsCache();
static Path currentWorkingDirectory =
new Path(Directory.current.path);
- static Path dartDir = new Path(new File(testScriptPath).absolute.path)
- .directoryPath.directoryPath;
/**
* Creates a directory using a [relativePath] to an existing
« no previous file with comments | « tools/testing/dart/http_server.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698