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

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

Issue 937243002: Revert "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
(Empty)
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;
6 import 'package:scheduled_test/scheduled_test.dart';
7
8 import '../../lib/src/exit_codes.dart' as exit_codes;
9 import '../descriptor.dart' as d;
10 import '../test_pub.dart';
11 import 'utils.dart';
12
13 main() {
14 initConfig();
15
16 setUp(() {
17 d.dir(
18 appPath,
19 [
20 d.appPubspec(),
21 d.dir(
22 "web",
23 [
24 d.dir(
25 "sub1",
26 [
27 d.file("file.txt", "contents"),
28 d.dir("sub2", [d.file("file.txt", "contents")]),
29 d.dir("sub3", [d.file("file.txt", "contents")])])])] ).create();
30 });
31
32 var webSub1 = path.join("web", "sub1");
33 var webSub1Sub2 = path.join("web", "sub1", "sub2");
34 var webSub1Sub3 = path.join("web", "sub1", "sub3");
35
36 pubBuildAndServeShouldFail(
37 "if a superdirectory follows a subdirectory",
38 args: [webSub1Sub2, webSub1],
39 error: 'Directories "$webSub1Sub2" and "$webSub1" cannot overlap.',
40 exitCode: exit_codes.USAGE);
41
42 pubBuildAndServeShouldFail(
43 "if a subdirectory follows a superdirectory",
44 args: [webSub1, webSub1Sub2],
45 error: 'Directories "$webSub1" and "$webSub1Sub2" cannot overlap.',
46 exitCode: exit_codes.USAGE);
47
48 pubBuildAndServeShouldFail(
49 "if multiple directories overlap",
50 args: [webSub1, webSub1Sub2, webSub1Sub3],
51 error: 'Directories "$webSub1", "$webSub1Sub2" and "$webSub1Sub3" '
52 'cannot overlap.',
53 exitCode: exit_codes.USAGE);
54 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698