Run the following tests in order. In all cases the onended event should be fired.
See crbug.com/484935.
Press "Rate 1" button to test onended with a playback rate of 1. You should hear a sound and
the onended event should be fired, which should print a message to the console and the
Result are below. This audio is the reference.
The onended event should occur after about sec.
Press "Rate 2" button to do the same test but with the playback rate set to 2. This should
sound somewhat like 1, but have a higher pitch and finish sooner.
The onended event should occur after about sec.
Press "Rate 1/2" button to do the same test but with the playback rate set to 1/2. This
should sound like 1, but last twice as long with a lower pitch. The entire audio sample
should be played. (Compare with Rate 1.)
The onended event should occur after about sec.
Press "Rate variable" button to test playback with a variable playback rate. The entire
sample should be played. Make sure this is distantly different from the other rates
above. If not, then playback automation did not work and a new bug should be filed.
The onended event should occur after approximately sec, but may take longer.