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

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

Issue 937243002: Revert "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
(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 a lazy transformer", () {
18 d.dir(appPath, [d.pubspec({
19 "name": "myapp",
20 "transformers": [{
21 "myapp": {
22 "\$include": ["web/a.txt", "web/b.txt"],
23 "\$exclude": "web/a.txt"
24 }
25 }]
26 }),
27 d.dir("lib", [d.file("transformer.dart", LAZY_TRANSFORMER)]),
28 d.dir(
29 "web",
30 [d.file("a.txt", "a"), d.file("b.txt", "b"), d.file("c.txt", "c" )])]).create();
31
32 createLockFile('myapp', pkg: ['barback']);
33
34 var server = pubServe();
35 // The transformer should remain lazy.
36 server.stdout.expect("Build completed successfully");
37
38 requestShould404("a.out");
39 requestShouldSucceed("b.out", isNot(isEmpty));
40 server.stdout.expect(
41 consumeThrough(
42 emitsLines("[Info from LazyRewrite]:\n" "Rewriting myapp|web/b.txt .")));
43 server.stdout.expect(consumeThrough("Build completed successfully"));
44
45 requestShould404("c.out");
46 endPubServe();
47 });
48 });
49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698