chromium/third_party/blink/web_tests/webaudio/AudioContext/audiocontext-listener-should-not-crash.html

<!DOCTYPE html>
<html>
  <head>
    <title>
      audiocontext-listener-should-not-crash.html
    </title>
    <script src="../../resources/testharness.js"></script>
    <script src="../../resources/testharnessreport.js"></script>
    <script src="../resources/audit.js"></script>
  </head>
  <body>
    <script id="layout-test-code">
      let audit = new Audit.createTaskRunner();

      audit.define('test', function(task, should) {
        let context = new AudioContext();
        should(
            context.listener instanceof AudioListener,
            'context.listener is AudioListener')
            .beTrue();
        should(function() {
          document.addEventListener(0, context);
        }, 'document.addEventListener(0, context) should not crash').notThrow();
        task.done();
      });

      audit.run();
    </script>
  </body>
</html>