6 if (!window
.testRunner
)
9 window
.testRunner
.dumpAsText();
11 eventSender
.beginDragWithFiles(['resources/file-for-drop-with-file-paths.html']);
12 eventSender
.mouseMoveTo(10, 10);
13 eventSender
.mouseUp();
16 document
.body
.addEventListener('dragenter',
20 document
.body
.addEventListener('dragover',
24 document
.body
.addEventListener('drop',
26 data
= e
.dataTransfer
.getData('text/uri-list');
28 document
.body
.innerHTML
+= '<p>Dropped file: ' + data
+ '</p>';
29 document
.body
.innerHTML
+= 'Dropped types: ' + e
.dataTransfer
.types
;
31 document
.body
.innerHTML
= 'PASS';
35 window
.onload
= runTest
;
37 <p>Drop files anywhere on this page. The page will try to intercept the drop--it should succeed but not be able to use dataTransfer.getData
</p>