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

Side by Side Diff: test/dart2js/reports_dart_parse_errors_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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Dart2js can take a long time to compile dart code, so we increase the timeout
6 // to cope with that.
7 @Timeout.factor(3)
8
5 import 'package:path/path.dart' as p; 9 import 'package:path/path.dart' as p;
6 import 'package:pub/src/exit_codes.dart' as exit_codes; 10 import 'package:pub/src/exit_codes.dart' as exit_codes;
7 import 'package:scheduled_test/scheduled_test.dart'; 11 import 'package:scheduled_test/scheduled_test.dart';
8 import 'package:scheduled_test/scheduled_stream.dart'; 12 import 'package:scheduled_test/scheduled_stream.dart';
9 13
10 import '../descriptor.dart' as d; 14 import '../descriptor.dart' as d;
11 import '../test_pub.dart'; 15 import '../test_pub.dart';
12 16
13 main() { 17 main() {
14 initConfig();
15 integration("reports Dart parse errors", () { 18 integration("reports Dart parse errors", () {
16 // Dart2js can take a long time to compile dart code, so we increase the
17 // timeout to cope with that.
18 currentSchedule.timeout *= 3;
19
20 d.dir(appPath, [ 19 d.dir(appPath, [
21 d.appPubspec(), 20 d.appPubspec(),
22 d.dir('web', [ 21 d.dir('web', [
23 d.file('file.txt', 'contents'), 22 d.file('file.txt', 'contents'),
24 d.file('file.dart', 'void void;'), 23 d.file('file.dart', 'void void;'),
25 d.dir('subdir', [ 24 d.dir('subdir', [
26 d.file('subfile.dart', 'void void;') 25 d.file('subfile.dart', 'void void;')
27 ]) 26 ])
28 ]) 27 ])
29 ]).create(); 28 ]).create();
(...skipping 20 matching lines...) Expand all
50 pub.shouldExit(exit_codes.DATA); 49 pub.shouldExit(exit_codes.DATA);
51 50
52 // Doesn't output anything if an error occurred. 51 // Doesn't output anything if an error occurred.
53 d.dir(appPath, [ 52 d.dir(appPath, [
54 d.dir('build', [ 53 d.dir('build', [
55 d.nothing('web') 54 d.nothing('web')
56 ]) 55 ])
57 ]).validate(); 56 ]).validate();
58 }); 57 });
59 } 58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698