test_bug809003.html (1302B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=809003 5 --> 6 <head> 7 <meta charset="utf-8"> 8 <title>Test for Bug 809003</title> 9 <script src="/tests/SimpleTest/SimpleTest.js"></script> 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 11 <style> 12 #testdiv:before { 13 content: url('data:image/gif,GIF89a%01%00%01%00%80%01%00%FF%00%00%FF%FF%FF!%F9%04%01%00%00%01%00%2C%00%00%00%00%01%00%01%00%00%02%02D%01%00%3B'); 14 } 15 #testdiv:after { 16 content: url('non_existing_image.gif'); 17 } 18 </style> 19 </head> 20 <body> 21 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=809003">Mozilla Bug 809003</a> 22 <p id="display"></p> 23 <div id="content" style="display: none"> 24 25 </div> 26 <pre id="test"> 27 <script type="application/javascript"> 28 29 /** Test for Bug 809003 */ 30 31 window.didGetLoad = false; 32 window.didGetError = false; 33 34 SimpleTest.waitForExplicitFinish(); 35 SimpleTest.requestFlakyTimeout("untriaged"); 36 37 setTimeout(function() { 38 is(window.didGetLoad, false, "Shouldn't have got load event!"); 39 is(window.didGetError, false, "Shouldn't have got error event!"); 40 SimpleTest.finish(); 41 }, 1000); 42 43 </script> 44 </pre> 45 <div id="testdiv" onload="window.didGetLoad = true;" onerror="window.didGetError = true;"></div> 46 </body> 47 </html>