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