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

Side by Side Diff: sdk/lib/_internal/pub/test/dart2js/compiles_entrypoints_in_root_package_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) 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
10 main() {
11 initConfig();
12 integration("compiles Dart entrypoints in root package to JS", () {
13 // Dart2js can take a long time to compile dart code, so we increase the
14 // timeout to cope with that.
15 currentSchedule.timeout *= 3;
16
17 d.dir(appPath, [
18 d.appPubspec(),
19 d.dir('benchmark', [
20 d.file('file.dart', 'void main() => print("hello");'),
21 d.file('lib.dart', 'void foo() => print("hello");'),
22 d.dir('subdir', [
23 d.file('subfile.dart', 'void main() => print("ping");')
24 ])
25 ]),
26 d.dir('foo', [
27 d.file('file.dart', 'void main() => print("hello");'),
28 d.file('lib.dart', 'void foo() => print("hello");'),
29 d.dir('subdir', [
30 d.file('subfile.dart', 'void main() => print("ping");')
31 ])
32 ]),
33 d.dir('web', [
34 d.file('file.dart', 'void main() => print("hello");'),
35 d.file('lib.dart', 'void foo() => print("hello");'),
36 d.dir('subdir', [
37 d.file('subfile.dart', 'void main() => print("ping");')
38 ])
39 ])
40 ]).create();
41
42 schedulePub(args: ["build", "benchmark", "foo", "web"],
43 output: new RegExp(r'Built 6 files to "build".'));
44
45 d.dir(appPath, [
46 d.dir('build', [
47 d.dir('benchmark', [
48 d.matcherFile('file.dart.js', isNot(isEmpty)),
49 d.nothing('file.dart'),
50 d.nothing('lib.dart'),
51 d.dir('subdir', [
52 d.matcherFile('subfile.dart.js', isNot(isEmpty)),
53 d.nothing('subfile.dart')
54 ])
55 ]),
56 d.dir('foo', [
57 d.matcherFile('file.dart.js', isNot(isEmpty)),
58 d.nothing('file.dart'),
59 d.nothing('lib.dart'),
60 d.dir('subdir', [
61 d.matcherFile('subfile.dart.js', isNot(isEmpty)),
62 d.nothing('subfile.dart')
63 ])
64 ]),
65 d.dir('web', [
66 d.matcherFile('file.dart.js', isNot(isEmpty)),
67 d.nothing('file.dart'),
68 d.nothing('lib.dart'),
69 d.dir('subdir', [
70 d.matcherFile('subfile.dart.js', isNot(isEmpty)),
71 d.nothing('subfile.dart')
72 ])
73 ])
74 ])
75 ]).validate();
76 });
77 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698