| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>Drag and drop with right click and release over Flash</title> |
| <style type="text/css"> |
| div { |
| width: 100px; |
| height: 100px; |
| background: fuchsia; |
| } |
| object { |
| width: 400px; |
| height: 400px; |
| border: 5px solid black; |
| } |
| </style> |
| <script type="text/javascript"> |
| window.onload = function () { |
| document.getElementsByTagName('div')[0].ondragstart = function (e) { |
| e.dataTransfer.effectAllowed = 'copy'; |
| e.dataTransfer.setData('text','dummy text'); |
| }; |
| }; |
| </script> |
| </head> |
| <body> |
| <noscript><p>Enable JavaScript and reload</p></noscript> |
| <ol> |
| <li>Drag the pink square over the blue square.</li> |
| <li>Without releasing the drag, click the right mouse button, then release the drag.</li> |
| <li>Fail if the drag placeholder gets stuck over the blue square.</li> |
| <li>Move the mouse outside the black square. The mouse cursor should be the default mouse cursor.</li> |
| </ol> |
| <div draggable="true"></div> |
| <script type="text/javascript"> |
| var plugincode = '<object data="dragndrop.swf" type="application/x-shockwave-flash">Flash plugin is required for this test.</object>'; |
| </script> |
| <script type="text/javascript" src="click-to-activate.js"></script> |
| </body> |
| </html> |