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

Unified Diff: test/mixin_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/extend_test.dart ('k') | test/nested_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mixin_test.dart
diff --git a/test/mixin_test.dart b/test/mixin_test.dart
index c94c9c018d5f5e3b63525e7eb08581b6d69db277..71dcc50b67c2db7a3287d55b573208254d028feb 100644
--- a/test/mixin_test.dart
+++ b/test/mixin_test.dart
@@ -4,12 +4,13 @@
library mixin_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());
@@ -413,7 +414,7 @@ void mixinManyArgs() {
}
void badDeclarationInclude() {
- final errors = [];
+ final errors = <Message>[];
final input = r'''
@mixin a {
#foo-id {
@@ -441,7 +442,7 @@ void badDeclarationInclude() {
}
void badTopInclude() {
- final errors = [];
+ final errors = <Message>[];
final input = r'''
@mixin b {
color: red;
@@ -467,7 +468,7 @@ void badTopInclude() {
}
void emptyMixin() {
- final errors = [];
+ final errors = <Message>[];
final input = r'''
@mixin a {
}
@@ -492,7 +493,7 @@ div {
}
void undefinedTopLevel() {
- final errors = [];
+ final errors = <Message>[];
final input = r'''
@mixin a {
@include b;
@@ -520,7 +521,7 @@ void undefinedTopLevel() {
}
void undefinedDeclaration() {
- final errors = [];
+ final errors = <Message>[];
final input = r'''
@mixin a {
@include b;
@@ -578,7 +579,7 @@ foo {
color: #f00;
}''');
- var errors = [];
+ var errors = <Message>[];
var input = r'''
@mixin a {
foo { color: red }
« no previous file with comments | « test/extend_test.dart ('k') | test/nested_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698