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

Unified Diff: tests/corelib/test_config.dart

Issue 8508054: Getting started on options parsing. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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 | « no previous file | tests/standalone/test_config.dart » ('j') | tools/testing/dart/test_options.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/test_config.dart
diff --git a/tests/corelib/test_config.dart b/tests/corelib/test_config.dart
index 5d303b1a74f90af456be6aa0b30bb78bdd740075..d694e56bc33635092990a3ef8acfaecc13287f84 100644
--- a/tests/corelib/test_config.dart
+++ b/tests/corelib/test_config.dart
@@ -5,9 +5,10 @@
#library("corelib_test_config");
#import("../../tools/testing/dart/test_runner.dart");
+#import("../../tools/testing/dart/status_file_parser.dart");
class CorelibTestSuite {
- final String directoryPath = "tests/corelib/src";
+ String directoryPath = "tests/corelib/src";
Function doTest;
Function doDone;
String shellPath;
@@ -25,13 +26,11 @@ class CorelibTestSuite {
}
void processDirectory() {
+ directoryPath = getDirname(directoryPath);
Directory dir = new Directory(directoryPath);
- if (!dir.existsSync()) {
- dir = new Directory(".." + pathSeparator + directoryPath);
- Expect.isTrue(dir.existsSync(),
- "Cannot find tests/corelib/src or ../tests/corelib/src");
- // TODO(ager): Use dir.errorHandler instead when it is implemented.
- }
+ dir.errorHandler = (s) {
+ throw s;
+ };
dir.fileHandler = processFile;
dir.doneHandler = doDone;
dir.list(false);
« no previous file with comments | « no previous file | tests/standalone/test_config.dart » ('j') | tools/testing/dart/test_options.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698