I know that there is a lot of other similar questions, however the answers don't provide a way round this problem.
I have a JavaScript file used on my website that uses the HTML 5 Web Audio and want to unit test it.
I have looked at using QUnit with PhantomJS and before you say anything I know that Phantom doesn't support it (http://phantomjs.org/supported-web-standards.html) however I want to know if there is a way around this?
Testing it using QUnit in the browser works as you would expect but I don't want to have to test it using the browser every time, I want it to be automated on the server.
An example of one of the tests that fails:
QUnit.test("isPlaying", function(assert){
// true case
My.Sound.play("background");
assert.ok(My.Sound.isPlaying("background"), "The background audio is playing");
// false case
My.Sound.pause("background");
assert.ok(!My.Sound.isPlaying("background"), "The background audio is not playing");
});