Backed out 5 changesets (bug 1694229) for geckoview failures. CLOSED TREE
[gecko.git] / testing / web-platform / tests / html / editing / dnd / platform / close-drag-005.html
blob1a364113a3933ac391343cb6ab86cf3cde729419
1 <!doctype html>
2 <title>drag &amp; drop - manually closing a window while a drag is in operation</title>
3 <script type="text/javascript">
4 window.onload = function() {
5 document.getElementsByTagName('ul')[0].ondragstart = function(e) {
6 e.dataTransfer.effectAllowed = 'copy';
7 e.dataTransfer.setData('Text', 'dummy text');
8 };
9 };
10 </script>
11 <ul draggable='true'>
12 <li>Drag this text downwards, and do not release the drag.</li>
13 <li>Use a keyboard shortcut (eg. Alt+F4 on Windows) to close the window.</li>
14 <li>The browser may optionally cancel the drag. The browser may optionally close the window. Fail if the drag placeholder gets stuck. Fail if the browser crashes.</li>
15 </ul>
16 <noscript><p>Enable JavaScript and reload</p></noscript>