009-manual.html (1149B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>* should not prevent dropping on external applications</title> 5 <style type="text/css"> 6 div { height: 100px; width: 100px; background: orange; } 7 </style> 8 <script type="text/javascript"> 9 window.onload = function () { 10 document.getElementsByTagName("div")[0].ondragstart = function (e) { 11 e.dataTransfer.effectAllowed = "copy"; 12 e.dataTransfer.setData("text","PASS"); 13 e.dataTransfer.allowTargetOrigin("*"); 14 }; 15 }; 16 </script> 17 </head> 18 <body> 19 <p>This test is only relevant on platforms where it is possible to switch applications in mid-drag (eg. alt+tab, dragging over taskbar buttons, dragging between restored windows).</p> 20 <p>This testcase requires an external application that accepts dropping of text from other applications - eg. Wordpad (write.exe) on Windows. Ensure that the external application is open.</p> 21 <p>Drag the orange block to the other application and release it. Pass if the word "PASS" appears in the other application.</p> 22 <noscript><p>Enable JavaScript and reload</p></noscript> 23 <div draggable="true"></div> 24 </body> 25 </html>