1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/media/webaudio/test/test_audioDestinationNode.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<head> 1.7 + <title>Test AudioDestinationNode as EventTarget</title> 1.8 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.9 + <script type="text/javascript" src="webaudio.js"></script> 1.10 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.11 +</head> 1.12 +<body> 1.13 +<pre id="test"> 1.14 +<script class="testbody" type="text/javascript"> 1.15 + 1.16 +SimpleTest.waitForExplicitFinish(); 1.17 + 1.18 +var ac = new AudioContext() 1.19 +ac.destination.addEventListener("foo", function() { 1.20 + ok(true, "Event received!"); 1.21 + SimpleTest.finish(); 1.22 +}, false); 1.23 +ac.destination.dispatchEvent(new CustomEvent("foo")); 1.24 + 1.25 +</script> 1.26 +</pre> 1.27 +</body> 1.28 +</html> 1.29 +