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
This commit is contained in:
Karl Tomlinson 2014-05-14 12:12:47 +12:00
parent 5e36dee0cd
commit 58f382ba11

View File

@ -6,14 +6,15 @@ audioElement.autoplay = true;
audioElement.src = "sound.ogg";
audioElement.onplaying =
function() {
audioElement.onseeked =
audioElement.onplaying = null;
setTimeout(
function() {
setTimeout(
audioElement.onseeked =
function() {
document.documentElement.removeAttribute("class");
}, 100);
};
audioElement.currentTime = 0;
};
audioElement.currentTime = 0;
}, 100);
};
var context = new window.AudioContext();