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

Unified Diff: test/transformer/fails_to_load_a_transform_with_a_syntax_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_a_syntax_error_test.dart
diff --git a/test/transformer/fails_to_load_a_transform_with_a_syntax_error_test.dart b/test/transformer/fails_to_load_a_transform_with_a_syntax_error_test.dart
index c6ad2b10754b06d9dc30809c2fc59cc3312ce9f5..2d0b7e7bdd4927999024b8425caaa5ede0b6d5a5 100644
--- a/test/transformer/fails_to_load_a_transform_with_a_syntax_error_test.dart
+++ b/test/transformer/fails_to_load_a_transform_with_a_syntax_error_test.dart
@@ -15,18 +15,20 @@ main() {
// A syntax error will cause the analyzer to fail to parse the transformer
// when attempting to rewrite its imports.
integration("fails to load a transform with a syntax 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", "syntax error")
])])
]).create();
- createLockFile('myapp', pkg: ['barback']);
-
+ pubGet();
var pub = startPubServe();
pub.stderr.expect(contains("unexpected token 'syntax'"));
pub.shouldExit(1);

Powered by Google App Engine
This is Rietveld 408576698