| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library pub_tests; | 5 library pub_tests; |
| 6 | 6 |
| 7 import 'package:scheduled_test/scheduled_test.dart'; | |
| 8 | |
| 9 import '../../descriptor.dart' as d; | 7 import '../../descriptor.dart' as d; |
| 10 import '../../test_pub.dart'; | 8 import '../../test_pub.dart'; |
| 11 import '../../serve/utils.dart'; | 9 import '../../serve/utils.dart'; |
| 12 | 10 |
| 13 main() { | 11 main() { |
| 14 initConfig(); | 12 initConfig(); |
| 15 | 13 |
| 16 integration("minify configuration overrides the mode", () { | 14 integration("minify configuration overrides the mode", () { |
| 17 d.dir(appPath, [ | 15 d.dir(appPath, [ |
| 18 d.pubspec({ | 16 d.pubspec({ |
| 19 "name": "myapp", | 17 "name": "myapp", |
| 20 "transformers": [{ | 18 "transformers": [{ |
| 21 "\$dart2js": {"minify": true} | 19 "\$dart2js": {"minify": true} |
| 22 }] | 20 }] |
| 23 }), | 21 }), |
| 24 d.dir("lib", [d.dir("src", [ | 22 d.dir("lib", [d.dir("src", [ |
| 25 d.file("transformer.dart", REWRITE_TRANSFORMER) | 23 d.file("transformer.dart", REWRITE_TRANSFORMER) |
| 26 ])]) | 24 ])]) |
| 27 ]).create(); | 25 ]).create(); |
| 28 | 26 |
| 29 createLockFile('myapp', pkg: ['barback']); | 27 createLockFile('myapp', pkg: ['barback']); |
| 30 | 28 |
| 31 pubServe(); | 29 pubServe(); |
| 32 requestShouldSucceed("main.dart.js", isMinifiedDart2JSOutput); | 30 requestShouldSucceed("main.dart.js", isMinifiedDart2JSOutput); |
| 33 endPubServe(); | 31 endPubServe(); |
| 34 }); | 32 }); |
| 35 } | 33 } |
| OLD | NEW |