Skip to content

Commit

Permalink
don't expect audio-tests to be run in headless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ippa committed Aug 10, 2014
1 parent 6b350db commit 41d1708
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 41d1708

Please sign in to comment.