OLD | NEW |
1 <svg version="1.1" xmlns="http://www.w3.org/2000/svg"> | 1 <svg version="1.1" xmlns="http://www.w3.org/2000/svg"> |
2 <script> | 2 <script> |
3 function runTest() { | 3 function runTest() { |
4 g.offsetTop; | 4 g.clientTop; |
5 g.removeChild(g.firstChild); | 5 g.removeChild(g.firstChild); |
6 if (g.firstChild) | 6 if (g.firstChild) |
7 setTimeout(runTest(),0); | 7 setTimeout(runTest(),0); |
8 else | 8 else |
9 location.reload(); | 9 location.reload(); |
10 } | 10 } |
11 | 11 |
12 window.onload = function() { | 12 window.onload = function() { |
13 if (window.testRunner) { | 13 if (window.testRunner) { |
14 testRunner.dumpAsText(); | 14 testRunner.dumpAsText(); |
15 testRunner.waitUntilDone(); | 15 testRunner.waitUntilDone(); |
16 } | 16 } |
17 | 17 |
18 g = document.getElementById("g1"); | 18 g = document.getElementById("g1"); |
19 if (location.hash != "#2") { | 19 if (location.hash != "#2") { |
20 if (location.hash) | 20 if (location.hash) |
21 location.hash = "#" + (parseInt(location.hash.slice(1)) + 1).toStrin
g(); | 21 location.hash = "#" + (parseInt(location.hash.slice(1)) + 1).toStrin
g(); |
22 else | 22 else |
23 location.hash = "#1"; | 23 location.hash = "#1"; |
24 document.getElementById("g2").style.setProperty('cursor', 'url(#c2)'); | 24 document.getElementById("g2").style.setProperty('cursor', 'url(#c2)'); |
25 setTimeout(runTest(),0); | 25 setTimeout(runTest(),0); |
26 } else { | 26 } else { |
27 document.getElementById("t1").appendChild(document.createTextNode("PASS:
Successfully changed cursors.")); | 27 document.getElementById("t1").appendChild(document.createTextNode("PASS:
Successfully changed cursors.")); |
28 if (window.testRunner) | 28 if (window.testRunner) |
29 testRunner.notifyDone(); | 29 testRunner.notifyDone(); |
30 } | 30 } |
31 } | 31 } |
32 </script> | 32 </script> |
33 <g id="g1"> | 33 <g id="g1"> |
34 <cursor id="c1"></cursor> | 34 <cursor id="c1"></cursor> |
35 <g cursor="url(#c1)" id="g2"></g> | 35 <g cursor="url(#c1)" id="g2"></g> |
36 <cursor id="c2"></cursor> | 36 <cursor id="c2"></cursor> |
37 <text id="t1" x="20" y="20"></text> | 37 <text id="t1" x="20" y="20"></text> |
38 </g> | 38 </g> |
39 </svg> | 39 </svg> |
OLD | NEW |