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

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

Issue 10970060: Parameterize 'new Options().script'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 8 years, 3 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 | « dart/tools/testing/dart/test_runner.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/testing/dart/test_suite.dart
diff --git a/dart/tools/testing/dart/test_suite.dart b/dart/tools/testing/dart/test_suite.dart
index 740e3a30a1cda60021b52aff0c06769c9ca9bddd..1815cb0bf99e76bc908389b17e3c30a7a1e4c7be 100644
--- a/dart/tools/testing/dart/test_suite.dart
+++ b/dart/tools/testing/dart/test_suite.dart
@@ -1243,6 +1243,14 @@ class JUnitTestSuite implements TestSuite {
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'.
+ */
+ static String testScriptPath = new Options().script;
+
+ /**
* Creates a directory using a [relativePath] to an existing
* [base] directory if that [relativePath] does not already exist.
*/
@@ -1381,7 +1389,7 @@ class TestUtils {
}
static Path dartDir() {
- File scriptFile = new File(new Options().script);
+ File scriptFile = new File(testScriptPath);
Path scriptPath = new Path.fromNative(scriptFile.fullPathSync());
return scriptPath.directoryPath.directoryPath;
}
« no previous file with comments | « dart/tools/testing/dart/test_runner.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698