| 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 'dart:utf'; | |
| 8 import 'package:unittest/unittest.dart'; | 7 import 'package:unittest/unittest.dart'; |
| 9 import 'package:csslib/parser.dart'; | 8 import 'package:csslib/parser.dart'; |
| 10 import 'package:csslib/visitor.dart'; | 9 import 'package:csslib/visitor.dart'; |
| 11 import 'testing.dart'; | 10 import 'testing.dart'; |
| 12 | 11 |
| 13 void simpleVar() { | 12 void simpleVar() { |
| 14 final errors = []; | 13 final errors = []; |
| 15 final input = ''':root { | 14 final input = ''':root { |
| 16 var-color-background: red; | 15 var-color-background: red; |
| 17 var-color-foreground: blue; | 16 var-color-foreground: blue; |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 | 619 |
| 621 main() { | 620 main() { |
| 622 test('Simple var', simpleVar); | 621 test('Simple var', simpleVar); |
| 623 test('Expressions var', expressionsVar); | 622 test('Expressions var', expressionsVar); |
| 624 test('Default value in var()', defaultVar); | 623 test('Default value in var()', defaultVar); |
| 625 test('CSS Parser only var', parserVar); | 624 test('CSS Parser only var', parserVar); |
| 626 test('Var syntax', testVar); | 625 test('Var syntax', testVar); |
| 627 test('Cycles var', cyclesVar); | 626 test('Cycles var', cyclesVar); |
| 628 test('Less syntax', testLess); | 627 test('Less syntax', testLess); |
| 629 } | 628 } |
| OLD | NEW |