| 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'; |
| 11 | 11 |
| 12 main() { | 12 main() { |
| 13 initConfig(); | |
| 14 | |
| 15 setUp(() { | 13 setUp(() { |
| 16 d.dir(appPath, [ | 14 d.dir(appPath, [ |
| 17 d.appPubspec(), | 15 d.appPubspec(), |
| 18 d.dir("web", [ | 16 d.dir("web", [ |
| 19 d.dir("one", [ | 17 d.dir("one", [ |
| 20 d.dir("inner", [d.file("file.txt", "one")]) | 18 d.dir("inner", [d.file("file.txt", "one")]) |
| 21 ]), | 19 ]), |
| 22 d.dir("two", [ | 20 d.dir("two", [ |
| 23 d.dir("inner", [d.file("file.txt", "two")]) | 21 d.dir("inner", [d.file("file.txt", "two")]) |
| 24 ]), | 22 ]), |
| (...skipping 30 matching lines...) Expand all Loading... |
| 55 pubServe(args: [webOne, webTwoInner]); | 53 pubServe(args: [webOne, webTwoInner]); |
| 56 | 54 |
| 57 requestShouldSucceed("inner/file.txt", "one", root: webOne); | 55 requestShouldSucceed("inner/file.txt", "one", root: webOne); |
| 58 requestShouldSucceed("file.txt", "two", root: webTwoInner); | 56 requestShouldSucceed("file.txt", "two", root: webTwoInner); |
| 59 expectNotServed("web"); | 57 expectNotServed("web"); |
| 60 expectNotServed(p.join("web", "three")); | 58 expectNotServed(p.join("web", "three")); |
| 61 | 59 |
| 62 endPubServe(); | 60 endPubServe(); |
| 63 }); | 61 }); |
| 64 } | 62 } |
| OLD | NEW |