spec/tests/camera.tests.js
author Ryan Willoughby <ryan.willoughby@nitobi.com>
Tue, 06 Jul 2010 11:31:19 -0700
changeset 0 54063d8b0412
permissions -rwxr-xr-x
initial commit of PhoneGap WRT framework, licensing and test code

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.");
	});
};