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

Unified Diff: pkg/analyzer_experimental/test/error_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
« no previous file with comments | « pkg/analyzer_experimental/pubspec.yaml ('k') | pkg/analyzer_experimental/test/generated/ast_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_experimental/test/error_test.dart
diff --git a/pkg/analyzer_experimental/test/error_test.dart b/pkg/analyzer_experimental/test/error_test.dart
deleted file mode 100644
index 4a513d95c67e0f92f3f2fa25232db1586c8caf7e..0000000000000000000000000000000000000000
--- a/pkg/analyzer_experimental/test/error_test.dart
+++ /dev/null
@@ -1,62 +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.
-
-import 'package:unittest/unittest.dart';
-
-import 'utils.dart';
-
-void main() {
- test("a valid Dart file doesn't throw any errors", () {
- expect(
- errorsForFile('void main() => print("Hello, world!");'),
- isNull);
- });
-
- test("an error on the first line", () {
- expect(errorsForFile('void foo;\n'),
- equals('Error on line 1 of test.dart: ...\n'
- 'void foo;\n'
- '^^^^\n'));
- });
-
- test("an error on the last line", () {
- expect(errorsForFile('\nvoid foo;'),
- equals('Error on line 2 of test.dart: ...\n'
- 'void foo;\n'
- '^^^^\n'));
- });
-
- test("an error in the middle", () {
- expect(errorsForFile('\nvoid foo;\n'),
- equals('Error on line 2 of test.dart: ...\n'
- 'void foo;\n'
- '^^^^\n'));
- });
-
- var veryLongString = new List.filled(107, ' ').join('');
-
- test("an error at the end of a very long line", () {
- expect(errorsForFile('$veryLongString void foo;'),
- equals('Error on line 1 of test.dart: ...\n'
- '...$veryLongString void foo;\n'
- '$veryLongString ^^^^\n'));
- });
-
- test("an error at the beginning of a very long line", () {
- expect(errorsForFile('void foo; $veryLongString'),
- equals('Error on line 1 of test.dart: ...\n'
- 'void foo; $veryLongString...\n'
- '^^^^\n'));
- });
-
- test("an error in the middle of a very long line", () {
- expect(errorsForFile('$veryLongString void foo;$veryLongString'),
- equals('Error on line 1 of test.dart: ...\n'
- '... '
- 'void foo; '
- '...\n'
- ' '
- '^^^^\n'));
- });
-}
« no previous file with comments | « pkg/analyzer_experimental/pubspec.yaml ('k') | pkg/analyzer_experimental/test/generated/ast_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698