Skip to content

Commit

Permalink
Fake Audio class for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Feb 5, 2013
1 parent 0b5980f commit 3c22b8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
<script type="text/javascript" src="../dist/sizzle.js"></script>

<script type="text/javascript">
// Fake audio class
var Audio = function () {
this.canPlayType = function () { return "no"; };
};

function withScene(func) {
withEngine(function(engine) {
func.call(this, engine.createScene());
Expand Down

0 comments on commit 3c22b8c

Please sign in to comment.