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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/build/copies_browser_js_next_to_entrypoints_test.dart

Issue 557563002: Store the async-await compiled pub code directly in the repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 import 'package:scheduled_test/scheduled_test.dart';
2 import '../descriptor.dart' as d;
3 import '../test_pub.dart';
4 import 'utils.dart';
5 main() {
6 initConfig();
7 integration("compiles dart.js and interop.js next to entrypoints", () {
8 currentSchedule.timeout *= 3;
9 serveBrowserPackage();
10 d.dir(appPath, [d.appPubspec({
11 "browser": "1.0.0"
12 }),
13 d.dir(
14 'foo',
15 [
16 d.file('file.dart', 'void main() => print("hello");'),
17 d.dir(
18 'subdir',
19 [d.file('subfile.dart', 'void main() => print("subhello"); ')])]),
20 d.dir(
21 'web',
22 [
23 d.file('file.dart', 'void main() => print("hello");'),
24 d.dir(
25 'subweb',
26 [d.file('subfile.dart', 'void main() => print("subhello"); ')])])]).create();
27 pubGet();
28 schedulePub(
29 args: ["build", "foo", "web"],
30 output: new RegExp(r'Built 16 files to "build".'));
31 d.dir(
32 appPath,
33 [
34 d.dir(
35 'build',
36 [
37 d.dir(
38 'foo',
39 [
40 d.matcherFile('file.dart.js', isNot(isEmpty)),
41 d.matcherFile('file.dart.precompiled.js', isNot(isEm pty)),
42 d.dir(
43 'packages',
44 [
45 d.dir(
46 'browser',
47 [
48 d.file('dart.js', 'contents of dart. js'),
49 d.file('interop.js', 'contents of in terop.js')])]),
50 d.dir(
51 'subdir',
52 [
53 d.dir(
54 'packages',
55 [
56 d.dir(
57 'browser',
58 [
59 d.file('dart.js', 'contents of dart.js'),
60 d.file('interop.js', 'conten ts of interop.js')])]),
61 d.matcherFile('subfile.dart.js', isNot(isEmp ty)),
62 d.matcherFile('subfile.dart.precompiled.js', isNot(isEmpty))])]),
63 d.dir(
64 'web',
65 [
66 d.matcherFile('file.dart.js', isNot(isEmpty)),
67 d.matcherFile('file.dart.precompiled.js', isNot(isEm pty)),
68 d.dir(
69 'packages',
70 [
71 d.dir(
72 'browser',
73 [
74 d.file('dart.js', 'contents of dart. js'),
75 d.file('interop.js', 'contents of in terop.js')])]),
76 d.dir(
77 'subweb',
78 [
79 d.dir(
80 'packages',
81 [
82 d.dir(
83 'browser',
84 [
85 d.file('dart.js', 'contents of dart.js'),
86 d.file('interop.js', 'conten ts of interop.js')])]),
87 d.matcherFile('subfile.dart.js', isNot(isEmp ty)),
88 d.matcherFile('subfile.dart.precompiled.js', isNot(isEmpty))])])])]).validate();
89 });
90 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698