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/02/04 20:09:38 UTC
[2/2] cordova-plugin-device git commit: [CB-7285] Add test for
manufacturer property
[CB-7285] Add test for manufacturer property
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/734e01f5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/734e01f5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/734e01f5
Branch: refs/heads/master
Commit: 734e01f5a6762b37d576d4189b0aa5ef4a5b92f1
Parents: d505dfa
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Feb 4 11:03:17 2015 -0800
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Feb 4 11:03:17 2015 -0800
----------------------------------------------------------------------
tests/tests.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/734e01f5/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index f7c30ef..1f49d7e 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -49,7 +49,7 @@ exports.defineAutoTests = function() {
expect((new String(window.device.cordova)).length > 0).toBe(true);
});
- it("should depend on the precense of cordova.version string", function() {
+ it("should depend on the presence of cordova.version string", function() {
expect(window.cordova.version).toBeDefined();
expect((new String(window.cordova.version)).length > 0).toBe(true);
});
@@ -62,6 +62,11 @@ exports.defineAutoTests = function() {
expect(window.device.model).toBeDefined();
expect((new String(window.device.model)).length > 0).toBe(true);
});
+
+ it("should contain a manufacturer property that is a string", function() {
+ expect(window.device.manufacturer).toBeDefined();
+ expect((new String(window.device.manufacturer)).length > 0).toBe(true);
+ });
});
};
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org