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

Unified Diff: test/var_test.dart

Issue 1022963002: pkg/csslib: fixes for args (Closed) Base URL: https://github.com/dart-lang/csslib@master
Patch Set: nits Created 5 years, 9 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/testing.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 17349b8809e5057557a9ab0de9a2426265b17469..657459da0f51f0f6a20056de22a1e847b1eb2587 100644
--- a/test/var_test.dart
+++ b/test/var_test.dart
@@ -7,8 +7,6 @@ library var_test;
import 'package:unittest/unittest.dart';
import 'testing.dart';
-List options = ['--no-colors', '--warnings_as_errors', 'memory'];
-
compileAndValidate(String input, String generated) {
var errors = [];
var stylesheet = compileCss(input, errors: errors, opts: options);
@@ -644,8 +642,7 @@ var-color-foreground: #00f;
color: var(color-foreground);
}''';
- var stylesheet =
- parseCss(input, errors: errors, opts: ['--no-colors', 'memory']);
+ var stylesheet = parseCss(input, errors: errors, opts: simpleOptions);
expect(stylesheet != null, true);
expect(errors.isEmpty, true, reason: errors.toString());
@@ -670,8 +667,7 @@ var-color-foreground: #00f;
color: var(color-foreground);
}''';
- stylesheet =
- parseCss(input, errors: errors..clear(), opts: ['--no-colors', 'memory']);
+ stylesheet = parseCss(input, errors: errors..clear(), opts: simpleOptions);
expect(stylesheet != null, true);
expect(errors.isEmpty, true, reason: errors.toString());
@@ -699,8 +695,7 @@ var-color-foreground: #00f;
color: var(color-foreground);
}''';
- var stylesheet =
- parseCss(input, errors: errors, opts: ['--no-colors', 'memory']);
+ var stylesheet = parseCss(input, errors: errors, opts: simpleOptions);
expect(stylesheet != null, true);
expect(errors.isEmpty, true, reason: errors.toString());
@@ -725,8 +720,7 @@ var-color-foreground: #00f;
color: var(color-foreground);
}''';
- stylesheet =
- parseCss(input, errors: errors..clear(), opts: ['--no-colors', 'memory']);
+ stylesheet = parseCss(input, errors: errors..clear(), opts: simpleOptions);
expect(stylesheet != null, true);
expect(errors.isEmpty, true, reason: errors.toString());
« no previous file with comments | « test/testing.dart ('k') | test/visitor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698