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

Side by Side Diff: sdk/lib/_internal/pub/test/build/includes_assets_from_dependencies_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
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 9
10 main() { 10 main() {
(...skipping 11 matching lines...) Expand all
22 d.dir("sub", [ 22 d.dir("sub", [
23 d.file("bar.txt", "bar"), 23 d.file("bar.txt", "bar"),
24 ]) 24 ])
25 ]) 25 ])
26 ]).create(); 26 ]).create();
27 27
28 d.dir(appPath, [ 28 d.dir(appPath, [
29 d.appPubspec({ 29 d.appPubspec({
30 "foo": {"path": "../foo"} 30 "foo": {"path": "../foo"}
31 }), 31 }),
32 d.dir("example", [
33 d.file("index.html", "html"),
34 ]),
32 d.dir("web", [ 35 d.dir("web", [
33 d.file("index.html", "html"), 36 d.file("index.html", "html"),
34 ]) 37 ])
35 ]).create(); 38 ]).create();
36 39
37 schedulePub(args: ["build"], 40 schedulePub(args: ["build", "--all"],
38 output: new RegExp(r"Built 3 files!"), 41 output: new RegExp(r"Built 6 files!"));
39 exitCode: 0);
40 42
41 d.dir(appPath, [ 43 d.dir(appPath, [
42 d.dir('build', [ 44 d.dir('build', [
43 d.file("index.html", "html"), 45 d.dir('example', [
44 d.dir('assets', [ 46 d.file("index.html", "html"),
45 d.dir('foo', [ 47 d.dir('assets', [
46 d.file('foo.txt', 'foo'), 48 d.dir('foo', [
47 d.dir('sub', [ 49 d.file('foo.txt', 'foo'),
48 d.file('bar.txt', 'bar'), 50 d.dir('sub', [
49 ]), 51 d.file('bar.txt', 'bar'),
52 ]),
53 ])
54 ])
55 ]),
56 d.dir('web', [
57 d.file("index.html", "html"),
58 d.dir('assets', [
59 d.dir('foo', [
60 d.file('foo.txt', 'foo'),
61 d.dir('sub', [
62 d.file('bar.txt', 'bar'),
63 ]),
64 ])
50 ]) 65 ])
51 ]) 66 ])
52 ]) 67 ])
53 ]).validate(); 68 ]).validate();
54 }); 69 });
55 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698