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

Unified Diff: packages/csslib/test/visitor_test.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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 | « packages/csslib/test/var_test.dart ('k') | packages/dart_style/._.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 { }
« no previous file with comments | « packages/csslib/test/var_test.dart ('k') | packages/dart_style/._.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698