| Index: pkg/analyzer_cli/test/error_test.dart
|
| diff --git a/pkg/analyzer_cli/test/error_test.dart b/pkg/analyzer_cli/test/error_test.dart
|
| index ad80133b88f165012c4023f1d1bb10571b7cfe1a..c1c79887be7ad610e76d3b5b5ec37548789080e2 100644
|
| --- a/pkg/analyzer_cli/test/error_test.dart
|
| +++ b/pkg/analyzer_cli/test/error_test.dart
|
| @@ -2,10 +2,9 @@
|
| // 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 analyzer_cli.test.error;
|
|
|
| -import 'package:unittest/unittest.dart';
|
| +import 'package:test/test.dart';
|
|
|
| import 'utils.dart';
|
|
|
| @@ -20,35 +19,47 @@ void main() {
|
| });
|
|
|
| test("an error on the first line", () {
|
| - expect(errorsForFile('void foo;\n'), equals(
|
| - "Error in test.dart: Variables cannot have a type of 'void'\n"));
|
| + expect(
|
| + errorsForFile('void foo;\n'),
|
| + equals(
|
| + "Error in test.dart: Variables cannot have a type of 'void'\n"));
|
| });
|
|
|
| test("an error on the last line", () {
|
| - expect(errorsForFile('\nvoid foo;'), equals(
|
| - "Error in test.dart: Variables cannot have a type of 'void'\n"));
|
| + expect(
|
| + errorsForFile('\nvoid foo;'),
|
| + equals(
|
| + "Error in test.dart: Variables cannot have a type of 'void'\n"));
|
| });
|
|
|
| test("an error in the middle", () {
|
| - expect(errorsForFile('\nvoid foo;\n'), equals(
|
| - "Error in test.dart: Variables cannot have a type of 'void'\n"));
|
| + expect(
|
| + errorsForFile('\nvoid foo;\n'),
|
| + equals(
|
| + "Error in test.dart: Variables cannot have a type of 'void'\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 in test.dart: Variables cannot have a type of 'void'\n"));
|
| + expect(
|
| + errorsForFile('$veryLongString void foo;'),
|
| + equals(
|
| + "Error in test.dart: Variables cannot have a type of 'void'\n"));
|
| });
|
|
|
| test("an error at the beginning of a very long line", () {
|
| - expect(errorsForFile('void foo; $veryLongString'), equals(
|
| - "Error in test.dart: Variables cannot have a type of 'void'\n"));
|
| + expect(
|
| + errorsForFile('void foo; $veryLongString'),
|
| + equals(
|
| + "Error in test.dart: Variables cannot have a type of 'void'\n"));
|
| });
|
|
|
| test("an error in the middle of a very long line", () {
|
| - expect(errorsForFile('$veryLongString void foo;$veryLongString'), equals(
|
| - "Error in test.dart: Variables cannot have a type of 'void'\n"));
|
| + expect(
|
| + errorsForFile('$veryLongString void foo;$veryLongString'),
|
| + equals(
|
| + "Error in test.dart: Variables cannot have a type of 'void'\n"));
|
| });
|
| });
|
| }
|
|
|