blob: dcc667a311533c3076a8a6138b913ae326d967f1 [file] [log] [blame]
<!DOCTYPE html>
<link rel="stylesheet" href="resources/link-dragging-common.css" />
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
Please attempt to drag the "Drag Me" text out of the browser and release the drag.
<a class="dragged box" id="target" draggable="true" href="">
Drag Me
if (window.eventSender) {
test( () => {
const draggable_link = document.querySelector("#target");
const clientRect = draggable_link.getBoundingClientRect();
const centerX = (clientRect.left + clientRect.right) / 2;
const centerY = ( + clientRect.bottom) / 2;
eventSender.mouseMoveTo(centerX, centerY);
eventSender.mouseMoveTo(centerX+200, centerY+200);
}, "The renderer should not crash");