content/media/webaudio/test/test_bug867104.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4   <title>Crashtest for bug 867104</title>
     5   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     6   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     7 </head>
     8 <body>
     9 <pre id="test">
    10 <script class="testbody" type="text/javascript">
    12 SimpleTest.waitForExplicitFinish();
    13 addLoadEvent(function() {
    14   var ctx = new AudioContext();
    15   var source = ctx.createBufferSource();
    16   var b0 = ctx.createBuffer(32,798,22050);
    17   var b1 = ctx.createBuffer(32,28,22050);
    18   var sp = ctx.createScriptProcessor();
    19   source.buffer = b0;
    20   source.connect(sp);
    21   source.start(0);
    22   source.buffer = b1;
    23   sp.onaudioprocess = function() {
    24     ok(true, "We did not crash.");
    25     sp.onaudioprocess = null;
    26     SimpleTest.finish();
    27   };
    28 });
    31 </script>
    32 </pre>
    33 </body>
    34 </html>

mercurial