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

Unified Diff: test/runner/runner_test.dart

Issue 1098763004: Fix running browser tests in subdirectories and release 0.12.0-beta.10. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 8 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 | « test/runner/browser/runner_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/runner_test.dart
diff --git a/test/runner/runner_test.dart b/test/runner/runner_test.dart
index 10d64ad94cdc765d276d3cf494ed37876cc37f88..d717b671d62247cc2ec7add3102b85ca989c50f9 100644
--- a/test/runner/runner_test.dart
+++ b/test/runner/runner_test.dart
@@ -286,6 +286,15 @@ $_usage"""));
]);
expect(result.stdout, contains("All tests passed!"));
});
+
+ // Regression test; this broke in 0.12.0-beta.9.
+ test("on a file in a subdirectory", () {
+ new Directory(p.join(_sandbox, "dir")).createSync();
+ new File(p.join(_sandbox, "dir", "test.dart"))
+ .writeAsStringSync(_success);
+ var result = _runUnittest(["dir/test.dart"]);
+ expect(result.exitCode, equals(0));
+ });
});
group("runs failing tests", () {
« no previous file with comments | « test/runner/browser/runner_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698