Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: sdk/lib/_internal/pub/test/transformer/dart2js/ignores_entrypoint_outside_web_test.dart

Issue 24886002: Support dart2js in pub serve. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
});
}

Powered by Google App Engine
This is Rietveld 408576698