| <!DOCTYPE HTML> |
| <svg width="100" height="100" style="display: none;"> |
| <rect id="greenSquare" width="0" height="0" fill="green"> |
| <title>FAIL: This text should not appear as a tooltip.</title> |
| </rect> |
| </svg> |
| |
| <template id="template"> |
| <svg width="100" height="100"> |
| <rect id="greenSquare" width="100" height="100" fill="green"> |
| <title>FAIL: This text should not appear as a tooltip.</title> |
| </rect> |
| <use xlink:href="#greenSquare"> |
| <title>PASS: This text should appear as a tooltip.</title> |
| </use> |
| </svg> |
| </template> |
| |
| <script> |
| document.body.createShadowRoot().appendChild(template.content.cloneNode(true)); |
| |
| onload = function() { |
| if (window.eventSender) { |
| eventSender.dragMode = false; |
| eventSender.mouseMoveTo(75, 75); |
| document.write(testRunner.tooltipText); |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| } |
| } |
| </script> |
| |
| FAIL: Test did not run. |