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 p; | 5 import 'package:path/path.dart' as p; |
6 import 'package:scheduled_test/scheduled_test.dart'; | 6 import 'package:scheduled_test/scheduled_test.dart'; |
7 | 7 |
8 import '../descriptor.dart' as d; | 8 import '../descriptor.dart' as d; |
9 import '../serve/utils.dart'; | 9 import '../serve/utils.dart'; |
10 import '../test_pub.dart'; | 10 import '../test_pub.dart'; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 d.dir("two", [ | 43 d.dir("two", [ |
44 d.dir("inner", [d.file("file.txt", "two")]) | 44 d.dir("inner", [d.file("file.txt", "two")]) |
45 ]), | 45 ]), |
46 d.nothing("nope") | 46 d.nothing("nope") |
47 ]) | 47 ]) |
48 ]) | 48 ]) |
49 ]).validate(); | 49 ]).validate(); |
50 }); | 50 }); |
51 | 51 |
52 integration("serves subdirectories", () { | 52 integration("serves subdirectories", () { |
53 pubServe(args: [webOne, webTwoInner]); | 53 pubServe(args: [webOne, webTwoInner], shouldGetFirst: true); |
54 | 54 |
55 requestShouldSucceed("inner/file.txt", "one", root: webOne); | 55 requestShouldSucceed("inner/file.txt", "one", root: webOne); |
56 requestShouldSucceed("file.txt", "two", root: webTwoInner); | 56 requestShouldSucceed("file.txt", "two", root: webTwoInner); |
57 expectNotServed("web"); | 57 expectNotServed("web"); |
58 expectNotServed(p.join("web", "three")); | 58 expectNotServed(p.join("web", "three")); |
59 | 59 |
60 endPubServe(); | 60 endPubServe(); |
61 }); | 61 }); |
62 } | 62 } |
OLD | NEW |