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

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

Issue 23868008: Added polyfill for var (moved from web_ui) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
Index: pkg/csslib/test/testing.dart
diff --git a/pkg/csslib/test/testing.dart b/pkg/csslib/test/testing.dart
index e7b14bdc494c62ae39753783b5b6a3fbdb27553e..f2e1273b0222d9a73801d98ad674c9efcf73cfa0 100644
--- a/pkg/csslib/test/testing.dart
+++ b/pkg/csslib/test/testing.dart
@@ -27,9 +27,11 @@ StyleSheet parseCss(String cssInput, {List errors, List opts}) =>
* 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 compileCss(String cssInput, {List errors, List opts}) =>
+StyleSheet compileCss(String cssInput,
+ {List errors, List opts, bool polyfill: false}) =>
compile(cssInput, errors: errors, options: opts == null ?
- ['--no-colors', '--checked', '--warnings_as_errors', 'memory'] : opts);
+ ['--no-colors', '--checked', '--warnings_as_errors', 'memory'] : opts,
+ polyfill: polyfill);
/** CSS emitter walks the style sheet tree and emits readable CSS. */
var _emitCss = new CssPrinter();

Powered by Google App Engine
This is Rietveld 408576698