|
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 type="application/javascript" 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 |
|
36 setTimeout(function() { |
|
37 is(window.didGetLoad, false, "Shouldn't have got load event!"); |
|
38 is(window.didGetError, false, "Shouldn't have got error event!"); |
|
39 SimpleTest.finish(); |
|
40 }, 1000); |
|
41 |
|
42 </script> |
|
43 </pre> |
|
44 <div id="testdiv" onload="window.didGetLoad = true;" onerror="window.didGetError = true;"></div> |
|
45 </body> |
|
46 </html> |