<!DOCTYPE html>
<title>Test that setting "src" attribute triggers load.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<video></video>
<script>
async_test(function(t) {
var video = document.querySelector("video");
var mediaFile = "content/test.ogv";
video.onloadstart = t.step_func_done(function() {
var url = video.currentSrc;
assert_equals(url.substr(url.lastIndexOf("/media/")+7), mediaFile);
});
video.src = mediaFile;
});
</script>