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

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

Issue 391363004: Include file path in JSON error when possible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 years, 5 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 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
7 import '../descriptor.dart' as d; 5 import '../descriptor.dart' as d;
8 import '../test_pub.dart'; 6 import '../test_pub.dart';
9 7
10 main() { 8 main() {
11 initConfig(); 9 initConfig();
12 10
13 integration("preserves .htaccess as a special case", () { 11 integration("preserves .htaccess as a special case", () {
14 d.dir(appPath, [ 12 d.dir(appPath, [
15 d.appPubspec(), 13 d.appPubspec(),
16 d.dir('web', [ 14 d.dir('web', [
17 d.file('.htaccess', 'fblthp'), 15 d.file('.htaccess', 'fblthp'),
18 d.file('.hidden', 'asdfgh') 16 d.file('.hidden', 'asdfgh')
19 ]) 17 ])
20 ]).create(); 18 ]).create();
21 19
22 schedulePub(args: ["build"], 20 schedulePub(args: ["build"],
23 output: new RegExp(r'Built \d+ files? to "build".')); 21 output: new RegExp(r'Built \d+ files? to "build".'));
24 22
25 d.dir(appPath, [ 23 d.dir(appPath, [
26 d.dir('build', [ 24 d.dir('build', [
27 d.dir('web', [ 25 d.dir('web', [
28 d.file('.htaccess', 'fblthp'), 26 d.file('.htaccess', 'fblthp'),
29 d.nothing('.hidden') 27 d.nothing('.hidden')
30 ]) 28 ])
31 ]) 29 ])
32 ]).validate(); 30 ]).validate();
33 }); 31 });
34 } 32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698