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

Side by Side Diff: sdk/lib/_internal/pub/test/build/outputs_results_to_json_test.dart

Issue 1165473002: Start pulling pub from its own repo. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Code review changes Created 5 years, 6 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'package:scheduled_test/scheduled_test.dart';
6
7 import '../descriptor.dart' as d;
8 import '../test_pub.dart';
9
10 main() {
11 initConfig();
12
13 integration("outputs results to JSON in a successful build", () {
14 // Dart2js can take a long time to compile dart code, so we increase the
15 // timeout to cope with that.
16 currentSchedule.timeout *= 3;
17
18 d.dir(appPath, [
19 d.appPubspec(),
20 d.dir('web', [
21 d.file('main.dart', 'void main() => print("hello");')
22 ])
23 ]).create();
24
25 schedulePub(args: ["build", "--format", "json"],
26 outputJson: {
27 'buildResult': 'success',
28 'outputDirectory': 'build',
29 'numFiles': 1,
30 'log': [
31 {
32 'level': 'Info',
33 'transformer': {
34 'name': 'Dart2JS',
35 'primaryInput': {'package': 'myapp', 'path': 'web/main.dart'}
36 },
37 'assetId': {'package': 'myapp', 'path': 'web/main.dart'},
38 'message': 'Compiling myapp|web/main.dart...'
39 },
40 {
41 'level': 'Info',
42 'transformer': {
43 'name': 'Dart2JS',
44 'primaryInput': {'package': 'myapp', 'path': 'web/main.dart'}
45 },
46 'assetId': {'package': 'myapp', 'path': 'web/main.dart'},
47 'message': contains(r'to compile myapp|web/main.dart.')
48 },
49 {
50 'level': 'Fine',
51 'transformer': {
52 'name': 'Dart2JS',
53 'primaryInput': {'package': 'myapp', 'path': 'web/main.dart'}
54 },
55 'assetId': {'package': 'myapp', 'path': 'web/main.dart'},
56 'message': contains(r'Took')
57 }
58 ]
59 });
60 });
61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698