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

Unified Diff: test/transformer/exclusion/works_on_lazy_transformer_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/transformer/exclusion/works_on_lazy_transformer_test.dart
diff --git a/test/transformer/exclusion/works_on_lazy_transformer_test.dart b/test/transformer/exclusion/works_on_lazy_transformer_test.dart
index 7dbb6df0143dadc68f1404f62ba79557c7177e1e..30d159090ce9f5d979d5684e80c45d19b450cbc8 100644
--- a/test/transformer/exclusion/works_on_lazy_transformer_test.dart
+++ b/test/transformer/exclusion/works_on_lazy_transformer_test.dart
@@ -12,43 +12,41 @@ import '../../test_pub.dart';
import '../../serve/utils.dart';
main() {
- withBarbackVersions("any", () {
- integration("works on a lazy transformer", () {
- d.dir(appPath, [
- d.pubspec({
- "name": "myapp",
- "transformers": [
- {
- "myapp": {
- "\$include": ["web/a.txt", "web/b.txt"],
- "\$exclude": "web/a.txt"
- }
+ integration("works on a lazy transformer", () {
+ d.dir(appPath, [
+ d.pubspec({
+ "name": "myapp",
+ "transformers": [
+ {
+ "myapp": {
+ "\$include": ["web/a.txt", "web/b.txt"],
+ "\$exclude": "web/a.txt"
}
- ]
- }),
- d.dir("lib", [d.file("transformer.dart", LAZY_TRANSFORMER)]),
- d.dir("web", [
- d.file("a.txt", "a"),
- d.file("b.txt", "b"),
- d.file("c.txt", "c")
- ])
- ]).create();
-
- createLockFile('myapp', pkg: ['barback']);
-
- var server = pubServe();
- // The transformer should remain lazy.
- server.stdout.expect("Build completed successfully");
-
- requestShould404("a.out");
- requestShouldSucceed("b.out", isNot(isEmpty));
- server.stdout.expect(consumeThrough(emitsLines(
- "[Info from LazyRewrite]:\n"
- "Rewriting myapp|web/b.txt.")));
- server.stdout.expect(consumeThrough("Build completed successfully"));
-
- requestShould404("c.out");
- endPubServe();
- });
+ }
+ ]
+ }),
+ d.dir("lib", [d.file("transformer.dart", LAZY_TRANSFORMER)]),
+ d.dir("web", [
+ d.file("a.txt", "a"),
+ d.file("b.txt", "b"),
+ d.file("c.txt", "c")
+ ])
+ ]).create();
+
+ createLockFile('myapp', pkg: ['barback']);
+
+ var server = pubServe();
+ // The transformer should remain lazy.
+ server.stdout.expect("Build completed successfully");
+
+ requestShould404("a.out");
+ requestShouldSucceed("b.out", isNot(isEmpty));
+ server.stdout.expect(consumeThrough(emitsLines(
+ "[Info from LazyRewrite]:\n"
+ "Rewriting myapp|web/b.txt.")));
+ server.stdout.expect(consumeThrough("Build completed successfully"));
+
+ requestShould404("c.out");
+ endPubServe();
});
}
« no previous file with comments | « test/transformer/exclusion/works_on_dart2js_test.dart ('k') | test/transformer/exclusion/works_on_transformer_group_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698