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 import 'package:pub/src/exit_codes.dart' as exit_codes; | 6 import 'package:pub/src/exit_codes.dart' as exit_codes; |
7 import 'package:scheduled_test/scheduled_test.dart'; | 7 import 'package:scheduled_test/scheduled_test.dart'; |
8 | 8 |
9 import '../descriptor.dart' as d; | 9 import '../descriptor.dart' as d; |
10 import '../test_pub.dart'; | 10 import '../test_pub.dart'; |
11 import 'utils.dart'; | 11 import 'utils.dart'; |
12 | 12 |
13 main() { | 13 main() { |
14 initConfig(); | |
15 | |
16 setUp(() { | 14 setUp(() { |
17 d.dir(appPath, [ | 15 d.dir(appPath, [ |
18 d.appPubspec(), | 16 d.appPubspec(), |
19 d.dir("web", [ | 17 d.dir("web", [ |
20 d.dir("sub1", [ | 18 d.dir("sub1", [ |
21 d.file("file.txt", "contents"), | 19 d.file("file.txt", "contents"), |
22 d.dir("sub2", [ | 20 d.dir("sub2", [ |
23 d.file("file.txt", "contents") | 21 d.file("file.txt", "contents") |
24 ]), | 22 ]), |
25 d.dir("sub3", [ | 23 d.dir("sub3", [ |
(...skipping 17 matching lines...) Loading... |
43 args: [webSub1, webSub1Sub2], | 41 args: [webSub1, webSub1Sub2], |
44 error: 'Directories "$webSub1" and "$webSub1Sub2" cannot overlap.', | 42 error: 'Directories "$webSub1" and "$webSub1Sub2" cannot overlap.', |
45 exitCode: exit_codes.USAGE); | 43 exitCode: exit_codes.USAGE); |
46 | 44 |
47 pubBuildAndServeShouldFail("if multiple directories overlap", | 45 pubBuildAndServeShouldFail("if multiple directories overlap", |
48 args: [webSub1, webSub1Sub2, webSub1Sub3], | 46 args: [webSub1, webSub1Sub2, webSub1Sub3], |
49 error: 'Directories "$webSub1", "$webSub1Sub2" and "$webSub1Sub3" ' | 47 error: 'Directories "$webSub1", "$webSub1Sub2" and "$webSub1Sub3" ' |
50 'cannot overlap.', | 48 'cannot overlap.', |
51 exitCode: exit_codes.USAGE); | 49 exitCode: exit_codes.USAGE); |
52 } | 50 } |
OLD | NEW |