OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file | 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 | 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 initConfig(); | |
13 withBarbackVersions("any", () { | 12 withBarbackVersions("any", () { |
14 integration("loads a diamond transformer dependency graph", () { | 13 integration("loads a diamond transformer dependency graph", () { |
15 d.dir("top", [ | 14 d.dir("top", [ |
16 d.pubspec({ | 15 d.pubspec({ |
17 "name": "top", | 16 "name": "top", |
18 "version": "1.0.0" | 17 "version": "1.0.0" |
19 }), | 18 }), |
20 d.dir("lib", [ | 19 d.dir("lib", [ |
21 d.file("transformer.dart", dartTransformer('top')), | 20 d.file("transformer.dart", dartTransformer('top')), |
22 ]) | 21 ]) |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 pkg: ['barback']); | 71 pkg: ['barback']); |
73 | 72 |
74 pubServe(); | 73 pubServe(); |
75 requestShouldSucceed("main.dart", | 74 requestShouldSucceed("main.dart", |
76 'const TOKEN = "(((main.dart, (left, top)), (right, top)), ((myapp, ' | 75 'const TOKEN = "(((main.dart, (left, top)), (right, top)), ((myapp, ' |
77 '(left, top)), (right, top)))";'); | 76 '(left, top)), (right, top)))";'); |
78 endPubServe(); | 77 endPubServe(); |
79 }); | 78 }); |
80 }); | 79 }); |
81 } | 80 } |
OLD | NEW |