| 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:unittest/unittest.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'; | 
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  584 div:nth-child(2n) { color : red; } |  584 div:nth-child(2n) { color : red; } | 
|  585 '''; |  585 '''; | 
|  586  |  586  | 
|  587   var stylesheet = parseCss(input, errors: errors, |  587   var stylesheet = parseCss(input, errors: errors, | 
|  588       opts: ['--no-colors', 'memory']); |  588       opts: ['--no-colors', 'memory']); | 
|  589  |  589  | 
|  590   expect(stylesheet != null, true); |  590   expect(stylesheet != null, true); | 
|  591   expect(errors.isEmpty, true, reason: errors.toString()); |  591   expect(errors.isEmpty, true, reason: errors.toString()); | 
|  592   expect(prettyPrint(stylesheet), r''' |  592   expect(prettyPrint(stylesheet), r''' | 
|  593 html:lang(fr-ca) { |  593 html:lang(fr-ca) { | 
|  594   quotes: "\" " " \""; |  594   quotes: '" ' ' "'; | 
|  595 } |  595 } | 
|  596 zoom { |  596 zoom { | 
|  597 } |  597 } | 
|  598 a:link { |  598 a:link { | 
|  599   color: #f00; |  599   color: #f00; | 
|  600 } |  600 } | 
|  601 :link { |  601 :link { | 
|  602   color: #00f; |  602   color: #00f; | 
|  603 } |  603 } | 
|  604 a:focus { |  604 a:focus { | 
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  719   test('Selector Groups', testSelectorGroups); |  719   test('Selector Groups', testSelectorGroups); | 
|  720   test('Combinator', testCombinator); |  720   test('Combinator', testCombinator); | 
|  721   test('Wildcards', testWildcard); |  721   test('Wildcards', testWildcard); | 
|  722   test('Pseudo', testPseudo); |  722   test('Pseudo', testPseudo); | 
|  723   test('Attributes', testAttribute); |  723   test('Attributes', testAttribute); | 
|  724   test('Negation', testNegation); |  724   test('Negation', testNegation); | 
|  725   test('@host', testHost); |  725   test('@host', testHost); | 
|  726   test('Parse List<int> as input', testArrayOfChars); |  726   test('Parse List<int> as input', testArrayOfChars); | 
|  727   test('Simple Emitter', testEmitter); |  727   test('Simple Emitter', testEmitter); | 
|  728 } |  728 } | 
| OLD | NEW |