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 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 import 'package:scheduled_test/scheduled_test.dart'; |
| 6 |
5 import '../descriptor.dart' as d; | 7 import '../descriptor.dart' as d; |
6 import '../test_pub.dart'; | 8 import '../test_pub.dart'; |
7 | 9 |
8 main() { | 10 main() { |
9 initConfig(); | 11 initConfig(); |
10 integration("omits source maps from a release build", () { | 12 |
| 13 integration("preserves .htaccess as a special case", () { |
11 d.dir(appPath, [ | 14 d.dir(appPath, [ |
12 d.appPubspec(), | 15 d.appPubspec(), |
13 d.dir("web", [ | 16 d.dir('web', [ |
14 d.file("main.dart", "void main() => print('hello');") | 17 d.file('.htaccess', 'fblthp'), |
| 18 d.file('.hidden', 'asdfgh') |
15 ]) | 19 ]) |
16 ]).create(); | 20 ]).create(); |
17 | 21 |
18 schedulePub(args: ["build"], | 22 schedulePub(args: ["build"], |
19 output: new RegExp(r'Built 2 files to "build".'), | 23 output: new RegExp(r'Built \d+ files? to "build".')); |
20 exitCode: 0); | |
21 | 24 |
22 d.dir(appPath, [ | 25 d.dir(appPath, [ |
23 d.dir('build', [ | 26 d.dir('build', [ |
24 d.dir('web', [ | 27 d.dir('web', [ |
25 d.nothing('main.dart.js.map') | 28 d.file('.htaccess', 'fblthp'), |
| 29 d.nothing('.hidden') |
26 ]) | 30 ]) |
27 ]) | 31 ]) |
28 ]).validate(); | 32 ]).validate(); |
29 }); | 33 }); |
30 } | 34 } |
OLD | NEW |