Index: test/testing.dart |
diff --git a/test/testing.dart b/test/testing.dart |
index 002c45247aabf2d15cf68a2d92e115d1221c3c87..b9a6738f01817a7700679500fe89df71865fae65 100644 |
--- a/test/testing.dart |
+++ b/test/testing.dart |
@@ -18,10 +18,12 @@ void useMockMessages() { |
* CSS will allow any property/value pairs regardless of validity; all of our |
* tests (by default) will ensure that the CSS is really valid. |
*/ |
-StyleSheet parseCss(String cssInput, {List<Message> errors, |
- List<String> opts}) => |
- parse(cssInput, errors: errors, options: opts == null ? |
- ['--no-colors', '--checked', '--warnings_as_errors', 'memory'] : opts); |
+StyleSheet parseCss(String cssInput, |
+ {List<Message> errors, List<String> opts}) => parse(cssInput, |
+ errors: errors, |
+ options: opts == null |
+ ? ['--no-colors', '--checked', '--warnings_as_errors', 'memory'] |
+ : opts); |
/** |
* Spin-up CSS parser in checked mode to detect any problematic CSS. Normally, |
@@ -29,13 +31,16 @@ StyleSheet parseCss(String cssInput, {List<Message> errors, |
* tests (by default) will ensure that the CSS is really valid. |
*/ |
StyleSheet compileCss(String cssInput, {List<Message> errors, List<String> opts, |
- bool polyfill: false, List<StyleSheet> includes: null}) => |
- compile(cssInput, errors: errors, options: opts == null ? |
- ['--no-colors', '--checked', '--warnings_as_errors', 'memory'] : opts, |
- polyfill: polyfill, includes: includes); |
+ bool polyfill: false, List<StyleSheet> includes: null}) => compile(cssInput, |
+ errors: errors, |
+ options: opts == null |
+ ? ['--no-colors', '--checked', '--warnings_as_errors', 'memory'] |
+ : opts, |
+ polyfill: polyfill, |
+ includes: includes); |
-StyleSheet polyFillCompileCss(input, {List<Message> errors, |
- List<String> opts}) => |
+StyleSheet polyFillCompileCss(input, |
+ {List<Message> errors, List<String> opts}) => |
compileCss(input, errors: errors, polyfill: true, opts: opts); |
/** CSS emitter walks the style sheet tree and emits readable CSS. */ |