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

Side by Side Diff: test/var_test.dart

Issue 1138823002: pkg/csslib: Remove a number of unused members, prepare for release (Closed) Base URL: https://github.com/dart-lang/csslib@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « test/nested_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library var_test; 5 library var_test;
6 6
7 import 'package:test/test.dart'; 7 import 'package:test/test.dart';
8 8
9 import 'testing.dart'; 9 import 'testing.dart';
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 .testIt { 56 .testIt {
57 color: #00f; 57 color: #00f;
58 background: #f00; 58 background: #f00;
59 }'''; 59 }''';
60 60
61 compileAndValidate(input, generated); 61 compileAndValidate(input, generated);
62 compilePolyfillAndValidate(input, generatedPolyfill); 62 compilePolyfillAndValidate(input, generatedPolyfill);
63 } 63 }
64 64
65 void expressionsVar() { 65 void expressionsVar() {
66 final errors = [];
67 final input = ''':root { 66 final input = ''':root {
68 var-color-background: red; 67 var-color-background: red;
69 var-color-foreground: blue; 68 var-color-foreground: blue;
70 69
71 var-c: #00ff00; 70 var-c: #00ff00;
72 var-b: var(c); 71 var-b: var(c);
73 var-a: var(b); 72 var-a: var(b);
74 73
75 var-image: url(test.png); 74 var-image: url(test.png);
76 75
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 unicode-range: U+0A-FF, U+980-9FF, U+????, U+3???; 214 unicode-range: U+0A-FF, U+980-9FF, U+????, U+3???;
216 } 215 }
217 .foobar { 216 .foobar {
218 grid-columns: 10px ("content" 1fr 10px) [4]; 217 grid-columns: 10px ("content" 1fr 10px) [4];
219 }'''; 218 }''';
220 219
221 compilePolyfillAndValidate(input, generatedPolyfill); 220 compilePolyfillAndValidate(input, generatedPolyfill);
222 } 221 }
223 222
224 void defaultVar() { 223 void defaultVar() {
225 final errors = [];
226 final input = ''' 224 final input = '''
227 :root { 225 :root {
228 var-color-background: red; 226 var-color-background: red;
229 var-color-foreground: blue; 227 var-color-foreground: blue;
230 228
231 var-a: var(b, #0a0); 229 var-a: var(b, #0a0);
232 var-b: var(c, #0b0); 230 var-b: var(c, #0b0);
233 var-c: #00ff00; 231 var-c: #00ff00;
234 232
235 var-image: url(test.png); 233 var-image: url(test.png);
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 test('Expressions var', expressionsVar); 915 test('Expressions var', expressionsVar);
918 test('Default value in var()', defaultVar); 916 test('Default value in var()', defaultVar);
919 test('CSS Parser only var', parserVar); 917 test('CSS Parser only var', parserVar);
920 test('Var syntax', testVar); 918 test('Var syntax', testVar);
921 test('Indirects', testIndirects); 919 test('Indirects', testIndirects);
922 test('Forward Refs', undefinedVars); 920 test('Forward Refs', undefinedVars);
923 test('Less syntax', testLess); 921 test('Less syntax', testLess);
924 test('Polyfill', polyfill); 922 test('Polyfill', polyfill);
925 test('Multi-file', includes); 923 test('Multi-file', includes);
926 } 924 }
OLDNEW
« no previous file with comments | « test/nested_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698