spec/tests/telephony.tests.js
changeset 0 54063d8b0412
equal deleted inserted replaced
-1:000000000000 0:54063d8b0412
       
     1 Tests.prototype.TelephonyTests = function() {	
       
     2 	module('Telephony (navigator.telephony)');
       
     3 	test("should exist", function() {
       
     4   		expect(1);
       
     5   		ok(navigator.telephony != null, "navigator.telephony should not be null.");
       
     6 	});
       
     7 	test("should contain a send function", function() {
       
     8 		expect(2);
       
     9 		ok(typeof navigator.telephony.send != 'undefined' && navigator.telephony.send != null, "navigator.telephony.send should not be null.");
       
    10 		ok(typeof navigator.telephony.send == 'function', "navigator.telephony.send should be a function.");
       
    11 	});
       
    12 };