OLD | NEW |
| (Empty) |
1 <p>This tests that the onload handler for an iframe is delayed by a pending SVGF
ont load.</p> | |
2 <pre id="console"></pre> | |
3 <script> | |
4 if (window.testRunner) | |
5 testRunner.dumpAsText(); | |
6 | |
7 function log(msg) | |
8 { | |
9 document.getElementById('console').appendChild(document.createTextNode(m
sg + "\n")); | |
10 } | |
11 | |
12 var onloadFired = false; | |
13 | |
14 iframe = document.createElement('iframe'); | |
15 iframe.onload = function() { | |
16 onloadFired = true; | |
17 }; | |
18 iframe.src = "resources/SVGFont-delayed-loader.svg"; | |
19 document.body.appendChild(iframe); | |
20 | |
21 function contentLoaded() | |
22 { | |
23 if (onloadFired) | |
24 log("FAIL: the onload event fired before the SVGFont load finished")
; | |
25 else | |
26 log("PASS: the onload event did not fire."); | |
27 | |
28 // Stop the infinite load. | |
29 iframe.contentWindow.stop(); | |
30 } | |
31 </script> | |
OLD | NEW |