| 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 | 9 |
| 10 | 10 |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 content: '✔'; | 251 content: '✔'; |
| 252 line-height: 43px; | 252 line-height: 43px; |
| 253 font-size: 20px; | 253 font-size: 20px; |
| 254 color: #d9d9d9; | 254 color: #d9d9d9; |
| 255 text-shadow: 0 -1px 0 #bfbfbf; | 255 text-shadow: 0 -1px 0 #bfbfbf; |
| 256 } | 256 } |
| 257 '''; | 257 '''; |
| 258 | 258 |
| 259 final String generated = r''' | 259 final String generated = r''' |
| 260 .toggle:after { | 260 .toggle:after { |
| 261 content: "✔"; | 261 content: '✔'; |
| 262 line-height: 43px; | 262 line-height: 43px; |
| 263 font-size: 20px; | 263 font-size: 20px; |
| 264 color: #d9d9d9; | 264 color: #d9d9d9; |
| 265 text-shadow: 0 -1px 0 #bfbfbf; | 265 text-shadow: 0 -1px 0 #bfbfbf; |
| 266 }'''; | 266 }'''; |
| 267 | 267 |
| 268 var stylesheet = parseCss(input, errors: errors); | 268 var stylesheet = parseCss(input, errors: errors); |
| 269 | 269 |
| 270 expect(stylesheet != null, true); | 270 expect(stylesheet != null, true); |
| 271 expect(errors.isEmpty, true, reason: errors.toString()); | 271 expect(errors.isEmpty, true, reason: errors.toString()); |
| (...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1025 test('Newer CSS', testNewerCss); | 1025 test('Newer CSS', testNewerCss); |
| 1026 test('Media Queries', testMediaQueries); | 1026 test('Media Queries', testMediaQueries); |
| 1027 test('Font-Face', testFontFace); | 1027 test('Font-Face', testFontFace); |
| 1028 test('CSS file', testCssFile); | 1028 test('CSS file', testCssFile); |
| 1029 test('Compact Emitter', testCompactEmitter); | 1029 test('Compact Emitter', testCompactEmitter); |
| 1030 test('Selector Negation', testNotSelectors); | 1030 test('Selector Negation', testNotSelectors); |
| 1031 test('IE stuff', testIE); | 1031 test('IE stuff', testIE); |
| 1032 test('IE declaration syntax', testIEDeclaration); | 1032 test('IE declaration syntax', testIEDeclaration); |
| 1033 test('Hanging bugs', testHangs); | 1033 test('Hanging bugs', testHangs); |
| 1034 } | 1034 } |
| OLD | NEW |