blob: 3aea2d3c756d406e2f536b63ce5324e9e7deb4ab [file] [log] [blame]
Tests.prototype.CameraTests = function() {
module('Camera (navigator.camera)');
test("should exist", function() {
expect(1);
ok(navigator.camera != null, "navigator.camera should not be null.");
});
test("should contain a getPicture function", function() {
expect(2);
ok(typeof navigator.camera.getPicture != 'undefined' && navigator.camera.getPicture != null, "navigator.camera.getPicture should not be null.");
ok(typeof navigator.camera.getPicture == 'function', "navigator.camera.getPicture should be a function.");
});
};