blob: 8a5753b0cb9d3627ab6b6c3d7466a16dc17f6abf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<!DOCTYPE html>
<html>
<head>
<title>Drag and drop with middle click and release over Flash</title>
<style type="text/css">
div {
width: 100px;
height: 100px;
background: fuchsia;
}
object {
width: 400px;
height: 400px;
border: 5px solid black;
}
</style>
<script type="text/javascript">
window.onload = function () {
document.getElementsByTagName('div')[0].ondragstart = function (e) {
e.dataTransfer.effectAllowed = 'copy';
e.dataTransfer.setData('text','dummy text');
};
};
</script>
</head>
<body>
<noscript><p>Enable JavaScript and reload</p></noscript>
<ol>
<li>Drag the pink square over the blue square.</li>
<li>Without releasing the drag, click the middle mouse button, then release the drag.</li>
<li>Fail if the drag placeholder gets stuck over the blue square.</li>
<li>Move the mouse outside the black square. The mouse cursor should be the default mouse cursor.</li>
</ol>
<div draggable="true"></div>
<script type="text/javascript">
var plugincode = '<object data="dragndrop.swf" type="application/x-shockwave-flash">Flash plugin is required for this test.</object>';
</script>
<script type="text/javascript" src="click-to-activate.js"></script>
</body>
</html>
|