cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [11/11] spec commit: [CB-2213] Added check for NATIVE_URI constant.
Date Tue, 12 Feb 2013 03:15:58 GMT
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 <max.woghiren@gmail.com>
Authored: Wed Feb 6 16:55:04 2013 -0500
Committer: Andrew Grieve <agrieve@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() {


Mime
View raw message