diff options
Diffstat (limited to 'dom/html/test/test_mozaudiochannel.html')
-rw-r--r-- | dom/html/test/test_mozaudiochannel.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dom/html/test/test_mozaudiochannel.html b/dom/html/test/test_mozaudiochannel.html new file mode 100644 index 000000000..722e181bf --- /dev/null +++ b/dom/html/test/test_mozaudiochannel.html @@ -0,0 +1,31 @@ +<!DOCTYPE HTML> +<html> +<head> + <title>Test for mozaudiochannel</title> + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> + <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> +</head> +<body> + +<pre id="test"> +<script type="application/javascript"> + +SimpleTest.waitForExplicitFinish(); +SpecialPowers.pushPrefEnv({"set": [["media.useAudioChannelAPI", true]]}, function() { + var ifr = document.createElement('iframe'); + ifr.src = 'file_mozaudiochannel.html'; + onmessage = function(e) { + if ("finish" in e.data) { + SimpleTest.finish(); + } else { + ok(e.data.status, e.data.msg); + } + } + + document.body.appendChild(ifr); +}); +</script> +</pre> +</body> +</html> |