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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/barback/directory_args_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:scheduled_test/scheduled_test.dart';
2 import '../descriptor.dart' as d;
3 import '../test_pub.dart';
4 import '../serve/utils.dart';
5 main() {
6 initConfig();
7 setUp(() {
8 d.dir(
9 appPath,
10 [
11 d.appPubspec(),
12 d.dir('bar', [d.file('file.txt', 'bar')]),
13 d.dir('foo', [d.file('file.txt', 'foo')]),
14 d.dir('test', [d.file('file.txt', 'test')]),
15 d.dir('web', [d.file('file.txt', 'web')])]).create();
16 });
17 integration("builds only the given directories", () {
18 schedulePub(
19 args: ["build", "foo", "bar"],
20 output: new RegExp(r'Built 2 files to "build".'));
21 d.dir(
22 appPath,
23 [
24 d.dir(
25 'build',
26 [
27 d.dir('bar', [d.file('file.txt', 'bar')]),
28 d.dir('foo', [d.file('file.txt', 'foo')]),
29 d.nothing('test'),
30 d.nothing('web')])]).validate();
31 });
32 integration("serves only the given directories", () {
33 pubServe(args: ["foo", "bar"]);
34 requestShouldSucceed("file.txt", "bar", root: "bar");
35 requestShouldSucceed("file.txt", "foo", root: "foo");
36 expectNotServed("test");
37 expectNotServed("web");
38 endPubServe();
39 });
40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698