| OLD | NEW |
| 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:unittest/unittest.dart'; | 7 import 'package:unittest/unittest.dart'; |
| 8 import 'package:csslib/parser.dart'; | |
| 9 import 'package:csslib/visitor.dart'; | |
| 10 import 'testing.dart'; | 8 import 'testing.dart'; |
| 11 | 9 |
| 12 void simpleVar() { | 10 void simpleVar() { |
| 13 final errors = []; | 11 final errors = []; |
| 14 final input = ''':root { | 12 final input = ''':root { |
| 15 var-color-background: red; | 13 var-color-background: red; |
| 16 var-color-foreground: blue; | 14 var-color-foreground: blue; |
| 17 | 15 |
| 18 var-a: var(b); | 16 var-a: var(b); |
| 19 var-b: var(c); | 17 var-b: var(c); |
| (...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 main() { | 649 main() { |
| 652 test('Simple var', simpleVar); | 650 test('Simple var', simpleVar); |
| 653 test('Expressions var', expressionsVar); | 651 test('Expressions var', expressionsVar); |
| 654 test('Default value in var()', defaultVar); | 652 test('Default value in var()', defaultVar); |
| 655 test('CSS Parser only var', parserVar); | 653 test('CSS Parser only var', parserVar); |
| 656 test('Var syntax', testVar); | 654 test('Var syntax', testVar); |
| 657 test('Cycles var', cyclesVar); | 655 test('Cycles var', cyclesVar); |
| 658 test('Less syntax', testLess); | 656 test('Less syntax', testLess); |
| 659 test('Polyfill', polyfill); | 657 test('Polyfill', polyfill); |
| 660 } | 658 } |
| OLD | NEW |