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

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

Issue 199543002: Addtional tests in options.dart to cover 'log' case, and other missed flag tests as they were added. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | « no previous file | pkg/analyzer/test/options_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 7a91029f038a897f64a389a099d399ad941e38aa..07befe7151dea186b6095c44a4b67c5e856f801c 100644
--- a/pkg/analyzer/test/error_test.dart
+++ b/pkg/analyzer/test/error_test.dart
@@ -13,6 +13,12 @@ void main() {
isNull);
});
+ test("an empty Dart file doesn't throw any errors", () {
+ expect(
+ errorsForFile(''),
+ isNull);
+ });
+
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"));
« no previous file with comments | « no previous file | pkg/analyzer/test/options_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698