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

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

Issue 1165473002: Start pulling pub from its own repo. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Code review changes Created 5 years, 6 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
OLDNEW
(Empty)
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
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
10 main() {
11 initConfig();
12
13 integration("includes assets from the 'lib' directory of dependencies", () {
14 // Dart2js can take a long time to compile dart code, so we increase the
15 // timeout to cope with that.
16 currentSchedule.timeout *= 3;
17
18 d.dir("foo", [
19 d.libPubspec("foo", "0.0.1"),
20 d.dir("lib", [
21 d.file("foo.txt", "foo"),
22 d.dir("sub", [
23 d.file("bar.txt", "bar"),
24 ])
25 ])
26 ]).create();
27
28 d.dir(appPath, [
29 d.appPubspec({
30 "foo": {"path": "../foo"}
31 }),
32 d.dir("example", [
33 d.file("index.html", "html"),
34 ]),
35 d.dir("web", [
36 d.file("index.html", "html"),
37 d.dir("sub", [
38 d.file("index.html", "html")
39 ])
40 ])
41 ]).create();
42
43 schedulePub(args: ["build", "--all"],
44 output: new RegExp(r'Built 7 files to "build".'));
45
46 d.dir(appPath, [
47 d.dir('build', [
48 d.dir('example', [
49 d.file("index.html", "html"),
50 d.dir('packages', [
51 d.dir('foo', [
52 d.file('foo.txt', 'foo'),
53 d.dir('sub', [
54 d.file('bar.txt', 'bar'),
55 ]),
56 ])
57 ])
58 ]),
59 d.dir('web', [
60 d.file("index.html", "html"),
61 d.dir('packages', [
62 d.dir('foo', [
63 d.file('foo.txt', 'foo'),
64 d.dir('sub', [
65 d.file('bar.txt', 'bar'),
66 ]),
67 ])
68 ]),
69 d.dir("sub", [
70 d.file("index.html", "html"),
71 // "packages" should *only* be created in the top-level directory.
72 d.nothing("packages")
73 ])
74 ])
75 ])
76 ]).validate();
77 });
78 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698