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

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

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

Powered by Google App Engine
This is Rietveld 408576698