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

Unified Diff: pkg/analyzer/test/error_test.dart

Issue 725143004: Format and sort analyzer and analysis_server packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/test/enum_test.dart ('k') | pkg/analyzer/test/file_system/memory_file_system_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/error_test.dart
diff --git a/pkg/analyzer/test/error_test.dart b/pkg/analyzer/test/error_test.dart
index 4c7861d01465309c7212296f75d3474909fbe767..9724fde6b4112fa784c458152293d4019ebf7487 100644
--- a/pkg/analyzer/test/error_test.dart
+++ b/pkg/analyzer/test/error_test.dart
@@ -10,46 +10,48 @@ import 'utils.dart';
void main() {
test("a valid Dart file doesn't throw any errors", () {
- expect(
- errorsForFile('void main() => print("Hello, world!");'),
- isNull);
+ expect(errorsForFile('void main() => print("Hello, world!");'), isNull);
});
test("an empty Dart file doesn't throw any errors", () {
- expect(
- errorsForFile(''),
- isNull);
- });
+ expect(errorsForFile(''), isNull);
+ });
test("an error on the first line", () {
- expect(errorsForFile('void foo;\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;'),
+ 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'),
+ 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;'),
+ 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'),
+ 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'),
+ expect(
+ errorsForFile('$veryLongString void foo;$veryLongString'),
equals("Error in test.dart: Variables cannot have a type of 'void'\n"));
});
}
« no previous file with comments | « pkg/analyzer/test/enum_test.dart ('k') | pkg/analyzer/test/file_system/memory_file_system_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698