You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/02/12 04:15:58 UTC

[11/11] spec commit: [CB-2213] Added check for NATIVE_URI constant.

Updated Branches:
  refs/heads/master d27c80dd3 -> 94d1c00e1


[CB-2213] Added check for NATIVE_URI constant.


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/94d1c00e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/94d1c00e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/94d1c00e

Branch: refs/heads/master
Commit: 94d1c00e1ec747703fff52f0ce5581475ac6d72f
Parents: 04f0142
Author: Max Woghiren <ma...@gmail.com>
Authored: Wed Feb 6 16:55:04 2013 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Mon Feb 11 21:22:58 2013 -0500

----------------------------------------------------------------------
 autotest/tests/camera.tests.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/94d1c00e/autotest/tests/camera.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/camera.tests.js b/autotest/tests/camera.tests.js
index cf4a448..ccc351b 100644
--- a/autotest/tests/camera.tests.js
+++ b/autotest/tests/camera.tests.js
@@ -35,11 +35,13 @@ describe('Camera Constants (window.Camera + navigator.camera)', function () {
         expect(window.Camera).toBeDefined();
     });
 
-    it("should contain two DestinationType constants", function() {
+    it("should contain three DestinationType constants", function() {
         expect(Camera.DestinationType.DATA_URL).toBe(0);
         expect(Camera.DestinationType.FILE_URI).toBe(1);
+        expect(Camera.DestinationType.NATIVE_URI).toBe(2);
         expect(navigator.camera.DestinationType.DATA_URL).toBe(0);
         expect(navigator.camera.DestinationType.FILE_URI).toBe(1);
+        expect(navigator.camera.DestinationType.NATIVE_URI).toBe(2);
     });
 
     it("should contain two EncodingType constants", function() {