Outsets for referenced SVG filters are always zero
[WebKit-https.git] / LayoutTests / fast / events / setDragImage-in-document-element-crash.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <style>
5     pre {
6         width: 0;
7         height: 0;
8     }
9
10     img {
11         position: absolute;
12         top: 100px;
13         left: 100px;
14     }
15     </style>
16     <script>
17     if (!window.testRunner)
18         document.writeln("To run this test manually, attempt to drag Abe.");
19
20     function startTest() {
21         document.getElementById("abe").addEventListener("dragstart", startDrag, false);
22         if (!window.testRunner)
23             return;
24
25         testRunner.dumpAsText();
26
27         eventSender.mouseMoveTo(110, 110);
28         eventSender.mouseDown();
29         eventSender.leapForward(200);
30         eventSender.mouseMoveTo(0, 0);
31         eventSender.mouseUp();
32
33         document.body.innerHTML = "PASS if no crash."
34     }
35
36     function startDrag(event) {
37         event.dataTransfer.setData('text/plain', 'Data to Drag');
38         event.dataTransfer.setDragImage(document.getElementById("pre"), 0, 0);
39     }
40     </script>
41     <body onload="startTest()">
42         <img id="abe" src="resources/abe.png" draggable="true">
43         <pre id="pre"></pre>
44     </body>
45 </html>