blob: 1eb5c9fa3558ecec38047428aaac81df57b84b6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<!DOCTYPE html>
<body>
<script>
if (window.testRunner)
testRunner.dumpAsText();
document.addEventListener("dragover", function () {
try {
eventSender.beginDragWithFiles(["resources/empty.html"]);
console.log("FAIL - nested beginDragWithFiles() expected to throw.");
} catch (e) {;}
});
eventSender.beginDragWithFiles(["resources/empty.html"]);
eventSender.mouseMoveTo(10, 10);
eventSender.mouseUp();
</script>
<script src="../../resources/js-test.js"></script>
<script>
description('Test that nested use of eventSender.beginDragWithFiles() from within |dragover| is handled without crashing.');
</script>
</body>
|