OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 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 | 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:path/path.dart' as path; | 5 import 'package:path/path.dart' as path; |
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 | 9 |
10 const SCRIPT = r""" | 10 const SCRIPT = r""" |
(...skipping 13 matching lines...) Expand all Loading... |
24 d.file("a.dart", "var a = 'a';"), | 24 d.file("a.dart", "var a = 'a';"), |
25 d.dir("a", [ | 25 d.dir("a", [ |
26 d.file("b.dart", "var b = 'b';"), | 26 d.file("b.dart", "var b = 'b';"), |
27 d.dir("b", [ | 27 d.dir("b", [ |
28 d.file("app.dart", SCRIPT) | 28 d.file("app.dart", SCRIPT) |
29 ]) | 29 ]) |
30 ]) | 30 ]) |
31 ]) | 31 ]) |
32 ]).create(); | 32 ]).create(); |
33 | 33 |
34 var pub = pubRun(args: [path.join("tool", "a", "b", "app")], | 34 pubGet(); |
35 shouldGetFirst: true); | 35 var pub = pubRun(args: [path.join("tool", "a", "b", "app")]); |
36 pub.stdout.expect("a b"); | 36 pub.stdout.expect("a b"); |
37 pub.shouldExit(); | 37 pub.shouldExit(); |
38 }); | 38 }); |
39 } | 39 } |
OLD | NEW |