| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <style> | 2 <style> |
| 3 #sandbox { color: red; } | 3 #sandbox { color: red; } |
| 4 .blue { color: blue; } | 4 .blue { color: blue; } |
| 5 </style> | 5 </style> |
| 6 <body> | 6 <body> |
| 7 <div id="sandbox" class="blue">This should be blue.</div> | 7 <div id="sandbox" class="blue">This should be blue.</div> |
| 8 <script> | 8 <script> |
| 9 import "../resources/third_party/unittest/unittest.dart"; | 9 import "../resources/third_party/unittest/unittest.dart"; |
| 10 import "../resources/unit.dart"; | 10 import "../resources/unit.dart"; |
| 11 | 11 |
| 12 import "dart:sky"; | 12 import "dart:sky"; |
| 13 | 13 |
| 14 main() { | 14 main() { |
| 15 initUnit(); | 15 initUnit(); |
| 16 | 16 |
| 17 test('should not exist', () { | 17 test('should not exist', () { |
| 18 var sandbox = document.getElementById("sandbox"); | 18 var sandbox = document.getElementById("sandbox"); |
| 19 expect(window.getComputedStyle(sandbox).getPropertyValue("color"), | 19 expect(window.getComputedStyle(sandbox)["color"], |
| 20 equals("rgb(0, 0, 255)")); | 20 equals("rgb(0, 0, 255)")); |
| 21 }); | 21 }); |
| 22 } | 22 } |
| 23 </script> | 23 </script> |
| 24 </body> | 24 </body> |
| 25 </html> | 25 </html> |
| OLD | NEW |