mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1242599 - testcase. r=rillian
MozReview-Commit-ID: Bkl13cdT2CA --HG-- extra : rebase_source : e405d058a7836fd897ef5a62f696477048d65981
This commit is contained in:
parent
d1ed19f21d
commit
aa321b3d28
@ -30,15 +30,16 @@ trackElement.kind = "subtitles";
|
||||
document.getElementById("content").appendChild(video);
|
||||
video.appendChild(trackElement);
|
||||
|
||||
video.addEventListener("loadedmetadata", function run_tests() {
|
||||
is(video.textTracks.length, 1, "Video should have one TextTrack.");
|
||||
var parent = video.parentNode;
|
||||
parent.removeChild(video);
|
||||
is(video.textTracks.length, 1, "After unbind the video element, should have one TextTrack.");
|
||||
parent.appendChild(video);
|
||||
is(video.textTracks.length, 1, "After bind the video element, should have one TextTrack.");
|
||||
SimpleTest.finish();
|
||||
});
|
||||
// Bug 1242599, access video.textTracks.length immediately after
|
||||
// the track element binds into the media element.
|
||||
is(video.textTracks.length, 1, "Video should have one TextTrack.");
|
||||
var parent = video.parentNode;
|
||||
parent.removeChild(video);
|
||||
is(video.textTracks.length, 1, "After unbind the video element, should have one TextTrack.");
|
||||
parent.appendChild(video);
|
||||
is(video.textTracks.length, 1, "After bind the video element, should have one TextTrack.");
|
||||
SimpleTest.finish();
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user