test_bug1576154.html (909B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1576154 5 --> 6 <head> 7 <title>Test for Bug 1576154</title> 8 <script src="/tests/SimpleTest/SimpleTest.js"></script> 9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 10 </head> 11 <body> 12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1576154">Mozilla Bug 1576154</a> 13 <p id="display"></p> 14 <!-- bug1576154.sjs returns an SVG image with HTTP error code 500. --> 15 <img src="bug1576154.sjs"> 16 <pre id="test"> 17 <script class="testbody" type="text/javascript"> 18 19 /** Test for Bug 657191 */ 20 SimpleTest.waitForExplicitFinish(); 21 22 window.onload = function() { 23 let img = document.querySelector("img"); 24 img.src = "green.png"; 25 img.onload = function() { 26 // As long as this doesn't crash, this test passes. 27 ok(true, "test passed"); 28 SimpleTest.finish(); 29 }; 30 } 31 32 </script> 33 </pre> 34 </body> 35 </html>