diff options
Diffstat (limited to 'testing/web-platform/tests/html/editing/dnd/file/prompt/003.html')
-rw-r--r-- | testing/web-platform/tests/html/editing/dnd/file/prompt/003.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/editing/dnd/file/prompt/003.html b/testing/web-platform/tests/html/editing/dnd/file/prompt/003.html new file mode 100644 index 000000000..4b7a98aae --- /dev/null +++ b/testing/web-platform/tests/html/editing/dnd/file/prompt/003.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<title>drag & drop - file drop prompt for ftp server name</title> +<style> + body > div { + height: 200px; + width: 200px; + background-color: orange; + } +</style> + +<script> +window.onload = function() { + if( location.protocol != 'ftp:' ) { + document.getElementsByTagName('p')[0].innerHTML = 'This test should be loaded over ftp.'; + return; + } + var orange = document.getElementsByTagName('div')[0]; + orange.ondragover = orange.ondragenter = orange.ondrop = function(e) { + e.preventDefault(); + }; + document.getElementsByTagName('span')[0].innerHTML = location.hostname; +}; +</script> + +<div></div> + +<p>Drag a file from your desktop onto the orange square. A prompt should appear, correctly identifying the server name as <span></span></p> +<noscript><p>Enable JavaScript and reload</p></noscript> |