diff options
Diffstat (limited to 'testing/web-platform/tests/html/editing/dnd/platform/close-drag-005-manual.html')
-rw-r--r-- | testing/web-platform/tests/html/editing/dnd/platform/close-drag-005-manual.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/editing/dnd/platform/close-drag-005-manual.html b/testing/web-platform/tests/html/editing/dnd/platform/close-drag-005-manual.html new file mode 100644 index 0000000000..1a364113a3 --- /dev/null +++ b/testing/web-platform/tests/html/editing/dnd/platform/close-drag-005-manual.html @@ -0,0 +1,16 @@ +<!doctype html> +<title>drag & drop - manually closing a window while a drag is in operation</title> +<script type="text/javascript"> +window.onload = function() { + document.getElementsByTagName('ul')[0].ondragstart = function(e) { + e.dataTransfer.effectAllowed = 'copy'; + e.dataTransfer.setData('Text', 'dummy text'); + }; +}; +</script> +<ul draggable='true'> + <li>Drag this text downwards, and do not release the drag.</li> + <li>Use a keyboard shortcut (eg. Alt+F4 on Windows) to close the window.</li> + <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> +</ul> +<noscript><p>Enable JavaScript and reload</p></noscript> |