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

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

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

Powered by Google App Engine
This is Rietveld 408576698