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

Unified Diff: tools/test-runtime.dart

Issue 10584014: Change test scripts to use Path library in most places, instead of strings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: missing semicolon Created 8 years, 6 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/test.dart ('k') | tools/testing/dart/browser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/test-runtime.dart
diff --git a/tools/test-runtime.dart b/tools/test-runtime.dart
index d3471a68cb05e19f6e0a2b301485f739067e8715..e207c2f4d19b2df5c2808e3254b3fcba6263eef5 100755
--- a/tools/test-runtime.dart
+++ b/tools/test-runtime.dart
@@ -10,6 +10,7 @@
#library("test");
+#import("dart:io");
#import("testing/dart/test_runner.dart");
#import("testing/dart/test_options.dart");
#import("testing/dart/test_suite.dart");
@@ -25,13 +26,13 @@
* moved to here, if possible.
*/
final TEST_SUITE_DIRECTORIES = const [
- 'runtime/tests/vm',
- 'tests/corelib',
- 'tests/isolate',
- 'tests/language',
- 'tests/lib',
- 'tests/standalone',
- 'tests/utils',
+ const Path('runtime/tests/vm'),
+ const Path('tests/corelib'),
+ const Path('tests/isolate'),
+ const Path('tests/language'),
+ const Path('tests/lib'),
+ const Path('tests/standalone'),
+ const Path('tests/utils'),
];
main() {
@@ -81,7 +82,7 @@ main() {
}
for (final testSuiteDir in TEST_SUITE_DIRECTORIES) {
- final name = testSuiteDir.substring(testSuiteDir.lastIndexOf('/') + 1);
+ final name = testSuiteDir.filename;
if (selectors.containsKey(name)) {
queue.addTestSuite(
new StandardTestSuite.forDirectory(conf, testSuiteDir));
« no previous file with comments | « tools/test.dart ('k') | tools/testing/dart/browser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698