OLD | NEW |
| (Empty) |
1 // Copyright (c) 2013, 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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 library pub_tests; | |
6 | |
7 import '../descriptor.dart' as d; | |
8 import '../test_pub.dart'; | |
9 import '../serve/utils.dart'; | |
10 | |
11 // Regression test for issue 21726. | |
12 main() { | |
13 initConfig(); | |
14 withBarbackVersions("any", () { | |
15 integration("runs a dart2js transformer before a local transformer", () { | |
16 d.dir(appPath, [d.pubspec({ | |
17 "name": "myapp", | |
18 "transformers": [r"$dart2js", "myapp/src/transformer"] | |
19 }), | |
20 d.dir("lib", [d.dir("src", [d.file("transformer.dart", REWRITE_TRANS
FORMER)])]), | |
21 d.dir("web", [d.file("foo.txt", "foo")])]).create(); | |
22 | |
23 createLockFile('myapp', pkg: ['barback']); | |
24 | |
25 pubServe(); | |
26 requestShouldSucceed("foo.out", "foo.out"); | |
27 endPubServe(); | |
28 }); | |
29 }); | |
30 } | |
OLD | NEW |