1 Tests AudioBufferSourceNode looping with a variety of loop points.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS loop whole buffer by default with loopStart == loopEnd == 0
7 PASS loop whole buffer explicitly
8 PASS loop from middle to end of buffer
9 PASS loop from start to middle of buffer
12 PASS loop from 4 -> 6 with playbackRate of 0.5
13 PASS loop from 4 -> 6 with playbackRate of 1.5
14 PASS loop from 2 -> 5 with offset 6
15 PASS loop from 3 -> 6 with offset 1
16 PASS loop from 3 -> 6 with offset 4
17 PASS illegal playbackRate of 47 greater than loop length
18 PASS illegal loop: loopStartFrame > loopEndFrame
19 PASS illegal loop: loopStartFrame == loopEndFrame
20 PASS illegal loop: loopStartFrame < 0
21 PASS illegal loop: loopEndFrame > bufferLength
22 PASS loop from 3 -> 6 with offset 1 for 20 frames
23 PASS loop from 3 -> 8 with offset 1 for 3 frames
24 PASS loop from 3 -> 8 with offset 7 for 3 frames
25 PASS successfullyParsed is true