Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / svg / custom / circle-move-invalidation.svg
blob7c186ef45a79758fd9010591aaefd51301b8feec
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 <title>Bug 22660</title>
4 <script>
5 function runTest() {
6 if (window.layoutTestController)
7 layoutTestController.waitUntilDone();
8 window.setTimeout("clickNow()", 0);
10 function clickNow() {
11 if (window.eventSender) {
12 eventSender.mouseMoveTo(300, 300);
13 eventSender.mouseDown();
14 eventSender.mouseUp();
17 function moveTo(cx, cy) {
18 var circle = document.getElementById('c1');
19 circle.setAttribute('cx', cx);
20 circle.setAttribute('cy', cy);
21 if (window.layoutTestController) {
22 layoutTestController.notifyDone();
25 document.onmousedown = function(e) {
26 moveTo(e.clientX, e.clientY);
28 </script>
29 </head>
30 <body onload="runTest()">
31 <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 400 400" style="width:300px; height:300px; border: 1px solid black;">
32 <circle id="c1" cx="100" cy="100" r="50" style="fill:red" />
33 </svg>
34 <br/>
35 <p/>
36 <p/>
37 The circle should not be (partially or fully)visible at the original position after moving it.
38 </body>
39 </html>