OLD | NEW |
(Empty) | |
| 1 library debug; |
| 2 |
| 3 import 'package:test/test.dart'; |
| 4 import 'testing.dart'; |
| 5 |
| 6 void main() { |
| 7 test("excercise debug", () { |
| 8 var style = parseCss(_input); |
| 9 |
| 10 var debugValue = style.toDebugString(); |
| 11 expect(debugValue, isNotNull); |
| 12 |
| 13 var style2 = style.clone(); |
| 14 |
| 15 expect(style2.toDebugString(), debugValue); |
| 16 }); |
| 17 } |
| 18 |
| 19 const String _input = r''' |
| 20 .foo { |
| 21 background-color: #191919; |
| 22 width: 10PX; |
| 23 height: 22mM !important; |
| 24 border-width: 20cm; |
| 25 margin-width: 33%; |
| 26 border-height: 30EM; |
| 27 width: .6in; |
| 28 length: 1.2in; |
| 29 -web-stuff: -10Px; |
| 30 }'''; |
OLD | NEW |