AudioContext.onerror Manual Test

Select a non-default & external (USB, etc) audio device from the dropdown list. Then press the START TESTING button to start rendering. When you here the audio (sine wave) disconnect the audio device.

The expected result: your should see onerror and then onstatechange dispatched in that order.