content/media/webaudio/test/test_audioDestinationNode.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>
     3 <head>
     4   <title>Test AudioDestinationNode as EventTarget</title>
     5   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     6   <script type="text/javascript" src="webaudio.js"></script>
     7   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     8 </head>
     9 <body>
    10 <pre id="test">
    11 <script class="testbody" type="text/javascript">
    13 SimpleTest.waitForExplicitFinish();
    15 var ac = new AudioContext()
    16 ac.destination.addEventListener("foo", function() {
    17   ok(true, "Event received!");
    18   SimpleTest.finish();
    19 }, false);
    20 ac.destination.dispatchEvent(new CustomEvent("foo"));
    22 </script>
    23 </pre>
    24 </body>
    25 </html>

mercurial