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

Side by Side Diff: pkg/analyzer_cli/test/strong_mode_test.dart

Issue 2963323002: Add analytics to analyzer-cli and analysis server. (Closed)
Patch Set: update from review comments Created 3 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
« no previous file with comments | « pkg/analyzer_cli/test/sdk_ext_test.dart ('k') | pkg/analyzer_cli/test/super_mixin_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library analyzer_cli.test.strong_mode; 5 library analyzer_cli.test.strong_mode;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:analyzer_cli/src/driver.dart' show Driver, errorSink, outSink; 9 import 'package:analyzer_cli/src/driver.dart' show Driver, errorSink, outSink;
10 import 'package:path/path.dart' as path; 10 import 'package:path/path.dart' as path;
(...skipping 25 matching lines...) Expand all
36 errorSink = new StringBuffer(); 36 errorSink = new StringBuffer();
37 }); 37 });
38 tearDown(() { 38 tearDown(() {
39 outSink = savedOutSink; 39 outSink = savedOutSink;
40 errorSink = savedErrorSink; 40 errorSink = savedErrorSink;
41 exitCode = savedExitCode; 41 exitCode = savedExitCode;
42 }); 42 });
43 43
44 test('produces stricter errors', () async { 44 test('produces stricter errors', () async {
45 var testPath = path.join(testDirectory, 'data/strong_example.dart'); 45 var testPath = path.join(testDirectory, 'data/strong_example.dart');
46 new Driver().start(['--options', emptyOptionsFile, '--strong', testPath]); 46 new Driver(isTesting: true)
47 .start(['--options', emptyOptionsFile, '--strong', testPath]);
47 48
48 expect(exitCode, 3); 49 expect(exitCode, 3);
49 var stdout = outSink.toString(); 50 var stdout = outSink.toString();
50 expect(stdout, contains('[error] Invalid override')); 51 expect(stdout, contains('[error] Invalid override'));
51 expect(stdout, contains('[error] Type check failed')); 52 expect(stdout, contains('[error] Type check failed'));
52 expect(stdout, contains('2 errors found.')); 53 expect(stdout, contains('2 errors found.'));
53 expect(errorSink.toString(), ''); 54 expect(errorSink.toString(), '');
54 }); 55 });
55 }); 56 });
56 } 57 }
OLDNEW
« no previous file with comments | « pkg/analyzer_cli/test/sdk_ext_test.dart ('k') | pkg/analyzer_cli/test/super_mixin_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698