| 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:scheduled_test/scheduled_test.dart'; | 5 import 'package:scheduled_test/scheduled_test.dart'; |
| 6 | 6 |
| 7 import '../descriptor.dart' as d; | 7 import '../descriptor.dart' as d; |
| 8 import '../serve/utils.dart'; | 8 import '../serve/utils.dart'; |
| 9 import '../test_pub.dart'; | 9 import '../test_pub.dart'; |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 d.dir('web', [ | 42 d.dir('web', [ |
| 43 d.file('file.txt', 'web') | 43 d.file('file.txt', 'web') |
| 44 ]), | 44 ]), |
| 45 // Only includes default source directories. | 45 // Only includes default source directories. |
| 46 d.nothing('unknown') | 46 d.nothing('unknown') |
| 47 ]) | 47 ]) |
| 48 ]).validate(); | 48 ]).validate(); |
| 49 }); | 49 }); |
| 50 | 50 |
| 51 integration("serve --all finds assets in default source directories", () { | 51 integration("serve --all finds assets in default source directories", () { |
| 52 pubServe(args: ["--all"]); | 52 pubServe(args: ["--all"], shouldGetFirst: true); |
| 53 | 53 |
| 54 requestShouldSucceed("file.txt", "benchmark", root: "benchmark"); | 54 requestShouldSucceed("file.txt", "benchmark", root: "benchmark"); |
| 55 requestShouldSucceed("file.txt", "bin", root: "bin"); | 55 requestShouldSucceed("file.txt", "bin", root: "bin"); |
| 56 requestShouldSucceed("file.txt", "example", root: "example"); | 56 requestShouldSucceed("file.txt", "example", root: "example"); |
| 57 requestShouldSucceed("file.txt", "test", root: "test"); | 57 requestShouldSucceed("file.txt", "test", root: "test"); |
| 58 requestShouldSucceed("file.txt", "web", root: "web"); | 58 requestShouldSucceed("file.txt", "web", root: "web"); |
| 59 | 59 |
| 60 expectNotServed("unknown"); | 60 expectNotServed("unknown"); |
| 61 | 61 |
| 62 endPubServe(); | 62 endPubServe(); |
| 63 }); | 63 }); |
| 64 } | 64 } |
| OLD | NEW |