| 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 nested_test; | 5 library nested_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 List optionsCss = ['--no-colors', 'memory']; | 12 List optionsCss = ['--no-colors', 'memory']; |
| 14 | 13 |
| 15 compileAndValidate(String input, String generated) { | 14 compileAndValidate(String input, String generated) { |
| 16 var errors = []; | 15 var errors = []; |
| 17 var stylesheet = compileCss(input, errors: errors, opts: optionsCss); | 16 var stylesheet = compileCss(input, errors: errors, opts: optionsCss); |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 | 604 |
| 606 main() { | 605 main() { |
| 607 test('Selector and Nested Variations', selectorVariations); | 606 test('Selector and Nested Variations', selectorVariations); |
| 608 test('Simple nesting', simpleNest); | 607 test('Simple nesting', simpleNest); |
| 609 test('Complex nesting', complexNest); | 608 test('Complex nesting', complexNest); |
| 610 test('@media nesting', mediaNesting); | 609 test('@media nesting', mediaNesting); |
| 611 test('Simple &', simpleThis); | 610 test('Simple &', simpleThis); |
| 612 test("Variations &", variationsThis); | 611 test("Variations &", variationsThis); |
| 613 test('Complex &', complexThis); | 612 test('Complex &', complexThis); |
| 614 } | 613 } |
| OLD | NEW |