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

Unified Diff: pkg/csslib/test/testing.dart

Issue 64373003: pkg/csslib: types, fixes, cleanup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: more Created 7 years, 1 month 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 | « pkg/csslib/test/selector_test.dart ('k') | pkg/csslib/test/visitor_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/csslib/test/testing.dart
diff --git a/pkg/csslib/test/testing.dart b/pkg/csslib/test/testing.dart
index f15805cff56d23676b653014e52bd88455c6ef2b..168a4e59b2c205c60ea555c4266477dea34842ee 100644
--- a/pkg/csslib/test/testing.dart
+++ b/pkg/csslib/test/testing.dart
@@ -9,7 +9,7 @@ import 'package:csslib/parser.dart';
import 'package:csslib/visitor.dart';
import 'package:csslib/src/messages.dart';
-useMockMessages() {
+void useMockMessages() {
messages = new Messages(printHandler: (message) {});
}
@@ -37,10 +37,10 @@ StyleSheet polyFillCompileCss(input, {List errors, List opts}) =>
compileCss(input, errors: errors, polyfill: true, opts: opts);
/** CSS emitter walks the style sheet tree and emits readable CSS. */
-var _emitCss = new CssPrinter();
+final _emitCss = new CssPrinter();
/** Simple Visitor does nothing but walk tree. */
-var _cssVisitor = new Visitor();
+final _cssVisitor = new Visitor();
/** Pretty printer for CSS. */
String prettyPrint(StyleSheet ss) {
@@ -65,5 +65,3 @@ void walkTree(StyleSheet ss) {
}
String dumpTree(StyleSheet ss) => treeToDebugString(ss);
-
-
« no previous file with comments | « pkg/csslib/test/selector_test.dart ('k') | pkg/csslib/test/visitor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698