chromium/third_party/blink/web_tests/webaudio/internals/oscillator-stopped-gc.html

<!doctype html>
<html>
  <head>
    <title>Test GC of Stopped OscillatorNode </title>
    <script src="../../resources/gc.js"></script>
    <script src="../../resources/testharness.js"></script>
    <script src="../../resources/testharnessreport.js"></script>
    <script src="../resources/audit-util.js"></script>
    <script src="../resources/audit.js"></script>
    <script src="stopped-source-test.js"></script>
  </head>
  <body>
    <script>
      let audit = Audit.createTaskRunner();

      const nodesToTest = 100;

      audit.define('Test GC of Stopped Oscillators', (task, should) => {
        let context = new AudioContext();
        testStoppedSourceGC(task, should, {
          context: context,
          nodeName: 'OscillatorNode',
          constructorMethod: () => { return new OscillatorNode(context); },
          numberOfNodes: 100
        });
      });

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