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

Side by Side Diff: sdk/lib/_internal/pub/test/build/all_includes_all_buildable_directories_test.dart

Issue 141113011: Support directories other than "web" in pub build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 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 '../descriptor.dart' as d;
6 import '../test_pub.dart';
7
8 main() {
9 initConfig();
10
11 integration("build --all finds assets in all buildable directories", () {
12 d.dir(appPath, [
13 d.appPubspec(),
14 d.dir('benchmark', [
15 d.file('file.txt', 'benchmark')
16 ]),
17 d.dir('bin', [
18 d.file('file.txt', 'bin')
19 ]),
20 d.dir('example', [
21 d.file('file.txt', 'example')
22 ]),
23 d.dir('test', [
24 d.file('file.txt', 'test')
25 ]),
26 d.dir('web', [
27 d.file('file.txt', 'web')
28 ]),
29 d.dir('unknown', [
30 d.file('file.txt', 'unknown')
31 ])
32 ]).create();
33
34 schedulePub(args: ["build", "--all"],
35 output: new RegExp(r"Built 5 files!"));
36
37 d.dir(appPath, [
38 d.dir('build', [
39 d.dir('benchmark', [
40 d.file('file.txt', 'benchmark')
41 ]),
42 d.dir('bin', [
43 d.file('file.txt', 'bin')
44 ]),
45 d.dir('example', [
46 d.file('file.txt', 'example')
47 ]),
48 d.dir('test', [
49 d.file('file.txt', 'test')
50 ]),
51 d.dir('web', [
52 d.file('file.txt', 'web')
53 ]),
54 // Only includes known buildable directories.
55 d.nothing('unknown')
56 ])
57 ]).validate();
58 });
59 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/io.dart ('k') | sdk/lib/_internal/pub/test/build/all_with_no_buildable_directories_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698