chromium/third_party/blink/web_tests/media/video-src-blob.html

<!DOCTYPE html>
<title>This tests the ability of the "video" element to load blob URLs. In the browser, select a video file.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<input type="file">
<video></video>
<script>
async_test(function(t) {
    var video = document.querySelector("video");
    var inputFile = document.querySelector("input");

    inputFile.onchange = t.step_func(function(event) {
        video.onloadedmetadata = t.step_func_done();
        video.onerror = t.unreached_func();
        video.src = URL.createObjectURL(event.target.files[0]);
    });

    eventSender.beginDragWithFiles(["content/test.ogv"]);
    var centerX = inputFile.offsetLeft + inputFile.offsetWidth / 2;
    var centerY = inputFile.offsetTop + inputFile.offsetHeight / 2;
    eventSender.mouseMoveTo(centerX, centerY);
    eventSender.mouseUp();
});
</script>