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: test/run/displays_transformer_logs_test.dart

Issue 1215833002: Use the new test runner. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 5 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
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698