OLD | NEW |
1 <?xml version="1.0"?> | 1 <?xml version="1.0"?> |
2 <!-- This a 1-1 copy of pointer-events-image.svg tests with the addition of -web
kit-transform --> | 2 <!-- This a 1-1 copy of pointer-events-image.svg tests with the addition of -web
kit-transform --> |
3 <svg xmlns="http://www.w3.org/2000/svg" | 3 <svg xmlns="http://www.w3.org/2000/svg" |
4 xmlns:xlink="http://www.w3.org/1999/xlink" onload="fillTestContent()"> | 4 xmlns:xlink="http://www.w3.org/1999/xlink" onload="fillTestContent()"> |
5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
6 <![CDATA[ | 6 <![CDATA[ |
7 | 7 |
8 if (window.testRunner) | 8 if (window.testRunner) |
9 testRunner.waitUntilDone(); | 9 testRunner.waitUntilDone(); |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 var img = document.createElementNS(svgNS, 'image'); | 48 var img = document.createElementNS(svgNS, 'image'); |
49 img.setAttributeNS("http://www.w3.org/1999/xlink", 'href', 'resour
ces/red-checker.png'); | 49 img.setAttributeNS("http://www.w3.org/1999/xlink", 'href', 'resour
ces/red-checker.png'); |
50 img.setAttribute('x', xOffset/2); | 50 img.setAttribute('x', xOffset/2); |
51 img.setAttribute('y', yOffset/2); | 51 img.setAttribute('y', yOffset/2); |
52 img.setAttribute('width', 25); | 52 img.setAttribute('width', 25); |
53 img.setAttribute('height', 25); | 53 img.setAttribute('height', 25); |
54 img.setAttribute('visibility', visibleValues[vi]); | 54 img.setAttribute('visibility', visibleValues[vi]); |
55 img.setAttribute('fill', fillValues[fi]); | 55 img.setAttribute('fill', fillValues[fi]); |
56 img.setAttribute('stroke', strokeValues[si]); | 56 img.setAttribute('stroke', strokeValues[si]); |
57 img.setAttribute('pointer-events', pointerEventsValues[pi]); | 57 img.setAttribute('pointer-events', pointerEventsValues[pi]); |
58 img.setAttribute('style', "-webkit-transform: scale(2)"); | 58 img.setAttribute('style', "transform: scale(2)"); |
59 img.setAttribute('onclick', 'clickHit(evt, "' + identString + '")'
); | 59 img.setAttribute('onclick', 'clickHit(evt, "' + identString + '")'
); |
60 | 60 |
61 testContent.appendChild(img); | 61 testContent.appendChild(img); |
62 | 62 |
63 var fillText = document.createElementNS(svgNS, 'text'); | 63 var fillText = document.createElementNS(svgNS, 'text'); |
64 fillText.setAttribute('x', xOffset + 5); | 64 fillText.setAttribute('x', xOffset + 5); |
65 fillText.setAttribute('y', yOffset + 20); | 65 fillText.setAttribute('y', yOffset + 20); |
66 fillText.textContent = "miss"; | 66 fillText.textContent = "miss"; |
67 fillText.setAttribute('id', 'fill-text' + identString); | 67 fillText.setAttribute('id', 'fill-text' + identString); |
68 fillText.setAttribute('pointer-events', 'none'); | 68 fillText.setAttribute('pointer-events', 'none'); |
(...skipping 16 matching lines...) Expand all Loading... |
85 if (window.testRunner) | 85 if (window.testRunner) |
86 testRunner.notifyDone(); | 86 testRunner.notifyDone(); |
87 } | 87 } |
88 ]]> | 88 ]]> |
89 </script> | 89 </script> |
90 | 90 |
91 <text x="110" y="20">Visibility: visible</text> | 91 <text x="110" y="20">Visibility: visible</text> |
92 <text x="340" y="20">Visibility: hidden</text> | 92 <text x="340" y="20">Visibility: hidden</text> |
93 <g id="test-content"/> | 93 <g id="test-content"/> |
94 </svg> | 94 </svg> |
OLD | NEW |