Chromium Code Reviews| Index: sdk/lib/_internal/pub/test/serve/roots/serves_web_and_test_dirs_by_default_test.dart |
| diff --git a/sdk/lib/_internal/pub/test/transformer/dart2js/ignores_entrypoint_outside_web_test.dart b/sdk/lib/_internal/pub/test/serve/roots/serves_web_and_test_dirs_by_default_test.dart |
| similarity index 50% |
| copy from sdk/lib/_internal/pub/test/transformer/dart2js/ignores_entrypoint_outside_web_test.dart |
| copy to sdk/lib/_internal/pub/test/serve/roots/serves_web_and_test_dirs_by_default_test.dart |
| index 1ad02a397926146463e155348caf05038c1645bd..b95e0ffd5b07fa4ca8c38da012179788fb8d1ec9 100644 |
| --- a/sdk/lib/_internal/pub/test/transformer/dart2js/ignores_entrypoint_outside_web_test.dart |
| +++ b/sdk/lib/_internal/pub/test/serve/roots/serves_web_and_test_dirs_by_default_test.dart |
| @@ -1,4 +1,4 @@ |
| -// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file |
| +// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| @@ -6,20 +6,20 @@ library pub_tests; |
| import '../../descriptor.dart' as d; |
| import '../../test_pub.dart'; |
| -import '../../serve/utils.dart'; |
| +import '../utils.dart'; |
| main() { |
| initConfig(); |
| - integration("ignores a Dart entrypoint outside web", () { |
| + integration("serves web/ and test/ dirs by default", () { |
| d.dir(appPath, [ |
| d.appPubspec(), |
| - d.dir("lib", [ |
| - d.file("main.dart", "void main() => print('hello');") |
| - ]) |
| + d.dir("web", [d.file("foo", "contents")]), |
| + d.dir("test", [d.file("bar", "contents")]) |
| ]).create(); |
| pubServe(); |
| - requestShould404("packages/myapp/main.dart.js"); |
| + requestShouldSucceed("foo", "contents", root: "web"); |
| + requestShouldSucceed("bar", "contents", root: "test"); |
|
Bob Nystrom
2014/02/19 00:36:52
Test that it 404s on something in example.
nweiz
2014/02/19 01:25:58
Done.
|
| endPubServe(); |
| }); |
| } |