equal
deleted
inserted
replaced
|
1 Tests.prototype.CameraTests = function() { |
|
2 module('Camera (navigator.camera)'); |
|
3 test("should exist", function() { |
|
4 expect(1); |
|
5 ok(navigator.camera != null, "navigator.camera should not be null."); |
|
6 }); |
|
7 test("should contain a getPicture function", function() { |
|
8 expect(2); |
|
9 ok(typeof navigator.camera.getPicture != 'undefined' && navigator.camera.getPicture != null, "navigator.camera.getPicture should not be null."); |
|
10 ok(typeof navigator.camera.getPicture == 'function', "navigator.camera.getPicture should be a function."); |
|
11 }); |
|
12 }; |