| OLD | NEW |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 1 import '../descriptor.dart' as d; | 5 import '../descriptor.dart' as d; |
| 2 import '../test_pub.dart'; | 6 import '../test_pub.dart'; |
| 7 |
| 3 main() { | 8 main() { |
| 4 initConfig(); | 9 initConfig(); |
| 10 |
| 5 integration("preserves .htaccess as a special case", () { | 11 integration("preserves .htaccess as a special case", () { |
| 6 d.dir( | 12 d.dir( |
| 7 appPath, | 13 appPath, |
| 8 [ | 14 [ |
| 9 d.appPubspec(), | 15 d.appPubspec(), |
| 10 d.dir( | 16 d.dir( |
| 11 'web', | 17 'web', |
| 12 [d.file('.htaccess', 'fblthp'), d.file('.hidden', 'asdfgh')])]).
create(); | 18 [d.file('.htaccess', 'fblthp'), d.file('.hidden', 'asdfgh')])]).
create(); |
| 19 |
| 13 schedulePub( | 20 schedulePub( |
| 14 args: ["build"], | 21 args: ["build"], |
| 15 output: new RegExp(r'Built \d+ files? to "build".')); | 22 output: new RegExp(r'Built \d+ files? to "build".')); |
| 23 |
| 16 d.dir( | 24 d.dir( |
| 17 appPath, | 25 appPath, |
| 18 [ | 26 [ |
| 19 d.dir( | 27 d.dir( |
| 20 'build', | 28 'build', |
| 21 [ | 29 [ |
| 22 d.dir( | 30 d.dir( |
| 23 'web', | 31 'web', |
| 24 [d.file('.htaccess', 'fblthp'), d.nothing('.hidden')])])
]).validate(); | 32 [d.file('.htaccess', 'fblthp'), d.nothing('.hidden')])])
]).validate(); |
| 25 }); | 33 }); |
| 26 } | 34 } |
| OLD | NEW |