Index: sdk/lib/_internal/pub/test/transformer/dart2js/takes_flag_minify_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/takes_flag_minify_test.dart |
similarity index 76% |
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/takes_flag_minify_test.dart |
index fc9066755aa287f857f12e288335de93e2d2ebd2..e385237589af0e1ba42a0131caf5048d1e6fefc8 100644 |
--- a/sdk/lib/_internal/pub/test/transformer/dart2js/does_not_compile_if_disabled_test.dart |
+++ b/sdk/lib/_internal/pub/test/transformer/dart2js/takes_flag_minify_test.dart |
@@ -10,7 +10,7 @@ import '../../serve/utils.dart'; |
main() { |
initConfig(); |
- integration("does not compile if dart2js is disabled", () { |
+ integration("generates minified JS if the flag is set", () { |
d.dir(appPath, [ |
d.appPubspec(), |
d.dir("web", [ |
@@ -18,8 +18,8 @@ main() { |
]) |
]).create(); |
- startPubServe(dart2js: false); |
- requestShould404("main.dart.js"); |
+ startPubServe(args: ["--minify"]); |
+ requestShouldSucceed("main.dart.js", isMinifiedDart2JSOutput); |
endPubServe(); |
}); |
} |