Chromium Code Reviews

Side by Side Diff: test/transformer/can_use_has_input_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.
Jump to:
View unified diff |
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library pub_tests; 5 library pub_tests;
6 6
7 import '../descriptor.dart' as d; 7 import '../descriptor.dart' as d;
8 import '../test_pub.dart'; 8 import '../test_pub.dart';
9 import '../serve/utils.dart'; 9 import '../serve/utils.dart';
10 10
(...skipping 16 matching lines...)
27 var asset = new Asset.fromString(id, 27 var asset = new Asset.fromString(id,
28 "primary: \${results[0]}, secondary: \${results[1]}"); 28 "primary: \${results[0]}, secondary: \${results[1]}");
29 transform.addOutput(asset); 29 transform.addOutput(asset);
30 }); 30 });
31 } 31 }
32 } 32 }
33 """; 33 """;
34 34
35 main() { 35 main() {
36 integration("a transform can use hasInput", () { 36 integration("a transform can use hasInput", () {
37 serveBarback();
38
37 d.dir(appPath, [ 39 d.dir(appPath, [
38 d.pubspec({ 40 d.pubspec({
39 "name": "myapp", 41 "name": "myapp",
40 "transformers": ["myapp/src/transformer"] 42 "transformers": ["myapp/src/transformer"],
43 "dependencies": {"barback": "any"}
41 }), 44 }),
42 d.dir("lib", [d.dir("src", [ 45 d.dir("lib", [d.dir("src", [
43 d.file("transformer.dart", TRANSFORMER) 46 d.file("transformer.dart", TRANSFORMER)
44 ])]), 47 ])]),
45 d.dir("web", [ 48 d.dir("web", [
46 d.file("foo.txt", "foo") 49 d.file("foo.txt", "foo")
47 ]) 50 ])
48 ]).create(); 51 ]).create();
49 52
50 createLockFile('myapp', pkg: ['barback']); 53 pubGet();
51
52 pubServe(); 54 pubServe();
53 requestShouldSucceed("foo.out", "primary: true, secondary: false"); 55 requestShouldSucceed("foo.out", "primary: true, secondary: false");
54 endPubServe(); 56 endPubServe();
55 }); 57 });
56 } 58 }
OLDNEW
« no previous file with comments | « test/transformer/can_use_consume_primary_test.dart ('k') | test/transformer/can_use_read_input_as_string_test.dart » ('j') | no next file with comments »

Powered by Google App Engine