Home | History | Annotate | Download | only in ManualTests
      1 <?xml version="1.0"?>
      2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
      3   <title>This string should not show up as a tooltip</title>
      4   <desc>
      5   This test verifies that tooltips are properly rendered for SVG content in a variety of
      6   scenarios.  Hovering over every shape should result in a tooltip of "PASS".
      7   </desc>
      8   <defs>
      9     <ellipse id="e1" cx="100" cy="200" rx="50" ry="30" fill="blue">
     10       <title>PASS</title>
     11     </ellipse>
     12     <ellipse id="e2" cx="250" cy="200" rx="50" ry="30" fill="blue">
     13       <title>FAIL</title>
     14     </ellipse>
     15     <symbol id="e3">
     16       <ellipse cx="100" cy="300" rx="50" ry="30" fill="blue">
     17         <title>PASS</title>
     18       </ellipse>
     19     </symbol>
     20     <symbol id="e4">
     21       <title>FAIL</title>
     22       <ellipse cx="250" cy="300" rx="50" ry="30" fill="blue">
     23       </ellipse>
     24     </symbol>
     25   </defs>
     26 
     27   <text y="15" x="0">When hovered, all shapes should show a "PASS" tooltip.  Anything else is a failure.</text>
     28   
     29   <ellipse cx="100" cy="100" rx="50" ry="30" fill="blue">
     30     <title>PASS</title>
     31   </ellipse>
     32 
     33   <g>
     34     <title>PASS</title>
     35     <ellipse cx="250" cy="100" rx="50" ry="30" fill="blue"/>
     36   </g>
     37 
     38   <a xlink:title="PASS" xlink:href="#">
     39     <title>FAIL</title>
     40     <ellipse id="e4" cx="400" cy="100" rx="50" ry="30" fill="blue"/>
     41   </a>
     42   
     43   <use xlink:href="#e1"/>
     44   
     45   <use xlink:href="#e2">
     46     <title>PASS</title>
     47   </use>
     48 
     49   <g>
     50     <title>FAIL</title>
     51     <ellipse id="e8" cx="400" cy="200" rx="50" ry="30" fill="blue">
     52       <title>PASS</title>
     53     </ellipse>
     54   </g>
     55   
     56   <use xlink:href="#e3"/>
     57   <use xlink:href="#e4">
     58     <title>PASS</title>
     59   </use>
     60   
     61   
     62 </svg>
     63