OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 declaration_test; | 5 library declaration_test; |
6 | 6 |
7 import 'package:unittest/unittest.dart'; | 7 import 'package:unittest/unittest.dart'; |
8 import 'testing.dart'; | 8 import 'testing.dart'; |
9 import 'package:csslib/parser.dart'; | |
10 import 'package:csslib/visitor.dart'; | |
11 | 9 |
12 | 10 |
13 /** CSS compiler options no checks in in memory style sheet. */ | 11 /** CSS compiler options no checks in in memory style sheet. */ |
14 List options = ['--no-colors', 'memory']; | 12 List options = ['--no-colors', 'memory']; |
15 | 13 |
16 void testSimpleTerms() { | 14 void testSimpleTerms() { |
17 var errors = []; | 15 var errors = []; |
18 final String input = r''' | 16 final String input = r''' |
19 @ import url("test.css"); | 17 @ import url("test.css"); |
20 .foo { | 18 .foo { |
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1027 test('Newer CSS', testNewerCss); | 1025 test('Newer CSS', testNewerCss); |
1028 test('Media Queries', testMediaQueries); | 1026 test('Media Queries', testMediaQueries); |
1029 test('Font-Face', testFontFace); | 1027 test('Font-Face', testFontFace); |
1030 test('CSS file', testCssFile); | 1028 test('CSS file', testCssFile); |
1031 test('Compact Emitter', testCompactEmitter); | 1029 test('Compact Emitter', testCompactEmitter); |
1032 test('Selector Negation', testNotSelectors); | 1030 test('Selector Negation', testNotSelectors); |
1033 test('IE stuff', testIE); | 1031 test('IE stuff', testIE); |
1034 test('IE declaration syntax', testIEDeclaration); | 1032 test('IE declaration syntax', testIEDeclaration); |
1035 test('Hanging bugs', testHangs); | 1033 test('Hanging bugs', testHangs); |
1036 } | 1034 } |
OLD | NEW |