diff options
Diffstat (limited to 'testing/web-platform/tests/html/editing/dnd/datastore/012.xhtml')
-rw-r--r-- | testing/web-platform/tests/html/editing/dnd/datastore/012.xhtml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/editing/dnd/datastore/012.xhtml b/testing/web-platform/tests/html/editing/dnd/datastore/012.xhtml new file mode 100644 index 000000000..b80ed24fa --- /dev/null +++ b/testing/web-platform/tests/html/editing/dnd/datastore/012.xhtml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>Drag and drop datastore: dragging element to object</title> +<style type="text/css"> +div + {height:100px; + width:100px; + padding:20px; + background-color:navy;} +object + {width:500px; + height:500px; + border:solid medium navy;} +</style> +<script type="application/ecmascript"> +<![CDATA[ +var dataTypes = ['text/plain', 'text/uri-list', 'application/xml', 'application/xhtml+xml', 'application/mathml+xml', 'image/svg+xml', 'text/html', 'text/x-example'], +data = ['PASS', 'data:text/plain,1', '<result>PASS</result>', '<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Data store item</title></head><body><p>PASS</p></body></html>', '<math xmlns="http://www.w3.org/1998/Math/MathML"><mn>1</mn></math>', '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100px" height="50px" viewBox="0 0 100 50"><text x="0" y="40" font-size="40" fill="green">PASS</text></svg>', '<!DOCTYPE html><html><head><title>Data store item</title></head><body><p>PASS</p></body></html>', 'PASS']; +function start(event) + {event.dataTransfer.effectAllowed = 'copy'; + for(var i = 0; i != dataTypes.length; i++) + {event.dataTransfer.setData(dataTypes[i], data[i]);} + } +]]> +</script> +</head> +<body> +<div draggable="true" ondragstart="start(event)"/> +<p>Drag box above to the frame below.</p> +<object type="application/xhtml+xml" data="helper-drop-box-here.xhtml">XHTML document</object> +</body> +</html>
\ No newline at end of file |