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

Unified Diff: test/options_test.dart

Issue 1382023002: Support for --fatal-hints. (Closed) Base URL: https://github.com/dart-lang/analyzer_cli.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/driver_test.dart ('k') | test/reporter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/options_test.dart
diff --git a/test/options_test.dart b/test/options_test.dart
index a495b8ecb2a8ea9371cfb33f8ed07f48077a1b5c..93f37e483d204a17827bb4cf3d6f5a3b19d2062b 100644
--- a/test/options_test.dart
+++ b/test/options_test.dart
@@ -23,6 +23,7 @@ main() {
expect(options.enableStrictCallChecks, isFalse);
expect(options.enableSuperMixins, isFalse);
expect(options.enableTypeChecks, isFalse);
+ expect(options.hintsAreFatal, isFalse);
expect(options.ignoreUnrecognizedFlags, isFalse);
expect(options.log, isFalse);
expect(options.machineFormat, isFalse);
@@ -66,6 +67,12 @@ main() {
expect(options.enableTypeChecks, isTrue);
});
+ test('hintsAreFatal', () {
+ CommandLineOptions options = CommandLineOptions
+ .parse(['--dart-sdk', '.', '--fatal-hints', 'foo.dart']);
+ expect(options.hintsAreFatal, isTrue);
+ });
+
test('log', () {
CommandLineOptions options =
CommandLineOptions.parse(['--dart-sdk', '.', '--log', 'foo.dart']);
« no previous file with comments | « test/driver_test.dart ('k') | test/reporter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698