Source code

Revision control

Other Tools

<!DOCTYPE html>
<meta charset='utf-8'>
<title>HTML Test: dropzone_attribute_data_item_kind_file</title>
<link rel='author' title='Intel' href=''>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
#drop {
border: 2px solid black;
width: 160px;
height: 160px;
padding: 20px;
color: white;
img {
margin: 20px auto;
<img src='/images/blue.png' alt='blue image' />
<div>Save the blue image (image/png) above to your desktop, drag the image from desktop to the blue text to rectangular box in browser.</div>
<div id='drop' dropzone='copy file:image/png'></div>
<div id='log'> </div>
var drop;
setup(function() {
drop = document.querySelector('#drop');
}, {explicit_done: true, explicit_timeout: true});
on_event(drop, 'drop', function(event) {
var item = event.dataTransfer.items[0];
test(function() {
assert_equals(item.kind, 'file', 'data item kind is file');
}, 'data item kind is file');