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

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

Issue 45573002: Rename analyzer_experimental to analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks before publishing. Created 7 years, 2 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
Index: pkg/analyzer_experimental/test/options_test.dart
diff --git a/pkg/analyzer_experimental/test/options_test.dart b/pkg/analyzer_experimental/test/options_test.dart
deleted file mode 100644
index c4c9a34338dd8dbf359e2191a8249d881ed9cbf1..0000000000000000000000000000000000000000
--- a/pkg/analyzer_experimental/test/options_test.dart
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library options_test;
-
-import 'package:unittest/unittest.dart';
-import 'package:analyzer_experimental/options.dart';
-
-main() {
-
- group('AnalyzerOptions.parse()', () {
-
- test('defaults', () {
- CommandLineOptions options = CommandLineOptions
- .parse(['--dart-sdk', '.', 'foo.dart']);
- expect(options, isNotNull);
- expect(options.shouldBatch, isFalse);
- expect(options.machineFormat, isFalse);
- expect(options.ignoreUnrecognizedFlags, isFalse);
- expect(options.showPackageWarnings, isFalse);
- expect(options.showSdkWarnings, isFalse);
- expect(options.warningsAreFatal, isFalse);
- expect(options.dartSdkPath, isNotNull);
- expect(options.sourceFiles, equals(['foo.dart']));
- });
-
- test('machine format', () {
- CommandLineOptions options = CommandLineOptions
- .parse(['--dart-sdk', '.', '--format=machine', 'foo.dart']);
- expect(options.machineFormat, isTrue);
- });
-
- test('package root', () {
- CommandLineOptions options = CommandLineOptions
- .parse(['--dart-sdk', '.', '-p', 'bar', 'foo.dart']);
- expect(options.packageRootPath, equals('bar'));
- });
-
- test('package warnings', () {
- CommandLineOptions options = CommandLineOptions
- .parse(['--dart-sdk', '.', '--package-warnings', 'foo.dart']);
- expect(options.showPackageWarnings, isTrue);
- });
-
- test('sdk warnings', () {
- CommandLineOptions options = CommandLineOptions
- .parse(['--dart-sdk', '.', '--warnings', 'foo.dart']);
- expect(options.showSdkWarnings, isTrue);
- });
-
-// test('notice unrecognized flags', () {
-// CommandLineOptions options = new CommandLineOptions.parse(['--bar', '--baz',
-// 'foo.dart']);
-// expect(options, isNull);
-// });
-//
-// test('ignore unrecognized flags', () {
-// CommandLineOptions options = new CommandLineOptions.parse([
-// '--ignore_unrecognized_flags', '--bar', '--baz', 'foo.dart']);
-// expect(options, isNotNull);
-// expect(options.sourceFiles, equals(['foo.dart']));
-// });
-
- });
-
-}
-

Powered by Google App Engine
This is Rietveld 408576698