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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/barback/subdirectories_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 p;
2 import 'package:scheduled_test/scheduled_test.dart';
3 import '../descriptor.dart' as d;
4 import '../serve/utils.dart';
5 import '../test_pub.dart';
6 main() {
7 initConfig();
8 setUp(() {
9 d.dir(
10 appPath,
11 [
12 d.appPubspec(),
13 d.dir(
14 "web",
15 [
16 d.dir("one", [d.dir("inner", [d.file("file.txt", "one")])]),
17 d.dir("two", [d.dir("inner", [d.file("file.txt", "two")])]),
18 d.dir("nope", [d.dir("inner", [d.file("file.txt", "nope")])] )])]).create();
19 });
20 var webOne = p.join("web", "one");
21 var webTwoInner = p.join("web", "two", "inner");
22 integration("builds subdirectories", () {
23 schedulePub(
24 args: ["build", webOne, webTwoInner],
25 output: new RegExp(r'Built 2 files to "build".'));
26 d.dir(
27 appPath,
28 [
29 d.dir(
30 "build",
31 [
32 d.dir(
33 "web",
34 [
35 d.dir("one", [d.dir("inner", [d.file("file.txt", "on e")])]),
36 d.dir("two", [d.dir("inner", [d.file("file.txt", "tw o")])]),
37 d.nothing("nope")])])]).validate();
38 });
39 integration("serves subdirectories", () {
40 pubServe(args: [webOne, webTwoInner]);
41 requestShouldSucceed("inner/file.txt", "one", root: webOne);
42 requestShouldSucceed("file.txt", "two", root: webTwoInner);
43 expectNotServed("web");
44 expectNotServed(p.join("web", "three"));
45 endPubServe();
46 });
47 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698