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

Unified Diff: test/var_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/selector_test.dart ('k') | test/visitor_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/var_test.dart
diff --git a/test/var_test.dart b/test/var_test.dart
index d47fd785edce08005888b583caec26a36e34f00e..c75de562bcf4f411249df9e1f39563fbe8d4e431 100644
--- a/test/var_test.dart
+++ b/test/var_test.dart
@@ -4,12 +4,13 @@
library var_test;
+import 'package:csslib/src/messages.dart';
import 'package:test/test.dart';
import 'testing.dart';
compileAndValidate(String input, String generated) {
- var errors = [];
+ var errors = <Message>[];
var stylesheet = compileCss(input, errors: errors, opts: options);
expect(stylesheet != null, true);
expect(errors.isEmpty, true, reason: errors.toString());
@@ -17,7 +18,7 @@ compileAndValidate(String input, String generated) {
}
compilePolyfillAndValidate(String input, String generated) {
- var errors = [];
+ var errors = <Message>[];
var stylesheet = polyFillCompileCss(input, errors: errors, opts: options);
expect(stylesheet != null, true);
expect(errors.isEmpty, true, reason: errors.toString());
@@ -340,7 +341,7 @@ div {
}
void undefinedVars() {
- final errors = [];
+ final errors = <Message>[];
final input = ''':root {
var-color-background: red;
var-color-foreground: blue;
@@ -622,7 +623,7 @@ parserVar() {
}
testVar() {
- final errors = [];
+ final errors = <Message>[];
final input = '''
@color-background: red;
@color-foreground: blue;
@@ -676,7 +677,7 @@ var-color-foreground: #00f;
}
testLess() {
- final errors = [];
+ final errors = <Message>[];
final input = '''
@color-background: red;
@color-foreground: blue;
@@ -772,7 +773,7 @@ void testIndirects() {
}
void includes() {
- var errors = [];
+ var errors = <Message>[];
var file1Input = r'''
:root {
var-redef: #0f0;
« no previous file with comments | « test/selector_test.dart ('k') | test/visitor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698