691096-1.html (728B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <head> 4 <script> 5 var ITERATIONS = 200; 6 7 function stoptest (evt) 8 { 9 if (evt) { 10 // Note we reset 'src' to release decoder resources and cubeb streams to 11 // prevent OOM or OpenCubeb() failures. 12 evt.target.src = ""; 13 } 14 document.documentElement.removeAttribute("class"); 15 } 16 17 function boom() 18 { 19 for (var i = 0; i < ITERATIONS; ++i) { 20 a = document.createElementNS("http://www.w3.org/1999/xhtml", "audio"); 21 a.addEventListener("loadedmetadata", stoptest); 22 a.setAttributeNS(null, "autoplay", ""); 23 a.setAttributeNS(null, "src", "sound.ogg"); 24 } 25 setTimeout(stoptest, 250); 26 } 27 28 </script> 29 </head> 30 <body onload="boom();"></body> 31 </html>