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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/transformer/multiple_transformers_reject_their_config_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 library pub_tests;
2 import 'package:scheduled_test/scheduled_stream.dart';
3 import 'package:scheduled_test/scheduled_test.dart';
4 import '../descriptor.dart' as d;
5 import '../test_pub.dart';
6 import '../serve/utils.dart';
7 const REJECT_CONFIG_TRANSFORMER = """
8 import 'dart:async';
9
10 import 'package:barback/barback.dart';
11
12 class RejectConfigTransformer extends Transformer {
13 RejectConfigTransformer.asPlugin(BarbackSettings settings) {
14 throw "I hate these settings!";
15 }
16
17 Future<bool> isPrimary(_) => new Future.value(true);
18 Future apply(Transform transform) {}
19 }
20 """;
21 main() {
22 initConfig();
23 withBarbackVersions("any", () {
24 integration(
25 "multiple transformers in the same phase reject their " "configurations" ,
26 () {
27 d.dir(appPath, [d.pubspec({
28 "name": "myapp",
29 "transformers": [[{
30 "myapp/src/transformer": {
31 'foo': 'bar'
32 }
33 }, {
34 "myapp/src/transformer": {
35 'baz': 'bang'
36 }
37 }, {
38 "myapp/src/transformer": {
39 'qux': 'fblthp'
40 }
41 }]]
42 }),
43 d.dir(
44 "lib",
45 [
46 d.dir(
47 "src",
48 [d.file("transformer.dart", REJECT_CONFIG_TRANSFORMER)]) ])]).create();
49 createLockFile('myapp', pkg: ['barback']);
50 var pub = startPubServe();
51 for (var i = 0; i < 3; i++) {
52 pub.stderr.expect(
53 consumeThrough(
54 endsWith('Error loading transformer: ' 'I hate these settings!') ));
55 }
56 pub.shouldExit(1);
57 });
58 });
59 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698