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

Unified Diff: pkg/analyzer_cli/test/options_test.dart

Issue 2571583007: move extractDefinedVariables from analyzer cli to analyzer (Closed)
Patch Set: add TODO indicating future work Created 4 years 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 | « pkg/analyzer_cli/lib/src/options.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f30a6e4540f52bfb26cca3af8dded759473654ed..35a1d4f14019cf3fa840501773ef123e180ee9f4 100644
--- a/pkg/analyzer_cli/test/options_test.dart
+++ b/pkg/analyzer_cli/test/options_test.dart
@@ -154,8 +154,7 @@ main() {
test('notice unrecognized flags', () {
expect(
- () => new CommandLineParser()
- .parse(['--bar', '--baz', 'foo.dart'], {}),
+ () => new CommandLineParser().parse(['--bar', '--baz', 'foo.dart']),
throwsA(new isInstanceOf<FormatException>()));
});
@@ -178,7 +177,7 @@ main() {
parser.addOption('optionA');
parser.addFlag('flagA');
ArgResults argResults =
- parser.parse(['--optionA=1', '--optionB=2', '--flagA'], {});
+ parser.parse(['--optionA=1', '--optionB=2', '--flagA']);
expect(argResults['optionA'], '1');
expect(argResults['flagA'], isTrue);
});
« no previous file with comments | « pkg/analyzer_cli/lib/src/options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698