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

Unified Diff: test/visitor_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/var_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/visitor_test.dart
diff --git a/test/visitor_test.dart b/test/visitor_test.dart
index 803b10614738b509fbed3c24453db98da81c7ad9..02784c40461b71a3c49783e04d83c5defd8e0569 100644
--- a/test/visitor_test.dart
+++ b/test/visitor_test.dart
@@ -4,6 +4,7 @@
library visitor_test;
+import 'package:csslib/src/messages.dart';
import 'package:csslib/visitor.dart';
import 'package:test/test.dart';
@@ -33,7 +34,7 @@ class ClassVisitor extends Visitor {
}
void testClassVisitors() {
- var errors = [];
+ var errors = <Message>[];
var in1 = '.foobar { }';
var s = parseCss(in1, errors: errors);
@@ -84,7 +85,7 @@ String polyfillPrint(String prefix, StyleSheet ss) =>
(new PolyfillEmitter(prefix)..visitTree(ss, pretty: true)).toString();
void testPolyFill() {
- var errors = [];
+ var errors = <Message>[];
final input = r'''
.foobar { }
div.xyzzy { }
« no previous file with comments | « test/var_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698