<!doctype html>
<meta charset="utf-8">
<title>Test for AudioBuffer's "acquire the content" operation</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
const SAMPLERATE = 8000;
const LENGTH = 128;

var tests = {
  "AudioBufferSourceNode setter set with non-null buffer": function(oac) {
    var buf = oac.createBuffer(1, LENGTH, SAMPLERATE)
    var bs = new AudioBufferSourceNode(oac);
    var channelData = buf.getChannelData(0);
    for (