OLD | NEW |
1 <svg onload="runTest()" xmlns="http://www.w3.org/2000/svg" id="askedForIntersect
ion"> | 1 <svg onload="runTest()" xmlns="http://www.w3.org/2000/svg" id="askedForIntersect
ion"> |
2 <style> | 2 <style> |
3 .c1:nth-last-of-type(1n) { } | 3 .c1:nth-last-of-type(1n) { } |
4 </style> | 4 </style> |
5 <script> | 5 <script> |
6 if (window.layoutTestController) | 6 if (window.layoutTestController) |
7 layoutTestController.dumpAsText(); | 7 layoutTestController.dumpAsText(); |
8 | 8 |
9 function runTest() | 9 function runTest() |
10 { | 10 { |
11 docElement = document.documentElement; | 11 docElement = document.documentElement; |
12 textarea = document.createElementNS("http://www.w3.org/1999/xhtml", "textare
a"); | 12 textarea = document.createElementNS("http://www.w3.org/1999/xhtml", "textare
a"); |
13 textarea.setAttribute("class", "c1"); | 13 textarea.setAttribute("class", "c1"); |
14 docElement.appendChild(textarea); | 14 docElement.appendChild(textarea); |
15 object = document.createElementNS("http://www.w3.org/1999/xhtml", "object"); | 15 object = document.createElementNS("http://www.w3.org/1999/xhtml", "object"); |
16 object.setAttribute("usemap", "#DivLogo-map"); | 16 object.setAttribute("usemap", "#DivLogo-map"); |
17 iframe = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe"); | 17 iframe = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe"); |
18 docElement.appendChild(iframe); | 18 docElement.appendChild(iframe); |
19 var svg = document.getElementById('askedForIntersection'); | 19 var svg = document.getElementById('askedForIntersection'); |
20 var rect = svg.createSVGRect(); | 20 var rect = svg.createSVGRect(); |
21 svg.getIntersectionList(rect, svg); | 21 svg.getIntersectionList(rect, svg); |
22 } | 22 } |
23 </script> | 23 </script> |
24 <rect style='content: counters(c, ".", decimal)'></rect> | 24 <rect style='content: counters(c, ".", decimal)'></rect> |
25 <text x="10" y="50">PASS. WebKit didn't crash.</text> | 25 <text x="10" y="50">PASS. WebKit didn't crash.</text> |
26 </svg> | 26 </svg> |
OLD | NEW |