Index: sdk/lib/_internal/pub/test/transformer/dart2js/ignores_entrypoint_outside_web_test.dart |
diff --git a/sdk/lib/_internal/pub/test/serve/invalid_method_test.dart b/sdk/lib/_internal/pub/test/transformer/dart2js/ignores_entrypoint_outside_web_test.dart |
similarity index 56% |
copy from sdk/lib/_internal/pub/test/serve/invalid_method_test.dart |
copy to sdk/lib/_internal/pub/test/transformer/dart2js/ignores_entrypoint_outside_web_test.dart |
index 28a259dbdc35d0bd2e6c1355b00e66e8bbb7a940..baae7d42812e5ca600cceeb45a573f1c9a1163ea 100644 |
--- a/sdk/lib/_internal/pub/test/serve/invalid_method_test.dart |
+++ b/sdk/lib/_internal/pub/test/transformer/dart2js/ignores_entrypoint_outside_web_test.dart |
@@ -4,23 +4,22 @@ |
library pub_tests; |
-import '../descriptor.dart' as d; |
-import '../test_pub.dart'; |
-import 'utils.dart'; |
+import '../../descriptor.dart' as d; |
+import '../../test_pub.dart'; |
+import '../../serve/utils.dart'; |
main() { |
initConfig(); |
- integration("responds with a 405 for an invalid method", () { |
+ integration("ignores a Dart entrypoint outside web", () { |
d.dir(appPath, [ |
d.appPubspec(), |
- d.dir("web", [ |
- d.file("index.html", "<body>"), |
+ d.dir("lib", [ |
+ d.file("main.dart", "void main() => print('hello');") |
]) |
]).create(); |
startPubServe(); |
- |
- postShould405("index.html"); |
+ requestShould404("packages/myapp/main.dart.js"); |
endPubServe(); |
}); |
} |