OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html > | 2 <html > |
3 <script> | 3 <script> |
4 function body_start() { | 4 function body_start() { |
5 var q = document.getElementById('root').contentDocument; | 5 var q = document.getElementById('root').contentDocument; |
6 q.getElementsByTagName('svg')[0].replaceChild(q.getElementById('refI
mage'), q.getElementById('d')); | 6 q.getElementsByTagName('svg')[0].replaceChild(q.getElementById('refI
mage'), q.getElementById('d')); |
7 q.getElementsByTagName('use')[0].setAttribute('xlink:href', '#testNa
me'); | 7 q.getElementsByTagName('use')[0].setAttribute('xlink:href', '#testNa
me'); |
8 if (window.layoutTestController) { | 8 if (window.layoutTestController) { |
9 layoutTestController.dumpAsText(); | 9 layoutTestController.dumpAsText(); |
10 layoutTestController.waitUntilDone(); | 10 layoutTestController.waitUntilDone(); |
11 } | 11 } |
12 setTimeout(function () { | 12 setTimeout(function () { |
13 document.body.innerHTML = "PASS, if DumpRenderTree doesn't c
rash, and no assertion in a Debug build."; | 13 document.body.innerHTML = "PASS, if DumpRenderTree doesn't c
rash, and no assertion in a Debug build."; |
14 if (window.layoutTestController) | 14 if (window.layoutTestController) |
15 layoutTestController.notifyDone(); | 15 layoutTestController.notifyDone(); |
16 }, 0); | 16 }, 0); |
17 } | 17 } |
18 </script> | 18 </script> |
19 <object data="resources/SVGStyledElement-pendingResource-crash.svg" id="root
" onload="body_start();" type="image/svg+xml"/></object> | 19 <object data="resources/SVGStyledElement-pendingResource-crash.svg" id="root
" onload="body_start();" type="image/svg+xml"/></object> |
20 </html> | 20 </html> |
OLD | NEW |