diff options
Diffstat (limited to 'testing/web-platform/tests/html/editing/dnd/cross-document/002.html')
-rw-r--r-- | testing/web-platform/tests/html/editing/dnd/cross-document/002.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/editing/dnd/cross-document/002.html b/testing/web-platform/tests/html/editing/dnd/cross-document/002.html new file mode 100644 index 000000000..7b48d3e16 --- /dev/null +++ b/testing/web-platform/tests/html/editing/dnd/cross-document/002.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<title>drag & drop - cross-domain cross-document data drop</title> +<script src="../resources/crossorigin.js"></script> +<style> + body > div { + height: 200px; + width: 200px; + background-color: orange; + } +</style> + +<script> +window.onload = function() { + var orange = document.getElementsByTagName('div')[0]; + orange.ondragstart = function(e) { + e.dataTransfer.effectAllowed = 'copy'; + e.dataTransfer.setData('text', 'dummy text'); + }; +}; +</script> + +<div draggable="true"></div> +<p><iframe height="300" width="500"></iframe></p> +<script>document.getElementsByTagName("iframe")[0].src = crossOriginUrl("www", "001-1.html"); +<noscript><p>Enable JavaScript and reload</p></noscript> |