| Index: pkg/analyzer_cli/test/options_test.dart
|
| diff --git a/pkg/analyzer_cli/test/options_test.dart b/pkg/analyzer_cli/test/options_test.dart
|
| index 35a1d4f14019cf3fa840501773ef123e180ee9f4..c0ca301e3a07695560dff70238ed27b4a9f6058d 100644
|
| --- a/pkg/analyzer_cli/test/options_test.dart
|
| +++ b/pkg/analyzer_cli/test/options_test.dart
|
| @@ -8,7 +8,6 @@ import 'dart:io';
|
|
|
| import 'package:analyzer_cli/src/driver.dart';
|
| import 'package:analyzer_cli/src/options.dart';
|
| -import 'package:args/args.dart';
|
| import 'package:test/test.dart';
|
| import 'package:test_reflective_loader/test_reflective_loader.dart';
|
|
|
| @@ -152,12 +151,6 @@ main() {
|
| expect(options.warningsAreFatal, isTrue);
|
| });
|
|
|
| - test('notice unrecognized flags', () {
|
| - expect(
|
| - () => new CommandLineParser().parse(['--bar', '--baz', 'foo.dart']),
|
| - throwsA(new isInstanceOf<FormatException>()));
|
| - });
|
| -
|
| test('ignore unrecognized flags', () {
|
| CommandLineOptions options = CommandLineOptions.parse([
|
| '--ignore-unrecognized-flags',
|
| @@ -171,17 +164,6 @@ main() {
|
| expect(options.sourceFiles, equals(['foo.dart']));
|
| });
|
|
|
| - test('ignore unrecognized options', () {
|
| - CommandLineParser parser =
|
| - new CommandLineParser(alwaysIgnoreUnrecognized: true);
|
| - parser.addOption('optionA');
|
| - parser.addFlag('flagA');
|
| - ArgResults argResults =
|
| - parser.parse(['--optionA=1', '--optionB=2', '--flagA']);
|
| - expect(argResults['optionA'], '1');
|
| - expect(argResults['flagA'], isTrue);
|
| - });
|
| -
|
| test('strong mode', () {
|
| CommandLineOptions options =
|
| CommandLineOptions.parse(['--strong', 'foo.dart']);
|
|
|