Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / use-events-crash.svg
blob311f591340232a7219bdbdbe48d41f99ae4120f9
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
4 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="tiny" id="svg-root" width="480" height="360" viewBox="0 0 480 360" onload="test()">
5 <script>
6 function test()
8 if (window.eventSender) {
9 eventSender.mouseMoveTo(370, 45);
10 eventSender.contextClick();
14 </script>
16 <g id="test-body-content">
17 <defs>
18 <g fill="red" stroke="yellow" stroke-width="3">
19 <rect id="usedRect" width="40" height="40"/>
20 </g>
21 </defs>
22 <g>
23 <g id="labels" transform="translate(330, 40)" font-size="12" text-anchor="end">
24 <text>Right-clicking on green box using a debug build</text>
25 </g>
26 <g id="labels" transform="translate(330, 54)" font-size="12" text-anchor="end">
27 <text>should not cause an assert (Bugzilla Bug 12580)</text>
28 </g>
29 </g>
30 <g transform="translate(350, 25)">
31 <use xlink:href="#usedRect" fill="#0F0"/>
32 </g>
33 </g>
35 </svg>