OLD | NEW |
| (Empty) |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS 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 import 'package:path/path.dart' as path; | |
6 | |
7 import '../descriptor.dart' as d; | |
8 import '../test_pub.dart'; | |
9 | |
10 const SCRIPT = r""" | |
11 import '../../a.dart'; | |
12 import '../b.dart'; | |
13 main() { | |
14 print("$a $b"); | |
15 } | |
16 """; | |
17 | |
18 main() { | |
19 initConfig(); | |
20 integration( | |
21 'allows assets in parent directories of the entrypoint to be' 'accessed', | |
22 () { | |
23 d.dir( | |
24 appPath, | |
25 [ | |
26 d.appPubspec(), | |
27 d.dir( | |
28 "tool", | |
29 [ | |
30 d.file("a.dart", "var a = 'a';"), | |
31 d.dir( | |
32 "a", | |
33 [ | |
34 d.file("b.dart", "var b = 'b';"), | |
35 d.dir("b", [d.file("app.dart", SCRIPT)])])])]).creat
e(); | |
36 | |
37 var pub = pubRun(args: [path.join("tool", "a", "b", "app")]); | |
38 pub.stdout.expect("a b"); | |
39 pub.shouldExit(); | |
40 }); | |
41 } | |
OLD | NEW |