OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import '../descriptor.dart' as d; |
| 3 import '../test_pub.dart'; |
| 4 import 'utils.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 integration("finds files in the app's web directory", () { |
| 8 d.dir( |
| 9 appPath, |
| 10 [ |
| 11 d.appPubspec(), |
| 12 d.dir( |
| 13 "web", |
| 14 [ |
| 15 d.file("index.html", "<body>"), |
| 16 d.file("file.dart", "main() => print('hello');"), |
| 17 d.dir( |
| 18 "sub", |
| 19 [ |
| 20 d.file("file.html", "<body>in subdir</body>"), |
| 21 d.file("lib.dart", "main() => 'foo';")])])]).create(
); |
| 22 pubServe(); |
| 23 requestShouldSucceed("index.html", "<body>"); |
| 24 requestShouldSucceed("file.dart", "main() => print('hello');"); |
| 25 requestShouldSucceed("sub/file.html", "<body>in subdir</body>"); |
| 26 requestShouldSucceed("sub/lib.dart", "main() => 'foo';"); |
| 27 endPubServe(); |
| 28 }); |
| 29 } |
OLD | NEW |