Index: sdk/lib/_internal/pub/test/transformer/dart2js/converts_entrypoint_in_web_test.dart |
diff --git a/sdk/lib/_internal/pub/test/serve/invalid_method_test.dart b/sdk/lib/_internal/pub/test/transformer/dart2js/converts_entrypoint_in_web_test.dart |
similarity index 54% |
copy from sdk/lib/_internal/pub/test/serve/invalid_method_test.dart |
copy to sdk/lib/_internal/pub/test/transformer/dart2js/converts_entrypoint_in_web_test.dart |
index 28a259dbdc35d0bd2e6c1355b00e66e8bbb7a940..538930a2f212326bb1389c900db1b9d22c6d9209 100644 |
--- a/sdk/lib/_internal/pub/test/serve/invalid_method_test.dart |
+++ b/sdk/lib/_internal/pub/test/transformer/dart2js/converts_entrypoint_in_web_test.dart |
@@ -4,23 +4,24 @@ |
library pub_tests; |
-import '../descriptor.dart' as d; |
-import '../test_pub.dart'; |
-import 'utils.dart'; |
+import 'package:scheduled_test/scheduled_test.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("converts a Dart entrypoint in web to JS", () { |
d.dir(appPath, [ |
d.appPubspec(), |
d.dir("web", [ |
- d.file("index.html", "<body>"), |
+ d.file("main.dart", "void main() => print('hello');") |
]) |
]).create(); |
startPubServe(); |
- |
- postShould405("index.html"); |
+ requestShouldSucceed("main.dart.js", contains("hello")); |
endPubServe(); |
}); |
} |