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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/run/includes_parent_directories_of_entrypoint_test.dart

Issue 896623005: Use native async/await support in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes 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
7 import '../descriptor.dart' as d;
8 import '../test_pub.dart';
9
10 const SCRIPT = r"""
11 import '../../a.dart';
12 import '../b.dart';
13 main() {
14 print("$a $b");
15 }
16 """;
17
18 main() {
19 initConfig();
20 integration(
21 'allows assets in parent directories of the entrypoint to be' 'accessed',
22 () {
23 d.dir(
24 appPath,
25 [
26 d.appPubspec(),
27 d.dir(
28 "tool",
29 [
30 d.file("a.dart", "var a = 'a';"),
31 d.dir(
32 "a",
33 [
34 d.file("b.dart", "var b = 'b';"),
35 d.dir("b", [d.file("app.dart", SCRIPT)])])])]).creat e();
36
37 var pub = pubRun(args: [path.join("tool", "a", "b", "app")]);
38 pub.stdout.expect("a b");
39 pub.shouldExit();
40 });
41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698