Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

  • This WPT test may be referenced by the following Test IDs:
<!DOCTYPE html>
<title>HTMLTrackElement 'src' attribute changed, load pending</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<video></video>
<script>
async_test(t => {
const track = document.createElement('track');
track.onload = t.unreached_func('first source should not load');
track.onerror = t.step_func_done();
track.src = 'resources/settings.vtt?pipe=trickle(d3600)';
track.track.mode = 'hidden';
document.querySelector('video').appendChild(track);
t.step_timeout(() => {
track.src = 'resources/entities.vtt';
}, 0);
});
</script>