| OLD | NEW | 
| (Empty) |  | 
 |   1 <!DOCTYPE html> | 
 |   2 <html> | 
 |   3 <head> | 
 |   4     <script src="../../fast/js/resources/js-test-pre.js"></script> | 
 |   5 </head> | 
 |   6 <body> | 
 |   7     <script> | 
 |   8         if (window.testRunner) { | 
 |   9             testRunner.dumpAsText(); | 
 |  10             testRunner.waitUntilDone(); | 
 |  11         } | 
 |  12  | 
 |  13         var svg = new Image(); | 
 |  14         svg.src = "resources/link-xhtml.svg"; | 
 |  15  | 
 |  16         svg.onload = function() { | 
 |  17             var canvas = document.createElement("canvas"); | 
 |  18             window.ctx = canvas.getContext("2d"); | 
 |  19  | 
 |  20             ctx.getImageData(0, 0, 1, 1); | 
 |  21  | 
 |  22             ctx.drawImage(svg, 0, 0); | 
 |  23  | 
 |  24             shouldThrow("window.ctx.getImageData(0, 0, 1, 1)"); | 
 |  25  | 
 |  26             if (window.testRunner) | 
 |  27                 testRunner.notifyDone(); | 
 |  28         }; | 
 |  29     </script> | 
 |  30 </body> | 
 |  31 </html> | 
| OLD | NEW |