Index: packages/csslib/test/visitor_test.dart |
diff --git a/packages/csslib/test/visitor_test.dart b/packages/csslib/test/visitor_test.dart |
index 803b10614738b509fbed3c24453db98da81c7ad9..16071c7d0d05fbb1c1ebb70f6265bcb4d4bdeee1 100644 |
--- a/packages/csslib/test/visitor_test.dart |
+++ b/packages/csslib/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); |
@@ -59,7 +60,9 @@ void testClassVisitors() { |
..visitTree(s); |
expect(clsVisits.matches, true); |
- expect(prettyPrint(s), r''' |
+ expect( |
+ prettyPrint(s), |
+ r''' |
.foobar1 { |
} |
.xyzzy .foo #my-div { |
@@ -84,7 +87,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 { } |