Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / svg / custom / js-update-path-changes.svg
blobbaf2645e6c7ff5f9cc20f4336430807c1cbff647
1 <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
3 <svg width="450" height="450" xmlns="http://www.w3.org/2000/svg">
5 <script>
6 if (window.layoutTestController)
7 layoutTestController.waitUntilDone();
9 window.setTimeout("clickNow()", 0);
11 function clickNow() {
12 if (window.eventSender) {
13 eventSender.mouseMoveTo(190, 45);
14 eventSender.mouseDown();
15 eventSender.mouseUp();
16 eventSender.mouseDown();
17 eventSender.mouseUp();
20 if (window.layoutTestController) {
21 layoutTestController.notifyDone();
25 function mouseHandler(evt)
27 var path = document.getElementById("path");
28 var p = path.pathSegList.getItem(0);
29 p.x = p.x - 10;
31 </script>
33 <path id="path" onclick="mouseHandler(evt)" fill="#FF0000" stroke="#00C000" d="M 250 130 C 185 130 150 80 150 80 S 115 25 50 25 m 0 105 c 65 0 100 -50 100 -50 s 35 -55 100 -55"/>
35 </svg>