<!DOCTYPE html>
<script>
'use strict';
if (window.testRunner) {
testRunner.dumpAsText();
// notifyDone will be called once we navigate to the "bookmarked" URL that
// is being dragged below.
testRunner.waitUntilDone();
}
window.onload = () => {
// Simulate dragging a bookmark to a cross-site URL.
const crossSiteURL = "http://localhost:8000/misc/resources/" +
"notify-success.html";
eventSender.beginDragWithStringData(crossSiteURL, "text/uri-list");
eventSender.mouseMoveTo(10, 10);
eventSender.mouseUp();
document.body.appendChild(document.createTextNode('PASS: Dropped bookmark'));
};
</script>