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

Unified Diff: test/transformer/can_use_consume_primary_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
« no previous file with comments | « test/transformer/can_log_messages_test.dart ('k') | test/transformer/can_use_has_input_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/transformer/can_use_consume_primary_test.dart
diff --git a/test/transformer/can_use_consume_primary_test.dart b/test/transformer/can_use_consume_primary_test.dart
index a36e5317777ef8fefbe36d15749beeeaa4b3b7f6..ee45a69da98440b66912800003a542f924c49d4d 100644
--- a/test/transformer/can_use_consume_primary_test.dart
+++ b/test/transformer/can_use_consume_primary_test.dart
@@ -30,25 +30,27 @@ class RewriteTransformer extends Transformer {
""";
main() {
- integration("a transform can use consumePrimary", () {
- d.dir(appPath, [
- d.pubspec({
- "name": "myapp",
- "transformers": ["myapp/src/transformer"]
- }),
- d.dir("lib", [d.dir("src", [
- d.file("transformer.dart", TRANSFORMER)
- ])]),
- d.dir("web", [
- d.file("foo.txt", "foo")
- ])
- ]).create();
-
- createLockFile('myapp', pkg: ['barback']);
-
- pubServe();
- requestShouldSucceed("foo.out", "foo.out");
- requestShould404("foo.txt");
- endPubServe();
- });
+ integration("a transform can use consumePrimary", () {
+ serveBarback();
+
+ d.dir(appPath, [
+ d.pubspec({
+ "name": "myapp",
+ "transformers": ["myapp/src/transformer"],
+ "dependencies": {"barback": "any"}
+ }),
+ d.dir("lib", [d.dir("src", [
+ d.file("transformer.dart", TRANSFORMER)
+ ])]),
+ d.dir("web", [
+ d.file("foo.txt", "foo")
+ ])
+ ]).create();
+
+ pubGet();
+ pubServe();
+ requestShouldSucceed("foo.out", "foo.out");
+ requestShould404("foo.txt");
+ endPubServe();
+ });
}
« no previous file with comments | « test/transformer/can_log_messages_test.dart ('k') | test/transformer/can_use_has_input_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698