| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS 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 '../descriptor.dart' as d; | 5 import '../descriptor.dart' as d; |
| 6 import '../test_pub.dart'; | 6 import '../test_pub.dart'; |
| 7 | 7 |
| 8 main() { | 8 main() { |
| 9 initConfig(); | |
| 10 | |
| 11 integration("preserves .htaccess as a special case", () { | 9 integration("preserves .htaccess as a special case", () { |
| 12 d.dir(appPath, [ | 10 d.dir(appPath, [ |
| 13 d.appPubspec(), | 11 d.appPubspec(), |
| 14 d.dir('web', [ | 12 d.dir('web', [ |
| 15 d.file('.htaccess', 'fblthp'), | 13 d.file('.htaccess', 'fblthp'), |
| 16 d.file('.hidden', 'asdfgh') | 14 d.file('.hidden', 'asdfgh') |
| 17 ]) | 15 ]) |
| 18 ]).create(); | 16 ]).create(); |
| 19 | 17 |
| 20 schedulePub(args: ["build"], | 18 schedulePub(args: ["build"], |
| 21 output: new RegExp(r'Built \d+ files? to "build".')); | 19 output: new RegExp(r'Built \d+ files? to "build".')); |
| 22 | 20 |
| 23 d.dir(appPath, [ | 21 d.dir(appPath, [ |
| 24 d.dir('build', [ | 22 d.dir('build', [ |
| 25 d.dir('web', [ | 23 d.dir('web', [ |
| 26 d.file('.htaccess', 'fblthp'), | 24 d.file('.htaccess', 'fblthp'), |
| 27 d.nothing('.hidden') | 25 d.nothing('.hidden') |
| 28 ]) | 26 ]) |
| 29 ]) | 27 ]) |
| 30 ]).validate(); | 28 ]).validate(); |
| 31 }); | 29 }); |
| 32 } | 30 } |
| OLD | NEW |