gecko/content/media/test/crashtests/media-element-source-seek-1.html
Karl Tomlinson 58f382ba11 b=994351 break playing/seeked cycle in test
The seek is also moved to after the timeout to make the assertion failure
more reliable (in broken builds).

--HG--
extra : transplant_source : %CB_q%E3%CF%D9%25%85U%D3%B2X%CA%82%01%0D%91%D9%3C%A5
2014-05-14 12:12:47 +12:00

25 lines
624 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<script>
var audioElement = document.createElement("audio");
audioElement.autoplay = true;
audioElement.src = "sound.ogg";
audioElement.onplaying =
function() {
audioElement.onplaying = null;
setTimeout(
function() {
audioElement.onseeked =
function() {
document.documentElement.removeAttribute("class");
};
audioElement.currentTime = 0;
}, 100);
};
var context = new window.AudioContext();
var source = context.createMediaElementSource(audioElement);
source.connect(context.destination);
</script>
</html>