chromium/third_party/blink/web_tests/fast/dom/shadow/drop-event-for-input-in-shadow.html

<!DOCTYPE html>
<html>
<head>
<script src="../resources/event-sender-util.js"></script>
<script src="../../../resources/js-test.js"></script>
<script>
function createInput(name) {
    var div = document.createElement('input');
    div.style.width = '100px';
    div.style.height = '100px';

    div.addEventListener('drop', function(e) {
        debug('PASS: drop event is fired.');
        e.preventDefault();
    });

    return div;
}

function runTest() {
    var shadowRoot = host.attachShadow({mode: 'open'});
    var shadowInput = createInput('shadow');
    shadowRoot.appendChild(shadowInput);

    eventSender.beginDragWithFiles(["../resources/apple.gif"]);
    mouseMoveToElem(shadowInput);
    eventSender.mouseUp();
}
</script>
</head>
<body onload="runTest()">

<div id="host"></div>
<pre id="console"></pre>
</body>
</html>