mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
5e36dee0cd
commit
58f382ba11
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user