You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2015/10/23 00:31:09 UTC

[3/8] cordova-plugin-device git commit: create test to verify existence and type of new property 'isVirtual'

create test to verify existence and type of new property 'isVirtual'


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/commit/2aebeae3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/2aebeae3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/2aebeae3

Branch: refs/heads/master
Commit: 2aebeae3d1a15dd110fc6f92a4bd2526c7ed9a4c
Parents: 2bd41cf
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Thu Oct 22 11:17:20 2015 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Thu Oct 22 11:17:20 2015 -0700

----------------------------------------------------------------------
 tests/tests.js | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/2aebeae3/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 1f49d7e..7bf5c04 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -67,6 +67,12 @@ exports.defineAutoTests = function() {
       expect(window.device.manufacturer).toBeDefined();
       expect((new String(window.device.manufacturer)).length > 0).toBe(true);
     });
+
+    it("should contain an isVirtual property that is a boolean", function() {
+      expect(window.device.isVirtual).toBeDefined();
+      expect(typeof window.device.isVirtual).toBe("boolean");
+    });
+
   });
 };
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org