| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <foo /> | 2 <foo /> |
| 3 <script> | 3 <script> |
| 4 import "../resources/third_party/unittest/unittest.dart"; | 4 import "../resources/third_party/unittest/unittest.dart"; |
| 5 import "../resources/unit.dart"; | 5 import "../resources/unit.dart"; |
| 6 | 6 |
| 7 import "dart:sky"; | 7 import "dart:sky"; |
| 8 | 8 |
| 9 void main() { | 9 void main() { |
| 10 initUnit(); | 10 initUnit(); |
| 11 | 11 |
| 12 test('should render', () { | 12 test('should render', () { |
| 13 var foo = document.querySelector('foo'); | 13 var foo = document.querySelector('foo'); |
| 14 foo.setAttribute('style', 'border: 1px solid red'); | 14 foo.setAttribute('style', 'border: 1px solid red'); |
| 15 expect(foo.style.getPropertyValue("border"), equals('1px solid rgb(255, 0, 0
)')); | 15 expect(foo.style["border"], equals('1px solid rgb(255, 0, 0)')); |
| 16 }); | 16 }); |
| 17 } | 17 } |
| 18 </script> | 18 </script> |
| 19 </html> | 19 </html> |
| OLD | NEW |