Updated Branches:
  refs/heads/master 55fd4600b -> d5eb15a44

[CB-3485] Fixed device test to now check for model specification

- added new Jasmine test


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/d5eb15a4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/d5eb15a4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/d5eb15a4

Branch: refs/heads/master
Commit: d5eb15a44da0b4c2e50b705420d1a6e6388451e7
Parents: 55fd460
Author: ldeluca <[email protected]>
Authored: Thu May 23 13:44:21 2013 -0400
Committer: Fil Maj <[email protected]>
Committed: Wed Jun 19 18:51:54 2013 -0700

----------------------------------------------------------------------
 autotest/tests/device.tests.js | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/d5eb15a4/autotest/tests/device.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/device.tests.js b/autotest/tests/device.tests.js
index df9d2c6..844ed9f 100644
--- a/autotest/tests/device.tests.js
+++ b/autotest/tests/device.tests.js
@@ -47,4 +47,9 @@ describe('Device Information (window.device)', function () {
         expect(window.device.cordova).toBeDefined();
                expect((new String(window.device.cordova)).length > 
0).toBe(true);
        });
+       
+       it("should contain a model specification that is a string", function() {
+        expect(window.device.model).toBeDefined();
+               expect((new String(window.device.model)).length > 0).toBe(true);
+       });
 });

Reply via email to