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

Unified Diff: testing/dart/multitest.dart

Issue 8773006: Fork test scripts to support special runtime checkout. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/tools/
Patch Set: '' Created 9 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 | « test-runtime.dart ('k') | testing/dart/test_progress.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/dart/multitest.dart
===================================================================
--- testing/dart/multitest.dart (revision 1975)
+++ testing/dart/multitest.dart (working copy)
@@ -188,15 +188,13 @@
if (!parent_dir.existsSync()) {
parent_dir.createSync();
}
- final String prefix = 'tests/';
- final String suffix = '/src';
- Expect.isTrue(testDir.startsWith(prefix));
- Expect.isTrue(testDir.endsWith(suffix));
- String path = parent_dir.path +
- testDir.substring(prefix.length, testDir.length - suffix.length);
+ var split = testDir.split(new Platform().pathSeparator());
+ var lastComponent = split.removeLast();
+ Expect.isTrue(lastComponent == 'src');
+ String path = parent_dir.path + split.last();
Directory dir = new Directory(path);
if (!dir.existsSync()) {
dir.createSync();
}
return path;
-}
+}
« no previous file with comments | « test-runtime.dart ('k') | testing/dart/test_progress.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698