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

Unified Diff: test/run/displays_transformer_logs_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
« no previous file with comments | « test/global/run/runs_transformer_test.dart ('k') | test/run/does_not_run_on_transformer_error_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/run/displays_transformer_logs_test.dart
diff --git a/test/run/displays_transformer_logs_test.dart b/test/run/displays_transformer_logs_test.dart
index fc83a116811e4ab927edddcd3c5ed7ee1bba03ff..e703229cce348f486ebcdb46c0b84370839696b7 100644
--- a/test/run/displays_transformer_logs_test.dart
+++ b/test/run/displays_transformer_logs_test.dart
@@ -45,45 +45,43 @@ class LoggingTransformer extends Transformer implements LazyTransformer {
""";
main() {
- withBarbackVersions("any", () {
- integration('displays transformer log messages', () {
- d.dir(appPath, [
- d.pubspec({
- "name": "myapp",
- "transformers": ["myapp/src/transformer"]
- }),
- d.dir("lib", [
- d.file("lib.dart", LIB),
- d.dir("src", [
- d.file("transformer.dart", TRANSFORMER)
- ])
- ]),
- d.dir("bin", [
- d.file("script.dart", SCRIPT)
+ integration('displays transformer log messages', () {
+ d.dir(appPath, [
+ d.pubspec({
+ "name": "myapp",
+ "transformers": ["myapp/src/transformer"]
+ }),
+ d.dir("lib", [
+ d.file("lib.dart", LIB),
+ d.dir("src", [
+ d.file("transformer.dart", TRANSFORMER)
])
- ]).create();
+ ]),
+ d.dir("bin", [
+ d.file("script.dart", SCRIPT)
+ ])
+ ]).create();
- createLockFile('myapp', pkg: ['barback']);
+ createLockFile('myapp', pkg: ['barback']);
- var pub = pubRun(args: ["bin/script"]);
+ var pub = pubRun(args: ["bin/script"]);
- // Note that the info log is only displayed here because the test
- // harness runs pub in verbose mode. By default, only the warning would
- // be shown.
- pub.stdout.expect("[Info from Logging]:");
- pub.stdout.expect("myapp|bin/script.dart.");
+ // Note that the info log is only displayed here because the test
+ // harness runs pub in verbose mode. By default, only the warning would
+ // be shown.
+ pub.stdout.expect("[Info from Logging]:");
+ pub.stdout.expect("myapp|bin/script.dart.");
- pub.stderr.expect("[Warning from Logging]:");
- pub.stderr.expect("myapp|bin/script.dart.");
+ pub.stderr.expect("[Warning from Logging]:");
+ pub.stderr.expect("myapp|bin/script.dart.");
- pub.stdout.expect("[Info from Logging]:");
- pub.stdout.expect("myapp|lib/lib.dart.");
+ pub.stdout.expect("[Info from Logging]:");
+ pub.stdout.expect("myapp|lib/lib.dart.");
- pub.stderr.expect("[Warning from Logging]:");
- pub.stderr.expect("myapp|lib/lib.dart.");
+ pub.stderr.expect("[Warning from Logging]:");
+ pub.stderr.expect("myapp|lib/lib.dart.");
- pub.stdout.expect("lib");
- pub.shouldExit();
- });
+ pub.stdout.expect("lib");
+ pub.shouldExit();
});
}
« no previous file with comments | « test/global/run/runs_transformer_test.dart ('k') | test/run/does_not_run_on_transformer_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698