Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html class="reftest-wait"> |
michael@0 | 3 | <head> |
michael@0 | 4 | <script> |
michael@0 | 5 | var ITERATIONS = 200; |
michael@0 | 6 | |
michael@0 | 7 | function stoptest () |
michael@0 | 8 | { |
michael@0 | 9 | document.documentElement.removeAttribute("class"); |
michael@0 | 10 | } |
michael@0 | 11 | |
michael@0 | 12 | function boom() |
michael@0 | 13 | { |
michael@0 | 14 | for (var i = 0; i < ITERATIONS; ++i) { |
michael@0 | 15 | a = document.createElementNS("http://www.w3.org/1999/xhtml", "audio"); |
michael@0 | 16 | a.addEventListener("loadedmetadata", stoptest); |
michael@0 | 17 | a.setAttributeNS(null, "autoplay", ""); |
michael@0 | 18 | a.setAttributeNS(null, "src", "sound.ogg"); |
michael@0 | 19 | } |
michael@0 | 20 | setTimeout(stoptest, 250); |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | </script> |
michael@0 | 24 | </head> |
michael@0 | 25 | <body onload="boom();"></body> |
michael@0 | 26 | </html> |