Skip to content

Commit

Permalink
only thing I could test in gum.js
Browse files Browse the repository at this point in the history
  • Loading branch information
leobalter committed Mar 9, 2012
1 parent 09bf9b1 commit dc5e44b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/gum.js
Expand Up @@ -50,4 +50,6 @@
}, errback || function() {});
};

window.navigator = navigator;

} (typeof window === "object" && window || this, this.navigator || {} ) );
12 changes: 11 additions & 1 deletion test/gum_test.js
@@ -1,3 +1,13 @@
/*global require:true, exports:true */

// ugh.
var app = require("../lib/gum.js"),
navigator = app.navigator;


console.log(navigator.getUserMedia);

exports["getUserMedia"] = function(test) {
test.expect(1);
test.equal(typeof navigator.getUserMedia, "function", "navigator.getUserMedia() is a function");
test.done();
};

0 comments on commit dc5e44b

Please sign in to comment.