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

Side by Side Diff: test/transformer/exclusion/exclude_asset_string_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 unified diff | Download patch
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
11 main() { 11 main() {
12 integration("allows a single string as the asset to exclude", () { 12 integration("allows a single string as the asset to exclude", () {
13 serveBarback();
14
13 d.dir(appPath, [ 15 d.dir(appPath, [
14 d.pubspec({ 16 d.pubspec({
15 "name": "myapp", 17 "name": "myapp",
16 "transformers": [ 18 "transformers": [
17 { 19 {
18 "myapp/src/transformer": { 20 "myapp/src/transformer": {
19 "\$exclude": "web/foo.txt" 21 "\$exclude": "web/foo.txt"
20 } 22 }
21 } 23 }
22 ] 24 ],
25 "dependencies": {"barback": "any"}
23 }), 26 }),
24 d.dir("lib", [d.dir("src", [ 27 d.dir("lib", [d.dir("src", [
25 d.file("transformer.dart", REWRITE_TRANSFORMER) 28 d.file("transformer.dart", REWRITE_TRANSFORMER)
26 ])]), 29 ])]),
27 d.dir("web", [ 30 d.dir("web", [
28 d.file("foo.txt", "foo"), 31 d.file("foo.txt", "foo"),
29 d.file("bar.txt", "bar"), 32 d.file("bar.txt", "bar"),
30 d.dir("sub", [ 33 d.dir("sub", [
31 d.file("foo.txt", "foo"), 34 d.file("foo.txt", "foo"),
32 ]) 35 ])
33 ]) 36 ])
34 ]).create(); 37 ]).create();
35 38
36 createLockFile('myapp', pkg: ['barback']); 39 pubGet();
37
38 pubServe(); 40 pubServe();
39 requestShould404("foo.out"); 41 requestShould404("foo.out");
40 requestShouldSucceed("sub/foo.out", "foo.out"); 42 requestShouldSucceed("sub/foo.out", "foo.out");
41 requestShouldSucceed("bar.out", "bar.out"); 43 requestShouldSucceed("bar.out", "bar.out");
42 endPubServe(); 44 endPubServe();
43 }); 45 });
44 } 46 }
OLDNEW
« no previous file with comments | « test/transformer/exclusion/exclude_asset_prefix_test.dart ('k') | test/transformer/exclusion/include_asset_glob_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698