From 41d170803413fd0061e682ec8245f20298f9524a Mon Sep 17 00:00:00 2001 From: ippa Date: Sun, 10 Aug 2014 10:31:29 +0200 Subject: [PATCH] don't expect audio-tests to be run in headless tests --- test/assets.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/assets.js b/test/assets.js index fc882a8..33098d4 100644 --- a/test/assets.js +++ b/test/assets.js @@ -23,6 +23,8 @@ test("Image assets", function() { }); test("audio assets", function() { + if(!window["Audio"]) expect(0); // For headless tests, don't expect any tests to be run if there's no audio-support + stop(); jaws.log.use_console = true; var assets = new jaws.Assets() @@ -50,6 +52,8 @@ test("audio assets", function() { }); test("audio wildcard assets", function() { + if(!window["Audio"]) expect(0); // For headless tests, don't expect any tests to be run if there's no audio-support + stop(); jaws.log.use_console = true; var assets = new jaws.Assets()