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

Side by Side Diff: test/transformer/exclusion/includes_before_excludes_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("applies includes before excludes if both are present", () { 12 integration("applies includes before excludes if both are present", () {
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 "\$include": ["web/a.txt", "web/b.txt"], 21 "\$include": ["web/a.txt", "web/b.txt"],
20 "\$exclude": "web/a.txt" 22 "\$exclude": "web/a.txt"
21 } 23 }
22 } 24 }
23 ] 25 ],
26 "dependencies": {"barback": "any"}
24 }), 27 }),
25 d.dir("lib", [d.dir("src", [ 28 d.dir("lib", [d.dir("src", [
26 d.file("transformer.dart", REWRITE_TRANSFORMER) 29 d.file("transformer.dart", REWRITE_TRANSFORMER)
27 ])]), 30 ])]),
28 d.dir("web", [ 31 d.dir("web", [
29 d.file("a.txt", "a.txt"), 32 d.file("a.txt", "a.txt"),
30 d.file("b.txt", "b.txt"), 33 d.file("b.txt", "b.txt"),
31 d.file("c.txt", "c.txt") 34 d.file("c.txt", "c.txt")
32 ]) 35 ])
33 ]).create(); 36 ]).create();
34 37
35 createLockFile('myapp', pkg: ['barback']); 38 pubGet();
36
37 pubServe(); 39 pubServe();
38 requestShould404("a.out"); 40 requestShould404("a.out");
39 requestShouldSucceed("b.out", "b.txt.out"); 41 requestShouldSucceed("b.out", "b.txt.out");
40 requestShould404("c.out"); 42 requestShould404("c.out");
41 endPubServe(); 43 endPubServe();
42 }); 44 });
43 } 45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698