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

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

Issue 47793003: Control whether pub build and serve minify or not. (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
« no previous file with comments | « sdk/lib/_internal/pub/test/transformer/dart2js/takes_flag_minify_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/test/transformer/dart2js/unminified_by_default_test.dart
diff --git a/sdk/lib/_internal/pub/test/transformer/dart2js/does_not_compile_if_disabled_test.dart b/sdk/lib/_internal/pub/test/transformer/dart2js/unminified_by_default_test.dart
similarity index 78%
copy from sdk/lib/_internal/pub/test/transformer/dart2js/does_not_compile_if_disabled_test.dart
copy to sdk/lib/_internal/pub/test/transformer/dart2js/unminified_by_default_test.dart
index fc9066755aa287f857f12e288335de93e2d2ebd2..3f0bb23832d48cfc2ca6192b0ace68da0bb92174 100644
--- a/sdk/lib/_internal/pub/test/transformer/dart2js/does_not_compile_if_disabled_test.dart
+++ b/sdk/lib/_internal/pub/test/transformer/dart2js/unminified_by_default_test.dart
@@ -10,7 +10,7 @@ import '../../serve/utils.dart';
main() {
initConfig();
- integration("does not compile if dart2js is disabled", () {
+ integration("generates unminified JS by default", () {
d.dir(appPath, [
d.appPubspec(),
d.dir("web", [
@@ -18,8 +18,8 @@ main() {
])
]).create();
- startPubServe(dart2js: false);
- requestShould404("main.dart.js");
+ startPubServe();
+ requestShouldSucceed("main.dart.js", isUnminifiedDart2JSOutput);
endPubServe();
});
}
« no previous file with comments | « sdk/lib/_internal/pub/test/transformer/dart2js/takes_flag_minify_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698