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

Unified Diff: test/selector_test.dart

Issue 1832993003: Fix all strong mode errors and warnings. (Closed) Base URL: https://github.com/dart-lang/csslib.git@master
Patch Set: Move type. Created 4 years, 8 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 | « test/nested_test.dart ('k') | test/var_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/selector_test.dart
diff --git a/test/selector_test.dart b/test/selector_test.dart
index aefab164d0ed0f356aeddaaf5e3ca7e7f2e15dfa..6249d31178445d09ab0a7976b0711b07ea9e862c 100644
--- a/test/selector_test.dart
+++ b/test/selector_test.dart
@@ -5,12 +5,13 @@
library selector_test;
import 'package:csslib/parser.dart';
+import 'package:csslib/src/messages.dart';
import 'package:test/test.dart';
import 'testing.dart';
void testSelectorSuccesses() {
- var errors = [];
+ var errors = <Message>[];
var selectorAst = selector('#div .foo', errors: errors);
expect(errors.isEmpty, true, reason: errors.toString());
expect('#div .foo', compactOuptut(selectorAst));
@@ -50,7 +51,7 @@ void testSelectorSuccesses() {
// TODO(terry): Move this failure case to a failure_test.dart when the analyzer
// and validator exit then they'll be a bunch more checks.
void testSelectorFailures() {
- var errors = [];
+ var errors = <Message>[];
// Test for invalid class name (can't start with number).
selector('.foobar .1a-story .xyzzy', errors: errors);
« no previous file with comments | « test/nested_test.dart ('k') | test/var_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698