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

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

Powered by Google App Engine
This is Rietveld 408576698