spec/tests/telephony.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.TelephonyTests = function() {	
	module('Telephony (navigator.telephony)');
	test("should exist", function() {
  		expect(1);
  		ok(navigator.telephony != null, "navigator.telephony should not be null.");
	});
	test("should contain a send function", function() {
		expect(2);
		ok(typeof navigator.telephony.send != 'undefined' && navigator.telephony.send != null, "navigator.telephony.send should not be null.");
		ok(typeof navigator.telephony.send == 'function', "navigator.telephony.send should be a function.");
	});
};