You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/02/16 01:02:55 UTC
spec commit: wrong number of expectations
Updated Branches:
refs/heads/master ba5f99981 -> 7993d648f
wrong number of expectations
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/commit/7993d648
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/tree/7993d648
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/diff/7993d648
Branch: refs/heads/master
Commit: 7993d648f28b2d4fc2406337440f6ab0f1ed15ee
Parents: ba5f999
Author: Fil Maj <fi...@nitobi.com>
Authored: Wed Feb 15 16:02:50 2012 -0800
Committer: Fil Maj <fi...@nitobi.com>
Committed: Wed Feb 15 16:02:50 2012 -0800
----------------------------------------------------------------------
autotest/tests/contacts.tests.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/7993d648/autotest/tests/contacts.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/contacts.tests.js b/autotest/tests/contacts.tests.js
index 880eaca..06c4976 100644
--- a/autotest/tests/contacts.tests.js
+++ b/autotest/tests/contacts.tests.js
@@ -57,7 +57,7 @@ Tests.prototype.ContactsTests = function() {
ok(typeof navigator.contacts.create == 'function', "navigator.contacts.create should be a function.");
});
test("contacts.create should return a Contact object", function() {
- expect(9);
+ expect(8);
var obj = navigator.contacts.create({"displayName": "test name", "gender": "male", "note": "my note", "name": {"formatted": "Mr. Test Name"}, "emails": [{"value": "here@there.com"}, {"value": "there@here.com"}]});
ok(obj != 'undefined' && obj != null, "navigator.contacts.create should return a Contact object.");
ok(obj.displayName == 'test name', "Contact should contain a displayName property.");