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

Side by Side Diff: sdk/lib/_internal/pub/test/build/preserves_htaccess_test.dart

Issue 342553002: Respect git's ignore rules pervasively in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review, performance improvements Created 6 years, 6 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 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 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/validator/name.dart ('k') | sdk/lib/_internal/pub/test/package_files_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698