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 compiler_test; | 5 library compiler_test; |
6 | 6 |
7 import 'dart:convert'; | 7 import 'dart:convert'; |
8 import 'package:unittest/unittest.dart'; | 8 import 'package:test/test.dart'; |
9 import 'package:csslib/parser.dart'; | 9 import 'package:csslib/parser.dart'; |
10 import 'package:csslib/visitor.dart'; | 10 import 'package:csslib/visitor.dart'; |
11 import 'testing.dart'; | 11 import 'testing.dart'; |
12 | 12 |
13 void testClass() { | 13 void testClass() { |
14 var errors = []; | 14 var errors = []; |
15 var input = ".foobar {}"; | 15 var input = ".foobar {}"; |
16 var stylesheet = parseCss(input, errors: errors); | 16 var stylesheet = parseCss(input, errors: errors); |
17 | 17 |
18 expect(stylesheet != null, true); | 18 expect(stylesheet != null, true); |
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 test('Selector Groups', testSelectorGroups); | 717 test('Selector Groups', testSelectorGroups); |
718 test('Combinator', testCombinator); | 718 test('Combinator', testCombinator); |
719 test('Wildcards', testWildcard); | 719 test('Wildcards', testWildcard); |
720 test('Pseudo', testPseudo); | 720 test('Pseudo', testPseudo); |
721 test('Attributes', testAttribute); | 721 test('Attributes', testAttribute); |
722 test('Negation', testNegation); | 722 test('Negation', testNegation); |
723 test('@host', testHost); | 723 test('@host', testHost); |
724 test('Parse List<int> as input', testArrayOfChars); | 724 test('Parse List<int> as input', testArrayOfChars); |
725 test('Simple Emitter', testEmitter); | 725 test('Simple Emitter', testEmitter); |
726 } | 726 } |
OLD | NEW |