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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/run/includes_parent_directories_of_entrypoint_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 6
7 import '../descriptor.dart' as d; 7 import '../descriptor.dart' as d;
8 import '../test_pub.dart'; 8 import '../test_pub.dart';
9 9
10 const SCRIPT = r""" 10 const SCRIPT = r"""
11 import '../../a.dart'; 11 import '../../a.dart';
12 import '../b.dart'; 12 import '../b.dart';
13 main() { 13 main() {
14 print("$a $b"); 14 print("$a $b");
15 } 15 }
16 """; 16 """;
17 17
18 main() { 18 main() {
19 initConfig(); 19 initConfig();
20 integration('allows assets in parent directories of the entrypoint to be' 20 integration(
21 'accessed', () { 21 'allows assets in parent directories of the entrypoint to be' 'accessed',
22 d.dir(appPath, [ 22 () {
23 d.appPubspec(), 23 d.dir(
24 d.dir("tool", [ 24 appPath,
25 d.file("a.dart", "var a = 'a';"), 25 [
26 d.dir("a", [ 26 d.appPubspec(),
27 d.file("b.dart", "var b = 'b';"), 27 d.dir(
28 d.dir("b", [ 28 "tool",
29 d.file("app.dart", SCRIPT) 29 [
30 ]) 30 d.file("a.dart", "var a = 'a';"),
31 ]) 31 d.dir(
32 ]) 32 "a",
33 ]).create(); 33 [
34 d.file("b.dart", "var b = 'b';"),
35 d.dir("b", [d.file("app.dart", SCRIPT)])])])]).creat e();
34 36
35 var pub = pubRun(args: [path.join("tool", "a", "b", "app")]); 37 var pub = pubRun(args: [path.join("tool", "a", "b", "app")]);
36 pub.stdout.expect("a b"); 38 pub.stdout.expect("a b");
37 pub.shouldExit(); 39 pub.shouldExit();
38 }); 40 });
39 } 41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698