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

Unified Diff: test/runner/loader_test.dart

Issue 1055083004: Normalize handling of the package root in the runner. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Unused import 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/loader_test.dart ('k') | test/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/loader_test.dart
diff --git a/test/runner/loader_test.dart b/test/runner/loader_test.dart
index 8474cbedbc4ebfa713af46b3077bce88babbd349..cee551a574d62c03e03eca616c1d4825501edf9b 100644
--- a/test/runner/loader_test.dart
+++ b/test/runner/loader_test.dart
@@ -88,11 +88,8 @@ void main() {
});
test("throws a nice error if the package root doesn't exist", () {
- var loader = new Loader([TestPlatform.vm], root: _sandbox);
- expect(
- loader.loadFile(p.join(_sandbox, 'a_test.dart')).first
- .whenComplete(loader.close),
- throwsA(isLoadException(
+ expect(() => new Loader([TestPlatform.chrome], root: _sandbox),
+ throwsA(isApplicationException(
"Directory ${p.join(_sandbox, 'packages')} does not exist.")));
});
});
« no previous file with comments | « test/runner/browser/loader_test.dart ('k') | test/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698