OLD | NEW |
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 'package:scheduled_test/scheduled_stream.dart'; | 7 import 'package:scheduled_test/scheduled_stream.dart'; |
8 import 'package:scheduled_test/scheduled_test.dart'; | 8 import 'package:scheduled_test/scheduled_test.dart'; |
9 | 9 |
10 import '../../descriptor.dart' as d; | 10 import '../../descriptor.dart' as d; |
11 import '../../test_pub.dart'; | 11 import '../../test_pub.dart'; |
12 import '../../serve/utils.dart'; | 12 import '../../serve/utils.dart'; |
13 | 13 |
14 main() { | 14 main() { |
15 initConfig(); | |
16 withBarbackVersions("any", () { | 15 withBarbackVersions("any", () { |
17 integration("works on a lazy transformer", () { | 16 integration("works on a lazy transformer", () { |
18 d.dir(appPath, [ | 17 d.dir(appPath, [ |
19 d.pubspec({ | 18 d.pubspec({ |
20 "name": "myapp", | 19 "name": "myapp", |
21 "transformers": [ | 20 "transformers": [ |
22 { | 21 { |
23 "myapp": { | 22 "myapp": { |
24 "\$include": ["web/a.txt", "web/b.txt"], | 23 "\$include": ["web/a.txt", "web/b.txt"], |
25 "\$exclude": "web/a.txt" | 24 "\$exclude": "web/a.txt" |
(...skipping 20 matching lines...) Expand all Loading... |
46 server.stdout.expect(consumeThrough(emitsLines( | 45 server.stdout.expect(consumeThrough(emitsLines( |
47 "[Info from LazyRewrite]:\n" | 46 "[Info from LazyRewrite]:\n" |
48 "Rewriting myapp|web/b.txt."))); | 47 "Rewriting myapp|web/b.txt."))); |
49 server.stdout.expect(consumeThrough("Build completed successfully")); | 48 server.stdout.expect(consumeThrough("Build completed successfully")); |
50 | 49 |
51 requestShould404("c.out"); | 50 requestShould404("c.out"); |
52 endPubServe(); | 51 endPubServe(); |
53 }); | 52 }); |
54 }); | 53 }); |
55 } | 54 } |
OLD | NEW |