diff options
Diffstat (limited to 'testing/web-platform/tests/html/editing/dnd/platform/drag-to-title.html')
-rw-r--r-- | testing/web-platform/tests/html/editing/dnd/platform/drag-to-title.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/editing/dnd/platform/drag-to-title.html b/testing/web-platform/tests/html/editing/dnd/platform/drag-to-title.html new file mode 100644 index 000000000..b7fe31c13 --- /dev/null +++ b/testing/web-platform/tests/html/editing/dnd/platform/drag-to-title.html @@ -0,0 +1,16 @@ +<!doctype html> +<title>Dropping onto the title bar and UI</title> +<script type="text/javascript"> +window.onload = function () { + document.getElementsByTagName('ul')[0].ondragstart = function () { + e.dataTransfer.effectAllowed = 'copy'; + e.dataTransfer.setData('text','c'); + }; +}; +</script> +<ul draggable="true"> + <li>Drag this text upwards to the browser window's title bar.</li> + <li>Release the drag. Fail if the drag placeholder does not disappear.</li> + <li>Start dragging again over a blank part of the page (below the text). Fail if the placeholder starts following the mouse again.</li> + <li>Release the drag over the browser's UI (e.g. the address bar). Fail if the browser crashes.</li> +</ul>
\ No newline at end of file |