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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/transformer/exclusion/works_on_dart2js_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
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.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 library pub_tests; 1 library pub_tests;
6
7 import 'package:scheduled_test/scheduled_stream.dart'; 2 import 'package:scheduled_test/scheduled_stream.dart';
8 import 'package:scheduled_test/scheduled_test.dart'; 3 import 'package:scheduled_test/scheduled_test.dart';
9
10 import '../../descriptor.dart' as d; 4 import '../../descriptor.dart' as d;
11 import '../../test_pub.dart'; 5 import '../../test_pub.dart';
12 import '../../serve/utils.dart'; 6 import '../../serve/utils.dart';
13
14 main() { 7 main() {
15 initConfig(); 8 initConfig();
16 withBarbackVersions("any", () { 9 withBarbackVersions("any", () {
17 integration("works on the dart2js transformer", () { 10 integration("works on the dart2js transformer", () {
18 d.dir(appPath, [ 11 d.dir(appPath, [d.pubspec({
19 d.pubspec({
20 "name": "myapp", 12 "name": "myapp",
21 "transformers": [ 13 "transformers": [{
22 {
23 "\$dart2js": { 14 "\$dart2js": {
24 "\$include": ["web/a.dart", "web/b.dart"], 15 "\$include": ["web/a.dart", "web/b.dart"],
25 "\$exclude": "web/a.dart" 16 "\$exclude": "web/a.dart"
26 } 17 }
27 } 18 }]
28 ]
29 }), 19 }),
30 d.dir("web", [ 20 d.dir(
31 d.file("a.dart", "void main() => print('hello');"), 21 "web",
32 d.file("b.dart", "void main() => print('hello');"), 22 [
33 d.file("c.dart", "void main() => print('hello');") 23 d.file("a.dart", "void main() => print('hello');"),
34 ]) 24 d.file("b.dart", "void main() => print('hello');"),
35 ]).create(); 25 d.file("c.dart", "void main() => print('hello');")])]).creat e();
36
37 createLockFile('myapp', pkg: ['barback']); 26 createLockFile('myapp', pkg: ['barback']);
38
39 var server = pubServe(); 27 var server = pubServe();
40 // Dart2js should remain lazy.
41 server.stdout.expect("Build completed successfully"); 28 server.stdout.expect("Build completed successfully");
42
43 requestShould404("a.dart.js"); 29 requestShould404("a.dart.js");
44 requestShouldSucceed("b.dart.js", isNot(isEmpty)); 30 requestShouldSucceed("b.dart.js", isNot(isEmpty));
45 server.stdout.expect(consumeThrough(emitsLines( 31 server.stdout.expect(
46 "[Info from Dart2JS]:\n" 32 consumeThrough(
47 "Compiling myapp|web/b.dart..."))); 33 emitsLines("[Info from Dart2JS]:\n" "Compiling myapp|web/b.dart... ")));
48 server.stdout.expect(consumeThrough("Build completed successfully")); 34 server.stdout.expect(consumeThrough("Build completed successfully"));
49
50 requestShould404("c.dart.js"); 35 requestShould404("c.dart.js");
51 endPubServe(); 36 endPubServe();
52 }); 37 });
53 }); 38 });
54 } 39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698