content/media/test/crashtests/459439-1.html

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     1 <!DOCTYPE html>
     2 <html class="reftest-wait">
     3 <head>
     4 <script type="text/javascript">
     5 var i = 0;
     6 function boom()
     7 {
     8   var div = document.getElementById("div");
     9   var audio = document.getElementById("audio");
    11   audio.onload = null;
    13   div.textContent = "FAIL";
    14   audio.src += "";
    15   div.textContent = "PASS?";
    17   ++i;
    19   setTimeout(done, 1);
    20 }
    22 function done()
    23 {
    24   document.documentElement.removeAttribute("class");
    25 }
    26 </script>
    27 </head>
    28 <body>
    29 <audio id="audio" autoplay src="sound.ogg" oncanplaythrough="setTimeout(boom, 1);"></audio>
    30 <div id="div"></div>
    31 </body>
    32 </html>

mercurial