mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
58f382ba11
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
25 lines
624 B
HTML
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>
|