зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1242599 - testcase. r=rillian
MozReview-Commit-ID: Bkl13cdT2CA --HG-- extra : rebase_source : e405d058a7836fd897ef5a62f696477048d65981
This commit is contained in:
Родитель
d1ed19f21d
Коммит
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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче