dom/media/webaudio/test/test_AudioListener.html
author Julien Cristau <jcristau@mozilla.com>
Mon, 20 Mar 2023 10:45:48 +0000
changeset 657187 caabe78a05aef594369db335bb9d1098ec328c33
parent 638013 396bc77733c4376a0874391b72ad0a82b92567b0
permissions -rw-r--r--
Bug 1822594 - remove webrender test schedule. r=jmaher,ahal Since webrender was enabled by default this was causing pushes with webrender-only changes to wrongly optimize out most tests. Differential Revision: https://phabricator.services.mozilla.com/D172778

<!DOCTYPE HTML>
<html>
<head>
  <title>Test AudioContext.listener and the AudioListener interface</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<pre id="test">
<script class="testbody" type="text/javascript">

SimpleTest.waitForExplicitFinish();
addLoadEvent(function() {
  var context = new AudioContext();
  ok("listener" in context, "AudioContext.listener should exist");
  // The values set by the following cannot be read from script, but the
  // implementation is simple enough, so we just make sure that nothing throws.
  context.listener.setPosition(1.0, 1.0, 1.0);
  context.listener.setOrientation(1.0, 1.0, 1.0, 1.0, 1.0, 1.0);
  SimpleTest.finish();
});

</script>
</pre>
</body>
</html>