| Index: sdk/lib/_internal/pub/test/build/minifies_js_by_default_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/build/includes_assets_from_dependencies_test.dart b/sdk/lib/_internal/pub/test/build/minifies_js_by_default_test.dart
|
| similarity index 50%
|
| copy from sdk/lib/_internal/pub/test/build/includes_assets_from_dependencies_test.dart
|
| copy to sdk/lib/_internal/pub/test/build/minifies_js_by_default_test.dart
|
| index 1455808d965975d28c96c4d59c22360b4af67a77..73f58dd82c1d663f6020f6a99c343d7cef232ec2 100644
|
| --- a/sdk/lib/_internal/pub/test/build/includes_assets_from_dependencies_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/build/minifies_js_by_default_test.dart
|
| @@ -10,45 +10,25 @@ import '../test_pub.dart';
|
| main() {
|
| initConfig();
|
|
|
| - integration("includes assets from dependencies", () {
|
| + integration("generates minified JavaScript", () {
|
| // Dart2js can take a long time to compile dart code, so we increase the
|
| // timeout to cope with that.
|
| currentSchedule.timeout *= 3;
|
|
|
| - d.dir("foo", [
|
| - d.libPubspec("foo", "0.0.1"),
|
| - d.dir("asset", [
|
| - d.file("foo.txt", "foo"),
|
| - d.dir("sub", [
|
| - d.file("bar.txt", "bar"),
|
| - ])
|
| - ])
|
| - ]).create();
|
| -
|
| d.dir(appPath, [
|
| - d.appPubspec({
|
| - "foo": {"path": "../foo"}
|
| - }),
|
| - d.dir("web", [
|
| - d.file("index.html", "html"),
|
| + d.appPubspec(),
|
| + d.dir('web', [
|
| + d.file('main.dart', 'void main() => print("hello");')
|
| ])
|
| ]).create();
|
|
|
| schedulePub(args: ["build"],
|
| - output: new RegExp(r"Built 3 files!"),
|
| + output: new RegExp(r"Built 1 file!"),
|
| exitCode: 0);
|
|
|
| d.dir(appPath, [
|
| d.dir('build', [
|
| - d.file("index.html", "html"),
|
| - d.dir('assets', [
|
| - d.dir('foo', [
|
| - d.file('foo.txt', 'foo'),
|
| - d.dir('sub', [
|
| - d.file('bar.txt', 'bar'),
|
| - ]),
|
| - ])
|
| - ])
|
| + d.matcherFile('main.dart.js', isMinifiedDart2JSOutput)
|
| ])
|
| ]).validate();
|
| });
|
|
|