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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/barback/directory_args_test.dart

Issue 937243002: Revert "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
(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:scheduled_test/scheduled_test.dart';
6
7 import '../descriptor.dart' as d;
8 import '../test_pub.dart';
9 import '../serve/utils.dart';
10
11 main() {
12 initConfig();
13
14 setUp(() {
15 d.dir(
16 appPath,
17 [
18 d.appPubspec(),
19 d.dir('bar', [d.file('file.txt', 'bar')]),
20 d.dir('foo', [d.file('file.txt', 'foo')]),
21 d.dir('test', [d.file('file.txt', 'test')]),
22 d.dir('web', [d.file('file.txt', 'web')])]).create();
23 });
24
25 integration("builds only the given directories", () {
26 schedulePub(
27 args: ["build", "foo", "bar"],
28 output: new RegExp(r'Built 2 files to "build".'));
29
30 d.dir(
31 appPath,
32 [
33 d.dir(
34 'build',
35 [
36 d.dir('bar', [d.file('file.txt', 'bar')]),
37 d.dir('foo', [d.file('file.txt', 'foo')]),
38 d.nothing('test'),
39 d.nothing('web')])]).validate();
40 });
41
42 integration("serves only the given directories", () {
43 pubServe(args: ["foo", "bar"]);
44
45 requestShouldSucceed("file.txt", "bar", root: "bar");
46 requestShouldSucceed("file.txt", "foo", root: "foo");
47 expectNotServed("test");
48 expectNotServed("web");
49
50 endPubServe();
51 });
52 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698