Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / text-use-click-crash.xhtml
blob9313144e2f4ed2a382313dd13c30b4024c1173ac
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <body>
3 <svg viewBox="0 0 480 360" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">
4 <text font-size="58em" id="target">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</text>
5 <use xlink:href="#target"></use>
6 </svg>
7 <script><![CDATA[
8 if (window.testRunner) {
9 testRunner.waitUntilDone();
10 testRunner.dumpAsText();
13 function keyDownMouseClick(x1, y1, x2, y2)
15 if (!window.eventSender)
16 return;
17 eventSender.mouseMoveTo(x1, y1);
18 eventSender.mouseDown();
19 eventSender.mouseMoveTo(x2, y2);
20 eventSender.mouseUp();
23 target = document.getElementById("target");
24 keyDownMouseClick(266, 322, 0, 0);
25 target.setAttribute("requiredFeatures", "unknown_feature");
26 keyDownMouseClick(226, 322, 0, 0);
28 document.body.innerHTML = "PASS";
29 testRunner.notifyDone();
31 ]]></script>
32 </body>
33 </html>