| 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:test/test.dart'; |
| 8 |
| 8 import 'testing.dart'; | 9 import 'testing.dart'; |
| 9 | 10 |
| 10 compileAndValidate(String input, String generated) { | 11 compileAndValidate(String input, String generated) { |
| 11 var errors = []; | 12 var errors = []; |
| 12 var stylesheet = compileCss(input, errors: errors, opts: options); | 13 var stylesheet = compileCss(input, errors: errors, opts: options); |
| 13 expect(stylesheet != null, true); | 14 expect(stylesheet != null, true); |
| 14 expect(errors.isEmpty, true, reason: errors.toString()); | 15 expect(errors.isEmpty, true, reason: errors.toString()); |
| 15 expect(prettyPrint(stylesheet), generated); | 16 expect(prettyPrint(stylesheet), generated); |
| 16 } | 17 } |
| 17 | 18 |
| (...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 test('Expressions var', expressionsVar); | 917 test('Expressions var', expressionsVar); |
| 917 test('Default value in var()', defaultVar); | 918 test('Default value in var()', defaultVar); |
| 918 test('CSS Parser only var', parserVar); | 919 test('CSS Parser only var', parserVar); |
| 919 test('Var syntax', testVar); | 920 test('Var syntax', testVar); |
| 920 test('Indirects', testIndirects); | 921 test('Indirects', testIndirects); |
| 921 test('Forward Refs', undefinedVars); | 922 test('Forward Refs', undefinedVars); |
| 922 test('Less syntax', testLess); | 923 test('Less syntax', testLess); |
| 923 test('Polyfill', polyfill); | 924 test('Polyfill', polyfill); |
| 924 test('Multi-file', includes); | 925 test('Multi-file', includes); |
| 925 } | 926 } |
| OLD | NEW |