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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/barback/fails_on_overlapping_directories_test.dart

Issue 887223007: Revert "Use native async/await support in pub." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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:path/path.dart' as path; 5 import 'package:path/path.dart' as path;
6 import 'package:scheduled_test/scheduled_test.dart'; 6 import 'package:scheduled_test/scheduled_test.dart';
7 7
8 import '../../lib/src/exit_codes.dart' as exit_codes; 8 import '../../lib/src/exit_codes.dart' as exit_codes;
9 import '../descriptor.dart' as d; 9 import '../descriptor.dart' as d;
10 import '../test_pub.dart'; 10 import '../test_pub.dart';
11 import 'utils.dart'; 11 import 'utils.dart';
12 12
13 main() { 13 main() {
14 initConfig(); 14 initConfig();
15 15
16 setUp(() { 16 setUp(() {
17 d.dir(appPath, [ 17 d.dir(
18 d.appPubspec(), 18 appPath,
19 d.dir("web", [ 19 [
20 d.dir("sub1", [ 20 d.appPubspec(),
21 d.file("file.txt", "contents"), 21 d.dir(
22 d.dir("sub2", [ 22 "web",
23 d.file("file.txt", "contents") 23 [
24 ]), 24 d.dir(
25 d.dir("sub3", [ 25 "sub1",
26 d.file("file.txt", "contents") 26 [
27 ]) 27 d.file("file.txt", "contents"),
28 ]) 28 d.dir("sub2", [d.file("file.txt", "contents")]),
29 ]) 29 d.dir("sub3", [d.file("file.txt", "contents")])])])] ).create();
30 ]).create();
31 }); 30 });
32 31
33 var webSub1 = path.join("web", "sub1"); 32 var webSub1 = path.join("web", "sub1");
34 var webSub1Sub2 = path.join("web", "sub1", "sub2"); 33 var webSub1Sub2 = path.join("web", "sub1", "sub2");
35 var webSub1Sub3 = path.join("web", "sub1", "sub3"); 34 var webSub1Sub3 = path.join("web", "sub1", "sub3");
36 35
37 pubBuildAndServeShouldFail("if a superdirectory follows a subdirectory", 36 pubBuildAndServeShouldFail(
37 "if a superdirectory follows a subdirectory",
38 args: [webSub1Sub2, webSub1], 38 args: [webSub1Sub2, webSub1],
39 error: 'Directories "$webSub1Sub2" and "$webSub1" cannot overlap.', 39 error: 'Directories "$webSub1Sub2" and "$webSub1" cannot overlap.',
40 exitCode: exit_codes.USAGE); 40 exitCode: exit_codes.USAGE);
41 41
42 pubBuildAndServeShouldFail("if a subdirectory follows a superdirectory", 42 pubBuildAndServeShouldFail(
43 "if a subdirectory follows a superdirectory",
43 args: [webSub1, webSub1Sub2], 44 args: [webSub1, webSub1Sub2],
44 error: 'Directories "$webSub1" and "$webSub1Sub2" cannot overlap.', 45 error: 'Directories "$webSub1" and "$webSub1Sub2" cannot overlap.',
45 exitCode: exit_codes.USAGE); 46 exitCode: exit_codes.USAGE);
46 47
47 pubBuildAndServeShouldFail("if multiple directories overlap", 48 pubBuildAndServeShouldFail(
49 "if multiple directories overlap",
48 args: [webSub1, webSub1Sub2, webSub1Sub3], 50 args: [webSub1, webSub1Sub2, webSub1Sub3],
49 error: 'Directories "$webSub1", "$webSub1Sub2" and "$webSub1Sub3" ' 51 error: 'Directories "$webSub1", "$webSub1Sub2" and "$webSub1Sub3" '
50 'cannot overlap.', 52 'cannot overlap.',
51 exitCode: exit_codes.USAGE); 53 exitCode: exit_codes.USAGE);
52 } 54 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698