| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <style> | |
| 4 #el1 { | |
| 5 border-left-style: double; | |
| 6 } | |
| 7 #el3 { | |
| 8 content: counter(c); | |
| 9 } | |
| 10 </style> | |
| 11 <script> | |
| 12 if (window.testRunner) { | |
| 13 testRunner.dumpAsText(); | |
| 14 testRunner.waitUntilDone(); | |
| 15 } | |
| 16 | |
| 17 function executeTest() { | |
| 18 el0=document.createElementNS('http://www.w3.org/2000/svg', 'svg') | |
| 19 el0.setAttribute('marker-mid', 'url(#el4)') | |
| 20 document.body.appendChild(el0) | |
| 21 el1=document.createElementNS('http://www.w3.org/2000/svg', 'svg') | |
| 22 el1.setAttribute('id','el1') | |
| 23 document.body.appendChild(el1) | |
| 24 el2=document.createElementNS('http://www.w3.org/2000/svg', 'path') | |
| 25 el2.setAttribute('d', 'M 0 0 s 0 0 0 0 C 0 0 0 0 0 400 c 0 0 0 400 400 0') | |
| 26 el0.appendChild(el2) | |
| 27 el3=document.createElementNS('http://www.w3.org/2000/svg', 'svg') | |
| 28 el3.setAttribute('id','el3') | |
| 29 el1.appendChild(el3) | |
| 30 el4=document.createElementNS('http://www.w3.org/2000/svg', 'marker') | |
| 31 el4.setAttribute('id','el4') | |
| 32 el3.appendChild(el4) | |
| 33 scrollTo(0, 60) | |
| 34 document.body.style.zoom=0.1 | |
| 35 document.designMode='on' | |
| 36 document.execCommand('selectall') | |
| 37 document.designMode='off' | |
| 38 } | |
| 39 | |
| 40 window.onload = function(){ | |
| 41 if (location.hash != "#2") { | |
| 42 if (location.hash) | |
| 43 location.hash = "#" + (parseInt(location.hash.slice(1)) + 1).toStrin
g(); | |
| 44 else | |
| 45 location.hash = "#1"; | |
| 46 executeTest(); | |
| 47 setTimeout(function(){ location.reload() },0); | |
| 48 } else { | |
| 49 document.getElementById("div1").textContent = "PASS: WebKit did not cras
h."; | |
| 50 if (window.testRunner) | |
| 51 testRunner.notifyDone(); | |
| 52 } | |
| 53 } | |
| 54 </script> | |
| 55 </head> | |
| 56 <body> | |
| 57 <div id="div1"></div> | |
| 58 </body> | |
| 59 </html> | |
| OLD | NEW |