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

Unified Diff: test/run/mode_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/run/doesnt_load_an_unnecessary_transformer_test.dart ('k') | test/run/resource_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/run/mode_test.dart
diff --git a/test/run/mode_test.dart b/test/run/mode_test.dart
index b59a7ab09a58a70f380260c281656103a7085d1a..b4a670b55b7179af27c2e9d838f71d65eeccf848 100644
--- a/test/run/mode_test.dart
+++ b/test/run/mode_test.dart
@@ -27,10 +27,13 @@ class DartTransformer extends Transformer {
main() {
integration('runs a local script with customizable modes', () {
+ 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", TRANSFORMER),
@@ -38,7 +41,7 @@ main() {
])])
]).create();
- createLockFile('myapp', pkg: ['barback']);
+ pubGet();
// By default it should run in debug mode.
var pub = pubRun(args: ["bin/script"]);
@@ -52,11 +55,14 @@ main() {
});
integration('runs a dependency script with customizable modes', () {
+ serveBarback();
+
d.dir("foo", [
d.pubspec({
"name": "foo",
"version": "1.2.3",
- "transformers": ["foo/src/transformer"]
+ "transformers": ["foo/src/transformer"],
+ "dependencies": {"barback": "any"}
}),
d.dir("lib", [d.dir("src", [
d.file("transformer.dart", TRANSFORMER),
@@ -66,7 +72,7 @@ main() {
d.appDir({"foo": {"path": "../foo"}}).create();
- createLockFile('myapp', sandbox: ['foo'], pkg: ['barback']);
+ pubGet();
// By default it should run in release mode.
var pub = pubRun(args: ["foo:script"]);
« no previous file with comments | « test/run/doesnt_load_an_unnecessary_transformer_test.dart ('k') | test/run/resource_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698