diff options
Diffstat (limited to 'testing/web-platform/tests/html/editing/dnd/file/prompt/009.html')
-rw-r--r-- | testing/web-platform/tests/html/editing/dnd/file/prompt/009.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/editing/dnd/file/prompt/009.html b/testing/web-platform/tests/html/editing/dnd/file/prompt/009.html new file mode 100644 index 000000000..6fa18b975 --- /dev/null +++ b/testing/web-platform/tests/html/editing/dnd/file/prompt/009.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<title>drag & drop - file drop prompt for javascript URL without inherited origin</title> +<script> +window.onload = function() { + var url = "javascript:'"+escape( +'<!DOCTYPE html>\ +<title>drag & drop - file drop prompt for data URI with inherited origin<\/title>\ +<style>\ + body > div {\ + height: 200px;\ + width: 200px;\ + background-color: orange;\ + }\ +<\/style>\ +<script>\ +window.onload = function() {\ + var orange = document.getElementsByTagName("div")[0];\ + orange.ondragover = orange.ondragenter = orange.ondrop = function(e) {\ + e.preventDefault();\ + };\ +};\ +<\/script>\ +<div><\/div>\ +<p>Drag a file from your desktop onto the orange square. A prompt should appear, either showing the server name as unknown, or otherwise identifying this URL as the target of the upload (it may alternatively identify the security context about:blank).<\/p>' + +"'"); + document.getElementsByTagName('p')[1].textContent = url; +}; +</script> + +<p>Load the following URL in a new tab (copy & paste it into the address bar):</p> +<p></p> +<noscript><p>Enable JavaScript and reload</p></noscript>
\ No newline at end of file |