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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/transformer/exclusion/works_on_dart2js_test.dart

Issue 887223007: Revert "Use native async/await support in pub." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library pub_tests; 5 library pub_tests;
6 6
7 import 'package:scheduled_test/scheduled_stream.dart'; 7 import 'package:scheduled_test/scheduled_stream.dart';
8 import 'package:scheduled_test/scheduled_test.dart'; 8 import 'package:scheduled_test/scheduled_test.dart';
9 9
10 import '../../descriptor.dart' as d; 10 import '../../descriptor.dart' as d;
11 import '../../test_pub.dart'; 11 import '../../test_pub.dart';
12 import '../../serve/utils.dart'; 12 import '../../serve/utils.dart';
13 13
14 main() { 14 main() {
15 initConfig(); 15 initConfig();
16 withBarbackVersions("any", () { 16 withBarbackVersions("any", () {
17 integration("works on the dart2js transformer", () { 17 integration("works on the dart2js transformer", () {
18 d.dir(appPath, [ 18 d.dir(appPath, [d.pubspec({
19 d.pubspec({
20 "name": "myapp", 19 "name": "myapp",
21 "transformers": [ 20 "transformers": [{
22 {
23 "\$dart2js": { 21 "\$dart2js": {
24 "\$include": ["web/a.dart", "web/b.dart"], 22 "\$include": ["web/a.dart", "web/b.dart"],
25 "\$exclude": "web/a.dart" 23 "\$exclude": "web/a.dart"
26 } 24 }
27 } 25 }]
28 ]
29 }), 26 }),
30 d.dir("web", [ 27 d.dir(
31 d.file("a.dart", "void main() => print('hello');"), 28 "web",
32 d.file("b.dart", "void main() => print('hello');"), 29 [
33 d.file("c.dart", "void main() => print('hello');") 30 d.file("a.dart", "void main() => print('hello');"),
34 ]) 31 d.file("b.dart", "void main() => print('hello');"),
35 ]).create(); 32 d.file("c.dart", "void main() => print('hello');")])]).creat e();
36 33
37 createLockFile('myapp', pkg: ['barback']); 34 createLockFile('myapp', pkg: ['barback']);
38 35
39 var server = pubServe(); 36 var server = pubServe();
40 // Dart2js should remain lazy. 37 // Dart2js should remain lazy.
41 server.stdout.expect("Build completed successfully"); 38 server.stdout.expect("Build completed successfully");
42 39
43 requestShould404("a.dart.js"); 40 requestShould404("a.dart.js");
44 requestShouldSucceed("b.dart.js", isNot(isEmpty)); 41 requestShouldSucceed("b.dart.js", isNot(isEmpty));
45 server.stdout.expect(consumeThrough(emitsLines( 42 server.stdout.expect(
46 "[Info from Dart2JS]:\n" 43 consumeThrough(
47 "Compiling myapp|web/b.dart..."))); 44 emitsLines("[Info from Dart2JS]:\n" "Compiling myapp|web/b.dart... ")));
48 server.stdout.expect(consumeThrough("Build completed successfully")); 45 server.stdout.expect(consumeThrough("Build completed successfully"));
49 46
50 requestShould404("c.dart.js"); 47 requestShould404("c.dart.js");
51 endPubServe(); 48 endPubServe();
52 }); 49 });
53 }); 50 });
54 } 51 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698