| 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 integration("preserves .htaccess as a special case", () { | 9 integration("preserves .htaccess as a special case", () { |
| 10 d.dir(appPath, [ | 10 d.dir(appPath, [ |
| 11 d.appPubspec(), | 11 d.appPubspec(), |
| 12 d.dir('web', [ | 12 d.dir('web', [ |
| 13 d.file('.htaccess', 'fblthp'), | 13 d.file('.htaccess', 'fblthp'), |
| 14 d.file('.hidden', 'asdfgh') | 14 d.file('.hidden', 'asdfgh') |
| 15 ]) | 15 ]) |
| 16 ]).create(); | 16 ]).create(); |
| 17 | 17 |
| 18 pubGet(); |
| 18 schedulePub(args: ["build"], | 19 schedulePub(args: ["build"], |
| 19 output: new RegExp(r'Built \d+ files? to "build".')); | 20 output: new RegExp(r'Built \d+ files? to "build".')); |
| 20 | 21 |
| 21 d.dir(appPath, [ | 22 d.dir(appPath, [ |
| 22 d.dir('build', [ | 23 d.dir('build', [ |
| 23 d.dir('web', [ | 24 d.dir('web', [ |
| 24 d.file('.htaccess', 'fblthp'), | 25 d.file('.htaccess', 'fblthp'), |
| 25 d.nothing('.hidden') | 26 d.nothing('.hidden') |
| 26 ]) | 27 ]) |
| 27 ]) | 28 ]) |
| 28 ]).validate(); | 29 ]).validate(); |
| 29 }); | 30 }); |
| 30 } | 31 } |
| OLD | NEW |