| OLD | NEW |
| 1 <!DOCTYPE html> | |
| 2 <script src="../../resources/testharness.js"></script> | 1 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> | 2 <script src="../../resources/testharnessreport.js"></script> |
| 4 <script> | 3 <script> |
| 5 setup(function() { | 4 test(function(t) { |
| 6 window.ctx = document.createElement('canvas').getContext('2d'); | 5 ctx = document.createElement('canvas').getContext('2d'); |
| 7 }); | |
| 8 | |
| 9 test(function() { | |
| 10 ctx.fillStyle = "#008000"; | 6 ctx.fillStyle = "#008000"; |
| 11 ctx.fillStyle = "800000"; | 7 ctx.fillStyle = "800000"; |
| 12 assert_equals(ctx.fillStyle, "#008000"); | 8 assert_equals(ctx.fillStyle, "#008000"); |
| 13 }, 'fillStyle should not accept quirks mode hex colors.'); | 9 }, 'fillStyle should not accept quirks mode hex colors.'); |
| 14 </script> | 10 </script> |
| OLD | NEW |