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

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

Powered by Google App Engine
This is Rietveld 408576698