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

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

Issue 1892523002: Clean up flags for conditional directives (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/lib/src/options.dart ('k') | no next file » | 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.options; 5 library analyzer_cli.test.options;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:analyzer_cli/src/driver.dart'; 9 import 'package:analyzer_cli/src/driver.dart';
10 import 'package:analyzer_cli/src/options.dart'; 10 import 'package:analyzer_cli/src/options.dart';
(...skipping 14 matching lines...) Expand all
25 expect(options.buildSummaryInputs, isEmpty); 25 expect(options.buildSummaryInputs, isEmpty);
26 expect(options.buildSummaryOnly, isFalse); 26 expect(options.buildSummaryOnly, isFalse);
27 expect(options.buildSummaryOutput, isNull); 27 expect(options.buildSummaryOutput, isNull);
28 expect(options.buildSuppressExitCode, isFalse); 28 expect(options.buildSuppressExitCode, isFalse);
29 expect(options.dartSdkPath, isNotNull); 29 expect(options.dartSdkPath, isNotNull);
30 expect(options.disableHints, isFalse); 30 expect(options.disableHints, isFalse);
31 expect(options.lints, isFalse); 31 expect(options.lints, isFalse);
32 expect(options.displayVersion, isFalse); 32 expect(options.displayVersion, isFalse);
33 expect(options.enableStrictCallChecks, isFalse); 33 expect(options.enableStrictCallChecks, isFalse);
34 expect(options.enableSuperMixins, isFalse); 34 expect(options.enableSuperMixins, isFalse);
35 expect(options.enableConditionalDirectives, isFalse);
36 expect(options.enableTypeChecks, isFalse); 35 expect(options.enableTypeChecks, isFalse);
37 expect(options.hintsAreFatal, isFalse); 36 expect(options.hintsAreFatal, isFalse);
38 expect(options.ignoreUnrecognizedFlags, isFalse); 37 expect(options.ignoreUnrecognizedFlags, isFalse);
39 expect(options.log, isFalse); 38 expect(options.log, isFalse);
40 expect(options.machineFormat, isFalse); 39 expect(options.machineFormat, isFalse);
41 expect(options.packageRootPath, isNull); 40 expect(options.packageRootPath, isNull);
42 expect(options.shouldBatch, isFalse); 41 expect(options.shouldBatch, isFalse);
43 expect(options.showPackageWarnings, isFalse); 42 expect(options.showPackageWarnings, isFalse);
44 expect(options.showSdkWarnings, isFalse); 43 expect(options.showSdkWarnings, isFalse);
45 expect(options.sourceFiles, equals(['foo.dart'])); 44 expect(options.sourceFiles, equals(['foo.dart']));
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 'package:p/foo.dart|/path/to/p/lib/foo.dart' 319 'package:p/foo.dart|/path/to/p/lib/foo.dart'
321 ]); 320 ]);
322 expect(options.buildMode, isTrue); 321 expect(options.buildMode, isTrue);
323 expect(options.buildSuppressExitCode, isTrue); 322 expect(options.buildSuppressExitCode, isTrue);
324 } 323 }
325 324
326 void _parse(List<String> args) { 325 void _parse(List<String> args) {
327 options = CommandLineOptions.parse(args); 326 options = CommandLineOptions.parse(args);
328 } 327 }
329 } 328 }
OLDNEW
« 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