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 import 'package:scheduled_test/scheduled_test.dart'; | 5 import 'package:scheduled_test/scheduled_test.dart'; |
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 // This is a regression test for issue #17198. | 12 // This is a regression test for issue #17198. |
13 initConfig(); | |
14 withBarbackVersions("any", () { | 13 withBarbackVersions("any", () { |
15 integration("compiles a Dart file that imports a generated file to JS " | 14 integration("compiles a Dart file that imports a generated file to JS " |
16 "outside web/", () { | 15 "outside web/", () { |
17 d.dir(appPath, [ | 16 d.dir(appPath, [ |
18 d.pubspec({ | 17 d.pubspec({ |
19 "name": "myapp", | 18 "name": "myapp", |
20 "version": "0.0.1", | 19 "version": "0.0.1", |
21 "transformers": ["myapp/transformer"] | 20 "transformers": ["myapp/transformer"] |
22 }), | 21 }), |
23 d.dir("lib", [ | 22 d.dir("lib", [ |
(...skipping 13 matching lines...) Expand all Loading... |
37 | 36 |
38 createLockFile('myapp', pkg: ['barback']); | 37 createLockFile('myapp', pkg: ['barback']); |
39 | 38 |
40 pubServe(args: ["test"]); | 39 pubServe(args: ["test"]); |
41 requestShouldSucceed("main.dart.js", contains("(before, munge)"), | 40 requestShouldSucceed("main.dart.js", contains("(before, munge)"), |
42 root: "test"); | 41 root: "test"); |
43 endPubServe(); | 42 endPubServe(); |
44 }); | 43 }); |
45 }); | 44 }); |
46 } | 45 } |
OLD | NEW |