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

Unified Diff: test/options_test.dart

Issue 1375643003: Remove outmoded --url-mapping option. (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 | « pubspec.yaml ('k') | no next file » | 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 e30844204931e869a965c8db859af51f69c08a7a..a495b8ecb2a8ea9371cfb33f8ed07f48077a1b5c 100644
--- a/test/options_test.dart
+++ b/test/options_test.dart
@@ -3,7 +3,6 @@
// BSD-style license that can be found in the LICENSE file.
@TestOn("vm")
-
library analyzer_cli.test.options;
import 'package:analyzer_cli/src/options.dart';
@@ -33,8 +32,6 @@ main() {
expect(options.showSdkWarnings, isFalse);
expect(options.sourceFiles, equals(['foo.dart']));
expect(options.warningsAreFatal, isFalse);
- expect(options.customUrlMappings, isNotNull);
- expect(options.customUrlMappings.isEmpty, isTrue);
expect(options.strongMode, isFalse);
});
@@ -130,23 +127,10 @@ main() {
expect(options.warningsAreFatal, isTrue);
});
- test('customUrlMappings', () {
- CommandLineOptions options = CommandLineOptions.parse([
- '--dart-sdk',
- '.',
- '--url-mapping',
- 'dart:dummy,/path/to/dummy.dart',
- 'foo.dart'
- ]);
- expect(options.customUrlMappings, isNotNull);
- expect(options.customUrlMappings.isEmpty, isFalse);
- expect(options.customUrlMappings['dart:dummy'],
- equals('/path/to/dummy.dart'));
- });
-
test('notice unrecognized flags', () {
- expect(() => new CommandLineParser().parse(
- ['--bar', '--baz', 'foo.dart'], {}),
+ expect(
+ () => new CommandLineParser()
+ .parse(['--bar', '--baz', 'foo.dart'], {}),
throwsA(new isInstanceOf<FormatException>()));
});
@@ -183,13 +167,9 @@ main() {
test("can't specify package and package-root", () {
var failureMessage;
- CommandLineOptions.parse([
- '--package-root',
- '.',
- '--packages',
- '.',
- 'foo.dart'
- ], (msg) => failureMessage = msg);
+ CommandLineOptions.parse(
+ ['--package-root', '.', '--packages', '.', 'foo.dart'],
+ (msg) => failureMessage = msg);
expect(failureMessage,
equals("Cannot specify both '--package-root' and '--packages."));
});
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698