| OLD | NEW | 
|---|
| 1 This test ensures that accessing the context of a zero sized canvas does not cra
    sh. | 1 <html> | 
| 2 <canvas id="canvas" width="0" height="0"></canvas><br /> | 2 <head> | 
|  | 3 <script src="../../resources/testharness.js"></script> | 
|  | 4 <script src="../../resources/testharnessreport.js"></script> | 
|  | 5 </head> | 
|  | 6 <canvas id="canvas" width="0" height="0"></canvas> | 
|  | 7 <body> | 
| 3 <script> | 8 <script> | 
| 4 if (window.testRunner) | 9 test(function(t) { | 
| 5     testRunner.dumpAsText(); | 10     var context = document.getElementById("canvas").getContext("2d"); | 
|  | 11     context.fillStyle = "green"; | 
|  | 12 }, 'This test ensures that accessing the context of a zero sized canvas does not
     crash.'); | 
|  | 13 </script> | 
|  | 14 </body> | 
|  | 15 </html> | 
| 6 | 16 | 
| 7 var context = document.getElementById("canvas").getContext("2d"); |  | 
| 8 context.fillStyle = "green"; |  | 
| 9 |  | 
| 10 </script> |  | 
| OLD | NEW | 
|---|