incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [2/2] git commit: added start of camera tests. so far just making sure constants are defined on the camera plugin
Date Thu, 01 Mar 2012 19:49:14 GMT
added start of camera tests. so far just making sure constants are defined on the camera plugin


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/f26ef4f4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/f26ef4f4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/f26ef4f4

Branch: refs/heads/master
Commit: f26ef4f468f22dce96eda8ea1899cb1bf542d2a9
Parents: 2d93bb4
Author: Fil Maj <maj.fil@gmail.com>
Authored: Thu Mar 1 11:47:06 2012 -0800
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Thu Mar 1 11:47:06 2012 -0800

----------------------------------------------------------------------
 test/test.camera.js |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/f26ef4f4/test/test.camera.js
----------------------------------------------------------------------
diff --git a/test/test.camera.js b/test/test.camera.js
new file mode 100644
index 0000000..9d26c41
--- /dev/null
+++ b/test/test.camera.js
@@ -0,0 +1,13 @@
+describe("camera", function () {
+    var camera = require('cordova/plugin/Camera'),
+        constants = require('cordova/plugin/CameraConstants');
+
+    describe("constants", function() {
+        it("should be defined on the base camera plugin", function() {
+            for (var type in constants) {
+                expect(camera[type]).toBe(constants[type]);
+            }
+        });
+    });
+});
+


Mime
View raw message