OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS 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 import '../descriptor.dart' as d; | 5 import '../descriptor.dart' as d; |
6 import '../test_pub.dart'; | 6 import '../test_pub.dart'; |
7 | 7 |
8 const SCRIPT = """ | 8 const SCRIPT = """ |
9 import "package:myapp/lib.dart"; | 9 import "package:myapp/lib.dart"; |
10 main() { | 10 main() { |
(...skipping 27 matching lines...) Expand all Loading... |
38 } | 38 } |
39 | 39 |
40 void declareOutputs(DeclaringTransform transform) { | 40 void declareOutputs(DeclaringTransform transform) { |
41 // TODO(rnystrom): Remove this when #19408 is fixed. | 41 // TODO(rnystrom): Remove this when #19408 is fixed. |
42 transform.declareOutput(transform.primaryId); | 42 transform.declareOutput(transform.primaryId); |
43 } | 43 } |
44 } | 44 } |
45 """; | 45 """; |
46 | 46 |
47 main() { | 47 main() { |
48 initConfig(); | |
49 withBarbackVersions("any", () { | 48 withBarbackVersions("any", () { |
50 integration('displays transformer log messages', () { | 49 integration('displays transformer log messages', () { |
51 d.dir(appPath, [ | 50 d.dir(appPath, [ |
52 d.pubspec({ | 51 d.pubspec({ |
53 "name": "myapp", | 52 "name": "myapp", |
54 "transformers": ["myapp/src/transformer"] | 53 "transformers": ["myapp/src/transformer"] |
55 }), | 54 }), |
56 d.dir("lib", [ | 55 d.dir("lib", [ |
57 d.file("lib.dart", LIB), | 56 d.file("lib.dart", LIB), |
58 d.dir("src", [ | 57 d.dir("src", [ |
(...skipping 22 matching lines...) Expand all Loading... |
81 pub.stdout.expect("myapp|lib/lib.dart."); | 80 pub.stdout.expect("myapp|lib/lib.dart."); |
82 | 81 |
83 pub.stderr.expect("[Warning from Logging]:"); | 82 pub.stderr.expect("[Warning from Logging]:"); |
84 pub.stderr.expect("myapp|lib/lib.dart."); | 83 pub.stderr.expect("myapp|lib/lib.dart."); |
85 | 84 |
86 pub.stdout.expect("lib"); | 85 pub.stdout.expect("lib"); |
87 pub.shouldExit(); | 86 pub.shouldExit(); |
88 }); | 87 }); |
89 }); | 88 }); |
90 } | 89 } |
OLD | NEW |