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

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

Issue 9695055: Fix test.dart in the case of running dartium tests on Windows without building dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | « no previous file | 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
diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart
index 9ddfdb4019a3851450b4124da85e9aa6b8642faf..c3ea82f31e2e8b6ce7df48fdafa8e4e4a543e452 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -658,10 +658,12 @@ class StandardTestSuite implements TestSuite {
throw new Exception(
'Non-relative path to build directory in test_suite.dart');
}
- buildPath.removeRange(0, 1);
- if (buildPath.last() == '') buildPath.removeLast();
- buildPath.addAll(generatedTestPath);
- generatedTestPath = buildPath;
+ if (buildPath.length > 1) {
+ buildPath.removeRange(0, 1);
+ if (buildPath.last() == '') buildPath.removeLast();
+ buildPath.addAll(generatedTestPath);
+ generatedTestPath = buildPath;
+ }
tempDir = new Directory(tempDirPath);
if (!tempDir.existsSync()) {
tempDir.createSync();
« 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