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

Side by Side Diff: sdk/lib/_internal/pub/test/transformer/dart2js/minify_configuration_overrides_mode_test.dart

Issue 141113011: Support directories other than "web" in pub build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698