summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/http/tests/misc/drag-over-iframe-invalid-source-crash.html
blob: be0bbbd781067ae95a7cc01f6841f24ac34675aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<head>
<script>
window.onload = function () {
    if (window.testRunner)
        testRunner.dumpAsText(); 

    var abe = document.getElementById("abe");
    var dragTarget = document.getElementById("dragTarget");

    eventSender.mouseMoveTo(abe.offsetLeft + 50, abe.offsetTop + 50);
    eventSender.mouseDown();
    eventSender.leapForward(500);
    eventSender.mouseMoveTo(dragTarget.offsetLeft + 10, dragTarget.offsetTop + 10);
    eventSender.mouseUp();
}
</script>
</head>

<p>This page tests that we don't crash if we drag something to an iframe that has an invalid source.</p>
<img id="abe" src="http://127.0.0.1:8000/security/resources/abe.png">
<div>SUCCESS - didn't crash</div>
<iframe id="dragTarget" src="file:"></iframe>