diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/html/editing/dnd/platform/close-drag-004-manual.html | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/html/editing/dnd/platform/close-drag-004-manual.html')
-rw-r--r-- | testing/web-platform/tests/html/editing/dnd/platform/close-drag-004-manual.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/editing/dnd/platform/close-drag-004-manual.html b/testing/web-platform/tests/html/editing/dnd/platform/close-drag-004-manual.html new file mode 100644 index 0000000000..c93f5a3508 --- /dev/null +++ b/testing/web-platform/tests/html/editing/dnd/platform/close-drag-004-manual.html @@ -0,0 +1,22 @@ +<!doctype html> +<title>drag & drop - manually closing a tab while a drag is in operation</title> +<style type="text/css"> +p.gone, ul { display: none; } +p.gone + ul { display: block; } +</style> +<script type="text/javascript"> +window.onload = function() { + if( location.href.match(/#popup$/) ) { document.getElementsByTagName('p')[0].className = 'gone'; } + document.getElementsByTagName('ul')[0].ondragstart = function(e) { + e.dataTransfer.effectAllowed = 'copy'; + e.dataTransfer.setData('Text', 'dummy text'); + }; +}; +</script> +<p><a href="#popup" target="_blank">Open this page in a new tab</a>.</p> +<ul draggable='true'> + <li>Drag this text downwards, and do not release the drag.</li> + <li>Use a keyboard shortcut (eg. Ctrl+W on Windows) to close the tab.</li> + <li>The browser may optionally cancel the drag. The browser may optionally close the tab. Fail if the drag placeholder gets stuck. Fail if the browser crashes.</li> +</ul> +<noscript><p>Enable JavaScript and reload</p></noscript> |