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

Unified Diff: test/transformer/fails_to_load_a_transform_with_an_import_error_test.dart

Issue 1523323004: Install barback from a hosted source in all tests. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Merge for real. Created 5 years 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
Index: test/transformer/fails_to_load_a_transform_with_an_import_error_test.dart
diff --git a/test/transformer/fails_to_load_a_transform_with_an_import_error_test.dart b/test/transformer/fails_to_load_a_transform_with_an_import_error_test.dart
index dfd3553d98479f33fbcd8096c04ca4c0cb2a05a9..a6530388fb94e46678f92ac12b0ddc08c1ebe1c4 100644
--- a/test/transformer/fails_to_load_a_transform_with_an_import_error_test.dart
+++ b/test/transformer/fails_to_load_a_transform_with_an_import_error_test.dart
@@ -14,17 +14,20 @@ main() {
// An import error will cause the isolate API to fail synchronously while
// loading the transformer.
integration("fails to load a transform with an import error", () {
+ serveBarback();
+
d.dir(appPath, [
d.pubspec({
"name": "myapp",
- "transformers": ["myapp/src/transformer"]
+ "transformers": ["myapp/src/transformer"],
+ "dependencies": {"barback": "any"}
}),
d.dir("lib", [d.dir("src", [
d.file("transformer.dart", "import 'does/not/exist.dart';")
])])
]).create();
- createLockFile('myapp', pkg: ['barback']);
+ pubGet();
var pub = startPubServe();
pub.stderr.expect("Unable to spawn isolate: Unhandled exception:");
pub.stderr.expect(

Powered by Google App Engine
This is Rietveld 408576698