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

Unified Diff: test/run/does_not_run_on_transformer_error_test.dart

Issue 1530353002: Drop support for older Barback versions. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: 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/run/does_not_run_on_transformer_error_test.dart
diff --git a/test/run/does_not_run_on_transformer_error_test.dart b/test/run/does_not_run_on_transformer_error_test.dart
index eadb8b0fa1894b6c9c50bf8349a6446cc338b682..0372b3465cbbaf9cb803168b7ab5671c05fb60df 100644
--- a/test/run/does_not_run_on_transformer_error_test.dart
+++ b/test/run/does_not_run_on_transformer_error_test.dart
@@ -30,32 +30,30 @@ class FailingTransformer extends Transformer {
""";
main() {
- withBarbackVersions("any", () {
- integration('does not run if a transformer has an error', () {
- d.dir(appPath, [
- d.pubspec({
- "name": "myapp",
- "transformers": ["myapp/src/transformer"]
- }),
- d.dir("lib", [
- d.dir("src", [
- d.file("transformer.dart", TRANSFORMER)
- ])
- ]),
- d.dir("bin", [
- d.file("script.dart", SCRIPT)
- ])
- ]).create();
-
- createLockFile('myapp', pkg: ['barback']);
-
- var pub = pubRun(args: ["bin/script"]);
-
- pub.stderr.expect("[Error from Failing]:");
- pub.stderr.expect("myapp|bin/script.dart.");
-
- // Note: no output from the script.
- pub.shouldExit();
- });
- });
+ integration('does not run if a transformer has an error', () {
+ d.dir(appPath, [
+ d.pubspec({
+ "name": "myapp",
+ "transformers": ["myapp/src/transformer"]
+ }),
+ d.dir("lib", [
+ d.dir("src", [
+ d.file("transformer.dart", TRANSFORMER)
+ ])
+ ]),
+ d.dir("bin", [
+ d.file("script.dart", SCRIPT)
+ ])
+ ]).create();
+
+ createLockFile('myapp', pkg: ['barback']);
+
+ var pub = pubRun(args: ["bin/script"]);
+
+ pub.stderr.expect("[Error from Failing]:");
+ pub.stderr.expect("myapp|bin/script.dart.");
+
+ // Note: no output from the script.
+ pub.shouldExit();
+ });
}
« no previous file with comments | « test/run/displays_transformer_logs_test.dart ('k') | test/run/doesnt_load_an_unnecessary_transformer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698