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

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

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

Powered by Google App Engine
This is Rietveld 408576698