blob: 17ec7a36a3e6a3f926c01067a7ed098c9c22d3b1 (
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
41
42
43
44
45
|
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>HTML Test: dropzone_attribute_value_case_insensitive_COpy</title>
<link rel='author' title='Intel' href='http://www.intel.com'>
<link rel='help' href='https://html.spec.whatwg.org/multipage/#the-dropzone-attribute'>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<style>
#drop {
border: 2px solid black;
width: 100px;
height: 100px;
padding: 20px;
}
#select {
color: blue;
margin: 20px auto;
}
</style>
</head>
<body>
<div>Select and drag the blue text to rectangular box.</div>
<div id='select' draggable>blue text</div>
<div id='drop' dropzone='COpy string:text/plain'></div>
<div id='log'> </div>
<script>
var drop;
setup(function() {
drop = document.querySelector('#drop');
}, {explicit_done: true, explicit_timeout: true});
on_event(drop, 'drop', function(event) {
test(function() {
assert_equals(event.dataTransfer.dropEffect, 'copy', 'dropzone content attribute value is case insensitive_COpy');
}, 'dropzone content attribute value is case insensitive_COpy');
done();
});
</script>
</body>
</html>
|