From: Tomasz Paciorek Date: Fri, 4 Oct 2013 12:24:19 +0000 (+0200) Subject: [Contact] - various fixes X-Git-Tag: 2.2.1_release~105^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea0cc03cf80ded2e76a49cf7d95acf96aa0d611e;p=test%2Ftct%2Fweb%2Fapi.git [Contact] - various fixes Change-Id: Ia072782949caddd15827a0c4e6afd462adf8c447 --- diff --git a/tct-contact-tizen-tests/contact/AddressBookArraySuccessCallback_onsuccess.html b/tct-contact-tizen-tests/contact/AddressBookArraySuccessCallback_onsuccess.html index 9a42674b3..7416f441a 100644 --- a/tct-contact-tizen-tests/contact/AddressBookArraySuccessCallback_onsuccess.html +++ b/tct-contact-tizen-tests/contact/AddressBookArraySuccessCallback_onsuccess.html @@ -16,14 +16,14 @@ limitations under the License. Authors: - Tomasz Paciorek + Tomasz Paciorek --> - + -AddressBook_find +AddressBookArraySuccessCallback_onsuccess - + @@ -32,13 +32,11 @@ Authors: //==== TEST: AddressBookArraySuccessCallback_onsuccess //==== LABEL Check if AddressBookArraySuccessCallback is called and if its arguments have proper type //==== SPEC Tizen Web API:Social:Contact:AddressBookArraySuccessCallback:onsuccess M -//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/contact.html +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA CBOA CBT -var t = async_test("AddressBookArraySuccessCallback_onsuccess"); +var t = async_test(document.title), addressBook, getAddressBooksSuccess, getAddressBooksError, returnedValue = null; t.step(function () { - var addressBook, getAddressBooksSuccess, getAddressBooksError, - returnedValue = null; getAddressBooksError = t.step_func(function (error) { assert_unreached("Invalid errorCallback invoked: " + error.name + ": " + error.message); }); diff --git a/tct-contact-tizen-tests/contact/AddressBookChangeCallback_notexist.html b/tct-contact-tizen-tests/contact/AddressBookChangeCallback_notexist.html index 933db0bcb..45b599688 100644 --- a/tct-contact-tizen-tests/contact/AddressBookChangeCallback_notexist.html +++ b/tct-contact-tizen-tests/contact/AddressBookChangeCallback_notexist.html @@ -23,7 +23,7 @@ Authors: AddressBookChangeCallback_notexist - + @@ -37,7 +37,7 @@ Authors: //==== TEST_CRITERIA CBNIO test(function () { check_no_interface_object("AddressBookChangeCallback"); -}, "AddressBook_ChangeCallback_notexist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBookChangeCallback_oncontactsadded.html b/tct-contact-tizen-tests/contact/AddressBookChangeCallback_oncontactsadded.html index 4d79388be..55ec7250e 100644 --- a/tct-contact-tizen-tests/contact/AddressBookChangeCallback_oncontactsadded.html +++ b/tct-contact-tizen-tests/contact/AddressBookChangeCallback_oncontactsadded.html @@ -33,7 +33,7 @@ Authors: AddressBookChangeCallback_oncontactsadded - + @@ -45,9 +45,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBookChangeCallback:oncontactsadded M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA CBT CBOA -var t = async_test("AddressBookChangeCallback_oncontactsadded"); +var t = async_test(document.title), defaultAddressBook, contact, changeListenerError, watcher, con, watcherId; t.step(function () { - var defaultAddressBook, contact, changeListenerError, watcher, con, watcherId; contact = new tizen.Contact({ name: new tizen.ContactName({ firstName: "John", diff --git a/tct-contact-tizen-tests/contact/AddressBookChangeCallback_oncontactsremoved.html b/tct-contact-tizen-tests/contact/AddressBookChangeCallback_oncontactsremoved.html index 23eeb4199..685bcd71f 100644 --- a/tct-contact-tizen-tests/contact/AddressBookChangeCallback_oncontactsremoved.html +++ b/tct-contact-tizen-tests/contact/AddressBookChangeCallback_oncontactsremoved.html @@ -33,7 +33,7 @@ Authors: AddressBookChangeCallback_oncontactsremoved - + @@ -45,9 +45,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBookChangeCallback:oncontactsremoved M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA CBOA CBT -var t = async_test("AddressBookChangeCallback_oncontactsremoved"); +var t = async_test(document.title), defaultAddressBook, contact, changeListenerError, watcher, watcherId; t.step(function () { - var defaultAddressBook, contact, changeListenerError, watcher, watcherId; watcher = { oncontactsadded: t.step_func(function (contacts) { }), diff --git a/tct-contact-tizen-tests/contact/AddressBookChangeCallback_oncontactsupdated.html b/tct-contact-tizen-tests/contact/AddressBookChangeCallback_oncontactsupdated.html index 1602e2214..e3ca242e2 100644 --- a/tct-contact-tizen-tests/contact/AddressBookChangeCallback_oncontactsupdated.html +++ b/tct-contact-tizen-tests/contact/AddressBookChangeCallback_oncontactsupdated.html @@ -33,7 +33,7 @@ Authors: AddressBookChangeCallback_oncontactsupdated - + @@ -45,9 +45,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBookChangeCallback:oncontactsupdated M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA CBOA CBT -var t = async_test("AddressBookChangeCallback_oncontactsupdated"); +var t = async_test(document.title), defaultAddressBook, contact, changeListenerError, watcher, watcherId, con; t.step(function () { - var defaultAddressBook, contact, changeListenerError, watcher, watcherId, con; contact = new tizen.Contact({ name: new tizen.ContactName({ firstName: "John", diff --git a/tct-contact-tizen-tests/contact/AddressBook_ArraySuccessCallback_notexist.html b/tct-contact-tizen-tests/contact/AddressBook_ArraySuccessCallback_notexist.html index aeb6f6a5e..f5acf8f0b 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_ArraySuccessCallback_notexist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_ArraySuccessCallback_notexist.html @@ -23,7 +23,7 @@ Authors: AddressBook_ArraySuccessCallback_notexist - + @@ -37,8 +37,7 @@ Authors: //==== TEST_CRITERIA CBNIO test(function () { check_no_interface_object("AddressBookArraySuccessCallback"); -}, "AddressBook_ArraySuccessCallback_notexist"); -// Check if interface AddressBookArraySuccessCallback exists, it should not. +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_add.html b/tct-contact-tizen-tests/contact/AddressBook_add.html index 8172156aa..b8f08771a 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add.html @@ -23,7 +23,7 @@ Authors: AddressBook_add - + @@ -58,7 +58,7 @@ test(function () { assert_equals(contact.addresses[0].city, contactCopy.addresses[0].city, "contact.addresses[0].city attribute."); assert_equals(contact.addresses[0].streetAddress, contactCopy.addresses[0].streetAddress, "contact.addresses[0].streetAddress attribute."); addressbook.remove(contact.id); -}, "AddressBook_add"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addBatch.html b/tct-contact-tizen-tests/contact/AddressBook_addBatch.html index a84901ebc..4a587add4 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addBatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addBatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_addBatch - + @@ -35,10 +35,10 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MMINA MAST MR setup({timeout: 5000}); -var t = async_test("AddressBook_addBatch", {timeout: 5000}), contact_1, contact_2, +var t = async_test(document.title, {timeout: 5000}), contact1, contact2, returnedValue = null, addressbook; t.step(function () { - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName:"Jeffrey", lastName:"Hyman" @@ -47,7 +47,7 @@ t.step(function () { phoneNumbers:[new tizen.ContactPhoneNumber("123456789")] }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName:"Elton", lastName:"John" @@ -57,11 +57,11 @@ t.step(function () { }); addressbook = tizen.contact.getDefaultAddressBook(); - returnedValue = addressbook.addBatch([contact_1, contact_2]); + returnedValue = addressbook.addBatch([contact1, contact2]); assert_equals(returnedValue, undefined, "Incorrect value returned."); setTimeout(t.step_func(function () { - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); t.done(); }), 2000); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addBatch_contacts_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_addBatch_contacts_TypeMismatch.html index 9c12eb378..c1440d2ee 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addBatch_contacts_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addBatch_contacts_TypeMismatch.html @@ -25,7 +25,7 @@ Authors: AddressBook_addBatch_contacts_TypeMismatch - + @@ -47,12 +47,12 @@ test(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { addressbook.addBatch(param); }, exceptionName + " should be thrown - given incorrect."); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addBatch_errorCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_addBatch_errorCallback_TypeMismatch.html index 83a54c5cf..0b9ec2d34 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addBatch_errorCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addBatch_errorCallback_TypeMismatch.html @@ -25,7 +25,7 @@ Authors: AddressBook_addBatch_errorCallback_TypeMismatch - + @@ -38,11 +38,11 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:addBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MC -var t= async_test("AddressBook_addBatch_errorCallback_TypeMismatch"), addressbook, i, conversionTable, param, - exceptionName, contact_1, contact_2, onSuccess; +var t= async_test(document.title), addressbook, i, conversionTable, param, + exceptionName, contact1, contact2, onSuccess; t.step(function () { addressbook = tizen.contact.getDefaultAddressBook(); - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" @@ -54,7 +54,7 @@ t.step(function () { onSuccess = t.step_func(function (contacts) { assert_unreached("Invalid successCallback invoked. Contacts "+contacts); }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -67,9 +67,9 @@ t.step(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { - addressbook.addBatch([contact_1, contact_2], onSuccess, param); + addressbook.addBatch([contact1, contact2], onSuccess, param); }, exceptionName + " should be thrown - given incorrect."); } t.done(); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addBatch_errorCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/AddressBook_addBatch_errorCallback_invalid_cb.html index 07a78c10b..f0855d10c 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addBatch_errorCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addBatch_errorCallback_invalid_cb.html @@ -25,7 +25,7 @@ Authors: AddressBook_addBatch_errorCallback_invalid_cb - + @@ -38,11 +38,11 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:addBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("AddressBook_addBatch_errorCallback_invalid_cb"), addressbook, contact_1, contact_2, onSuccess, +var t = async_test(document.title), addressbook, contact1, contact2, onSuccess, incorrectCallback, exceptionName = "TypeMismatchError"; t.step(function () { addressbook = tizen.contact.getDefaultAddressBook(); - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" @@ -58,7 +58,7 @@ t.step(function () { onSuccess = t.step_func(function (contacts) { assert_unreached("Invalid successCallback invoked. Contacts "+contacts); }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -66,9 +66,9 @@ t.step(function () { emails: [new tizen.ContactEmailAddress("user2@domain.com")], phoneNumbers: [new tizen.ContactPhoneNumber("987654321")] }); - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { - addressbook.addBatch([contact_1, contact_2], onSuccess, incorrectCallback); + addressbook.addBatch([contact1, contact2], onSuccess, incorrectCallback); }, exceptionName + " should be thrown - given incorrect success callback."); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addBatch_exist.html b/tct-contact-tizen-tests/contact/AddressBook_addBatch_exist.html index 6b71d6875..bd6ad83fe 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addBatch_exist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addBatch_exist.html @@ -23,7 +23,7 @@ Authors: AddressBook_addBatch_exist - + @@ -38,7 +38,7 @@ test(function () { var addressbook = tizen.contact.getDefaultAddressBook(); assert_true("addBatch" in addressbook, "No addBatch method in addressbook."); check_method_exists(addressbook, "addBatch"); -}, "AddressBook_addBatch_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addBatch_missarg.html b/tct-contact-tizen-tests/contact/AddressBook_addBatch_missarg.html index 2cef616bd..396d44e5d 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addBatch_missarg.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addBatch_missarg.html @@ -25,7 +25,7 @@ Authors: AddressBook_addBatch_missarg - + @@ -42,12 +42,10 @@ Authors: test(function () { var addressBook = tizen.contact.getDefaultAddressBook(); - assert_throws({ - name: TYPE_MISMATCH_ERR - }, function () { + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { addressBook.addBatch(); }); -}, "AddressBook_addBatch_missarg"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addBatch_one_missNull.html b/tct-contact-tizen-tests/contact/AddressBook_addBatch_one_missNull.html index 46b83fb33..17670c681 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addBatch_one_missNull.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addBatch_one_missNull.html @@ -34,7 +34,7 @@ Authors: AddressBook_addBatch_one_missNull - + @@ -47,10 +47,9 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:addBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA -var t = async_test("AddressBook_addBatch_one_missNull"); +var t = async_test(document.title), defaultAddressBook, contact, batchAddedSuccessCB, batchAddFailedCB, conId, + contactsArray; t.step(function () { - var defaultAddressBook, contact, batchAddedSuccessCB, batchAddFailedCB, - conId, contactsArray; batchAddedSuccessCB = t.step_func(function (contacts) { conId = defaultAddressBook.get(contacts[0].id); assert_type(conId.id, "string", "id should be string"); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addBatch_successCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_addBatch_successCallback_TypeMismatch.html index a6e258fd8..40b3eaf07 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addBatch_successCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addBatch_successCallback_TypeMismatch.html @@ -25,7 +25,7 @@ Authors: AddressBook_addBatch_successCallback_TypeMismatch - + @@ -41,9 +41,9 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MC test(function () { - var addressbook, i, conversionTable, param, exceptionName, contact_1, contact_2; + var addressbook, i, conversionTable, param, exceptionName, contact1, contact2; addressbook = tizen.contact.getDefaultAddressBook(); - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName:"Jeffrey", lastName:"Hyman" @@ -52,7 +52,7 @@ test(function () { phoneNumbers:[new tizen.ContactPhoneNumber("123456789")] }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName:"Elton", lastName:"John" @@ -65,12 +65,12 @@ test(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { - addressbook.addBatch([contact_1, contact_2], param); + addressbook.addBatch([contact1, contact2], param); }, exceptionName + " should be thrown - given incorrect."); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addBatch_successCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/AddressBook_addBatch_successCallback_invalid_cb.html index 04683589d..a872ce295 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addBatch_successCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addBatch_successCallback_invalid_cb.html @@ -25,7 +25,7 @@ Authors: AddressBook_addBatch_successCallback_invalid_cb - + @@ -39,11 +39,11 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:addBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("AddressBook_addBatch_successCallback_invalid_cb"), addressbook, contact_1, contact_2, +var t = async_test(document.title), addressbook, contact1, contact2, incorrectCallback, exceptionName = "TypeMismatchError"; t.step(function () { addressbook = tizen.contact.getDefaultAddressBook(); - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName:"Jeffrey", lastName:"Hyman" @@ -51,7 +51,7 @@ t.step(function () { emails:[new tizen.ContactEmailAddress("user1@domain.com")], phoneNumbers:[new tizen.ContactPhoneNumber("123456789")] }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName:"Elton", lastName:"John" @@ -64,10 +64,10 @@ t.step(function () { assert_unreached("Invalid errorCallback invoked: "); }) }; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { - addressbook.addBatch([contact_1, contact_2], incorrectCallback); - },exceptionName + " should be thrown - given incorrect success callback."); + addressbook.addBatch([contact1, contact2], incorrectCallback); + }, exceptionName + " should be thrown - given incorrect success callback."); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addBatch_two_bothNull.html b/tct-contact-tizen-tests/contact/AddressBook_addBatch_two_bothNull.html index f32c2f285..683c50a05 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addBatch_two_bothNull.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addBatch_two_bothNull.html @@ -34,7 +34,7 @@ Authors: AddressBook_addBatch_two_bothNull - + @@ -46,10 +46,9 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:addBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA -var t = async_test("AddressBook_addBatch_two_bothNull"); +var t = async_test(document.title), defaultAddressBook, batchAddedSuccessCB, batchAddFailedCB, contactA, contactB, + conIdA, conIdB, contactsArray; t.step(function () { - var defaultAddressBook, batchAddedSuccessCB, batchAddFailedCB, - contactA, contactB, conIdA, conIdB, contactsArray; contactA = new tizen.Contact({ name: new tizen.ContactName({ firstName:"lucy", diff --git a/tct-contact-tizen-tests/contact/AddressBook_addBatch_two_oneIsNull.html b/tct-contact-tizen-tests/contact/AddressBook_addBatch_two_oneIsNull.html index 32979aaca..4f8874333 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addBatch_two_oneIsNull.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addBatch_two_oneIsNull.html @@ -47,10 +47,9 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:addBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA -var t = async_test("AddressBook_addBatch_two_oneIsNull"); +var t = async_test(document.title), defaultAddressBook, contactA, contactB, contactsArray, batchAddedSuccessCB, + batchAddFailedCB, i; t.step(function () { - var defaultAddressBook, contactA, contactB, contactsArray, batchAddedSuccessCB, - batchAddFailedCB, i; contactA = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", diff --git a/tct-contact-tizen-tests/contact/AddressBook_addBatch_with_errorCallback.html b/tct-contact-tizen-tests/contact/AddressBook_addBatch_with_errorCallback.html index 9e94c3d78..41363b6d9 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addBatch_with_errorCallback.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addBatch_with_errorCallback.html @@ -25,7 +25,7 @@ Authors: AddressBook_addBatch_with_errorCallback - + @@ -40,10 +40,10 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:addBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA -var t = async_test("AddressBook_addBatch_with_errorCallback"), contact_1, contact_2, addressbook, addBatchCallback, +var t = async_test(document.title), contact1, contact2, addressbook, addBatchCallback, addBatchSuccess; t.step(function () { - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" @@ -52,7 +52,7 @@ t.step(function () { phoneNumbers: [new tizen.ContactPhoneNumber("123456789")] }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -71,7 +71,7 @@ t.step(function () { t.done(); }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.addBatch([contact_1, contact_2], addBatchSuccess, addBatchCallback); + addressbook.addBatch([contact1, contact2], addBatchSuccess, addBatchCallback); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addBatch_with_successCallback.html b/tct-contact-tizen-tests/contact/AddressBook_addBatch_with_successCallback.html index 79538f3b8..e3655a4be 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addBatch_with_successCallback.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addBatch_with_successCallback.html @@ -25,7 +25,7 @@ Authors: AddressBook_addBatch_with_successCallback - + @@ -40,10 +40,10 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:addBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA MR -var t = async_test("AddressBook_addBatch_with_successCallback"), contact_1, contact_2, +var t = async_test(document.title), contact1, contact2, addressbook, addBatchSuccess, returnedValue = null; t.step(function () { - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName:"Jeffrey", lastName:"Hyman" @@ -52,7 +52,7 @@ t.step(function () { phoneNumbers:[new tizen.ContactPhoneNumber("123456789")] }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName:"Elton", lastName:"John" @@ -62,22 +62,22 @@ t.step(function () { }); addBatchSuccess = t.step_func(function (contacts) { - assert_equals(contacts[0].name.firstName, contact_1.name.firstName, "contacts[0].name.firstName attribute."); - assert_equals(contacts[0].name.lastName, contact_1.name.lastName, "contacts[0].name.lastName attribute."); - assert_equals(contacts[0].emails[0].email, contact_1.emails[0].email, "contacts[0].emails[0].email attribute."); - assert_equals(contacts[0].phoneNumbers[0].number, contact_1.phoneNumbers[0].number, "contacts[0].phoneNumbers[0].number attribute."); + assert_equals(contacts[0].name.firstName, contact1.name.firstName, "contacts[0].name.firstName attribute."); + assert_equals(contacts[0].name.lastName, contact1.name.lastName, "contacts[0].name.lastName attribute."); + assert_equals(contacts[0].emails[0].email, contact1.emails[0].email, "contacts[0].emails[0].email attribute."); + assert_equals(contacts[0].phoneNumbers[0].number, contact1.phoneNumbers[0].number, "contacts[0].phoneNumbers[0].number attribute."); - assert_equals(contacts[1].name.firstName, contact_2.name.firstName, "contacts[1].name.firstName attribute."); - assert_equals(contacts[1].name.lastName, contact_2.name.lastName, "contacts[1].name.lastName attribute."); - assert_equals(contacts[1].emails[0].email, contact_2.emails[0].email, "contacts[1].emails[0].email attribute."); - assert_equals(contacts[1].phoneNumbers[0].number, contact_2.phoneNumbers[0].number, "contacts[1].phoneNumbers[0].number attribute."); + assert_equals(contacts[1].name.firstName, contact2.name.firstName, "contacts[1].name.firstName attribute."); + assert_equals(contacts[1].name.lastName, contact2.name.lastName, "contacts[1].name.lastName attribute."); + assert_equals(contacts[1].emails[0].email, contact2.emails[0].email, "contacts[1].emails[0].email attribute."); + assert_equals(contacts[1].phoneNumbers[0].number, contact2.phoneNumbers[0].number, "contacts[1].phoneNumbers[0].number attribute."); assert_equals(returnedValue, undefined, "Incorrect value returned."); - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); t.done(); }); addressbook = tizen.contact.getDefaultAddressBook(); - returnedValue = addressbook.addBatch([contact_1, contact_2], addBatchSuccess); + returnedValue = addressbook.addBatch([contact1, contact2], addBatchSuccess); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addChangeListener.html b/tct-contact-tizen-tests/contact/AddressBook_addChangeListener.html index 307f39330..e476b8d7a 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addChangeListener.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addChangeListener.html @@ -23,7 +23,7 @@ Authors: AddressBook_addChangeListener - + @@ -34,9 +34,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:addChangeListener M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MMINA MR MAST -var t = async_test("AddressBook_addChangeListener"); +var t = async_test(document.title), watcher, listener, addressBook, contact; t.step(function () { - var watcher, listener, addressBook, contact; addressBook = tizen.contact.getDefaultAddressBook(); contact = new tizen.Contact({ name: new tizen.ContactName({ diff --git a/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_errorCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_errorCallback_TypeMismatch.html index bd8c8bde7..167a1de68 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_errorCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_errorCallback_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_addChangeListener_errorCallback_TypeMismatch - + @@ -35,7 +35,7 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:addChangeListener M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MC -var t = async_test("AddressBook_addChangeListener_errorCallback_TypeMismatch"), watcher, listener, addressBook, +var t = async_test(document.title), watcher, listener, addressBook, conversionTable, param, exceptionName, i; t.step(function () { addressBook = tizen.contact.getDefaultAddressBook(); @@ -56,7 +56,7 @@ t.step(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { listener = addressBook.addChangeListener(watcher, param); }, exceptionName + " should be thrown - given incorrect."); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_errorCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_errorCallback_invalid_cb.html index dda1487d4..77eca04cc 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_errorCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_errorCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: AddressBook_addChangeListener_errorCallback_invalid_cb - + @@ -35,7 +35,7 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:addChangeListener M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("AddressBook_addChangeListener_errorCallback_invalid_cb"), watcher, listener, addressBook, +var t = async_test(document.title), watcher, listener, addressBook, exceptionName = "TypeMismatchError", incorrectCallback; t.step(function () { addressBook = tizen.contact.getDefaultAddressBook(); @@ -55,7 +55,7 @@ t.step(function () { assert_unreached("Invalid errorCallback invoked"); }) }; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { listener = addressBook.addChangeListener(watcher, incorrectCallback); }, exceptionName + " should be thrown - given incorrect success callback."); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_exist.html b/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_exist.html index 46b1f38b8..33b9cb829 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_exist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_exist.html @@ -23,7 +23,7 @@ Authors: AddressBook_addChangeListener_exist - + @@ -38,7 +38,7 @@ test(function () { var addressbook = tizen.contact.getDefaultAddressBook(); assert_true("addChangeListener" in addressbook, "No addChangeListener method in addressbook."); check_method_exists(addressbook, "addChangeListener"); -}, "AddressBook_addChangeListener_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_missarg.html b/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_missarg.html index b793ddf9b..3b2a3497f 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_missarg.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_missarg.html @@ -25,7 +25,7 @@ Authors: AddressBook_addChangeListener_missarg - + @@ -35,7 +35,7 @@ Authors: //==== TEST: AddressBook_addChangeListener_missarg -//==== LABEL check if AddressBook::addChangeListener() method called with invalid arguments throws an exception +//==== LABEL Check if AddressBook::addChangeListener() method called with invalid arguments throws an exception //==== PRIORITY P2 //==== SPEC Tizen Web API:Social:Contact:AddressBook:addChangeListener M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html @@ -44,12 +44,10 @@ test(function () { var addressBook; addressBook = tizen.contact.getDefaultAddressBook(); - assert_throws({ - name: TYPE_MISMATCH_ERR - }, function () { + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { addressBook.addChangeListener(); }); -}, "AddressBook_addChangeListener_missarg"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_successCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_successCallback_TypeMismatch.html index 815130cf9..514bf074f 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_successCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_successCallback_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_addChangeListener_successCallback_TypeMismatch - + @@ -44,12 +44,12 @@ test(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { listener = addressBook.addChangeListener(param); }, exceptionName + " should be thrown - given incorrect."); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_successCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_successCallback_invalid_cb.html index 82ccdc578..3590bed63 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_successCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_successCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: AddressBook_addChangeListener_successCallback_invalid_cb - + @@ -35,7 +35,7 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:addChangeListener M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTL -var t = async_test("AddressBook_addChangeListener_successCallback_invalid_cb"), listener, addressBook, exceptionName, +var t = async_test(document.title), listener, addressBook, exceptionName, packageInformationEventCallback, incorrectListeners, i; t.step(function () { addressBook = tizen.contact.getDefaultAddressBook(); @@ -43,7 +43,7 @@ t.step(function () { for(i = 0; i < incorrectListeners.length; i++) { packageInformationEventCallback = incorrectListeners[i][0]; exceptionName = incorrectListeners[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { listener = addressBook.addChangeListener(packageInformationEventCallback); }, exceptionName + " should be thrown - given incorrect successCallback."); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_with_errorCallback.html b/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_with_errorCallback.html index 7f271bac7..81467dce3 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_with_errorCallback.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_with_errorCallback.html @@ -23,7 +23,7 @@ Authors: AddressBook_addChangeListener_with_errorCallback - + @@ -34,7 +34,7 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:addChangeListener M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA -var t = async_test("AddressBook_addChangeListener_with_errorCallback"), watcher, listener, addressBook, errorCallback; +var t = async_test(document.title), watcher, listener, addressBook, errorCallback; t.step(function () { addressBook = tizen.contact.getDefaultAddressBook(); watcher = { diff --git a/tct-contact-tizen-tests/contact/AddressBook_addGroup.html b/tct-contact-tizen-tests/contact/AddressBook_addGroup.html index 7bcdb74df..3c5647d1c 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addGroup.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addGroup.html @@ -23,7 +23,7 @@ Authors: AddressBook_addGroup - + @@ -43,7 +43,7 @@ test(function () { assert_type(getGroup.id, "string", "Check the group id type."); assert_equals(getGroup.name, group.name, "name attribute."); addressBook.removeGroup(group.id); -}, "AddressBook_addGroup"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addGroup_exist.html b/tct-contact-tizen-tests/contact/AddressBook_addGroup_exist.html index 4896b9a02..8e6afda21 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addGroup_exist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addGroup_exist.html @@ -23,7 +23,7 @@ Authors: AddressBook_addGroup_exist - + @@ -38,7 +38,7 @@ test(function () { var addressbook = tizen.contact.getDefaultAddressBook(); assert_true("addGroup" in addressbook, "No addGroup method in addressbook."); check_method_exists(addressbook, "addGroup"); -}, "AddressBook_addGroup_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addGroup_group_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_addGroup_group_TypeMismatch.html index 4412ad686..094e12f1e 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addGroup_group_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addGroup_group_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_addGroup_group_TypeMismatch - + @@ -44,12 +44,12 @@ test(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { listener = addressBook.addGroup(param); }, exceptionName + " should be thrown - given incorrect."); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addGroup_group_invalid_obj.html b/tct-contact-tizen-tests/contact/AddressBook_addGroup_group_invalid_obj.html index ca99ef4c3..68902b923 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addGroup_group_invalid_obj.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addGroup_group_invalid_obj.html @@ -23,7 +23,7 @@ Authors: AddressBook_addGroup_group_invalid_obj - + @@ -41,11 +41,11 @@ test(function () { group = { name: "Company" }; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { addressBook.addGroup(group); - },exceptionName + " should be thrown - given incorrect success callback."); -}, "AddressBook_addGroup_group_invalid_obj"); + }, exceptionName + " should be thrown - given incorrect success callback."); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_addGroup_missarg.html b/tct-contact-tizen-tests/contact/AddressBook_addGroup_missarg.html index 80ed1fd7a..1811edb65 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_addGroup_missarg.html +++ b/tct-contact-tizen-tests/contact/AddressBook_addGroup_missarg.html @@ -25,7 +25,7 @@ Authors: AddressBook_addGroup_missarg - + @@ -35,19 +35,17 @@ Authors: //==== TEST: AddressBook_addGroup_missarg -//==== LABEL check if addGroup() method called with invalid arguments throws an exception +//==== LABEL Check if addGroup() method called with invalid arguments throws an exception //==== PRIORITY P2 //==== SPEC Tizen Web API:Social:Contact:AddressBook:addGroup M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MMA test(function () { var addressBbook = tizen.contact.getDefaultAddressBook(); - assert_throws({ - name: TYPE_MISMATCH_ERR - }, function () { + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { addressBbook.addGroup(); }); -}, "AddressBook_addGroup_missarg"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_add_addressesField_fullSet.html b/tct-contact-tizen-tests/contact/AddressBook_add_addressesField_fullSet.html index fa47ee536..bc540bf71 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add_addressesField_fullSet.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add_addressesField_fullSet.html @@ -34,7 +34,7 @@ Authors: AddressBook_add_addressesField_fullSet - + @@ -82,7 +82,7 @@ test(function () { } finally { defaultAddressBook.remove(contact.id); } -}, "AddressBook_add_addressesField_fullSet"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_add_addressesField_multiple_type.html b/tct-contact-tizen-tests/contact/AddressBook_add_addressesField_multiple_type.html index a86924604..356affb5e 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add_addressesField_multiple_type.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add_addressesField_multiple_type.html @@ -34,7 +34,7 @@ Authors: AddressBook_add_addressesField_multiple_type - + @@ -89,7 +89,7 @@ test(function () { } finally { defaultAddressBook.remove(contact.id); } -}, "AddressBook_add_addressesField_multiple_type"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_add_addressesField_partSet.html b/tct-contact-tizen-tests/contact/AddressBook_add_addressesField_partSet.html index 4434e6fb1..4983a13a9 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add_addressesField_partSet.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add_addressesField_partSet.html @@ -34,7 +34,7 @@ Authors: AddressBook_add_addressesField_partSet - + @@ -69,7 +69,7 @@ test(function () { } finally { defaultAddressBook.remove(contact.id); } -}, "AddressBook_add_addressesField_partSet"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_add_anniversaries_multiple.html b/tct-contact-tizen-tests/contact/AddressBook_add_anniversaries_multiple.html index e3c5ffb74..0e8cc8c79 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add_anniversaries_multiple.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add_anniversaries_multiple.html @@ -34,7 +34,7 @@ Authors: AddressBook_add_anniversaries_multiple - + @@ -77,7 +77,7 @@ test(function () { } finally { defaultAddressBook.remove(contact.id); } -}, "AddressBook_add_anniversaries_multiple"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_add_contact_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_add_contact_TypeMismatch.html index b5567209e..d67df4070 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add_contact_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add_contact_TypeMismatch.html @@ -25,7 +25,7 @@ Authors: AddressBook_add_contact_TypeMismatch - + @@ -34,7 +34,7 @@ Authors: diff --git a/tct-contact-tizen-tests/contact/AddressBook_add_contact_invalid_obj.html b/tct-contact-tizen-tests/contact/AddressBook_add_contact_invalid_obj.html index 7689e5937..5f4818c2f 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add_contact_invalid_obj.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add_contact_invalid_obj.html @@ -25,7 +25,7 @@ Authors: AddressBook_add_contact_invalid_obj - + @@ -34,7 +34,7 @@ Authors: diff --git a/tct-contact-tizen-tests/contact/AddressBook_add_emailsField_multiple.html b/tct-contact-tizen-tests/contact/AddressBook_add_emailsField_multiple.html index f8dc4ede0..cb574caa7 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add_emailsField_multiple.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add_emailsField_multiple.html @@ -34,7 +34,7 @@ Authors: AddressBook_add_emailsField_multiple - + @@ -81,7 +81,7 @@ test(function () { } finally { defaultAddressBook.remove(contact.id); } -}, "AddressBook_add_emailsField_multiple"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_add_exist.html b/tct-contact-tizen-tests/contact/AddressBook_add_exist.html index 371a2f369..6dc6f8fef 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add_exist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add_exist.html @@ -23,7 +23,7 @@ Authors: AddressBook_add_exist - + @@ -39,7 +39,7 @@ test(function () { addressbook = tizen.contact.getDefaultAddressBook(); assert_true("add" in addressbook, "No add method in addressbook."); check_method_exists(addressbook, "add"); -}, "AddressBook_add_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_add_get_remove.html b/tct-contact-tizen-tests/contact/AddressBook_add_get_remove.html index 2cd4561b5..8a7ea033d 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add_get_remove.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add_get_remove.html @@ -34,14 +34,14 @@ Authors: AddressBook_add_get_remove - +
diff --git a/tct-contact-tizen-tests/contact/AddressBook_add_missarg.html b/tct-contact-tizen-tests/contact/AddressBook_add_missarg.html index 2f7ce94be..9ef35b37e 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add_missarg.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add_missarg.html @@ -25,7 +25,7 @@ Authors: AddressBook_add_missarg - + @@ -35,19 +35,17 @@ Authors: //==== TEST: AddressBook_add_missarg -//==== LABEL check if add() method called with invalid arguments throws an exception +//==== LABEL Check if add() method called with invalid arguments throws an exception //==== PRIORITY P2 //==== SPEC Tizen Web API:Social:Contact:AddressBook:add M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MMA test(function () { var addressBook = tizen.contact.getDefaultAddressBook(); - assert_throws({ - name: TYPE_MISMATCH_ERR - }, function () { + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { addressBook.add(); }); -}, "AddressBook_add_missarg"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_add_nameField_fullSet.html b/tct-contact-tizen-tests/contact/AddressBook_add_nameField_fullSet.html index 072c24897..376f06dc7 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add_nameField_fullSet.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add_nameField_fullSet.html @@ -67,7 +67,7 @@ test(function () { assert_not_equals(contact.id, null, "add contact is not null"); defaultAddressBook.remove(contact.id); -}, "AddressBook_add_nameField_fullSet"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_add_nameField_partSet.html b/tct-contact-tizen-tests/contact/AddressBook_add_nameField_partSet.html index 681e3e84a..18a31253a 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add_nameField_partSet.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add_nameField_partSet.html @@ -60,7 +60,7 @@ test(function (){ assert_not_equals(contact.id, null, "add contact is not null"); defaultAddressBook.remove(contact.id); -}, "AddressBook_add_nameField_partSet"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_add_notes_multiple.html b/tct-contact-tizen-tests/contact/AddressBook_add_notes_multiple.html index 48d996bd2..3b9241789 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add_notes_multiple.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add_notes_multiple.html @@ -50,14 +50,14 @@ Authors: test(function () { var defaultAddressBook, contact = new tizen.Contact({ - notes: ["notes_1","notes_2","notes_3"] + notes: ["notes_1", "notes_2", "notes_3"] }); defaultAddressBook = tizen.contact.getDefaultAddressBook(); defaultAddressBook.add(contact); assert_not_equals(contact.id, null, "add contact is not null"); defaultAddressBook.remove(contact.id); -}, "AddressBook_add_notes_multiple"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_add_null.html b/tct-contact-tizen-tests/contact/AddressBook_add_null.html index 65a368085..7b9563255 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add_null.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add_null.html @@ -62,7 +62,7 @@ test(function () { assert_not_equals(contact.id, null, "add contact is not null"); defaultAddressBook.remove(contact.id); -}, "AddressBook_add_null"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_add_phoneNumbersField_multiple.html b/tct-contact-tizen-tests/contact/AddressBook_add_phoneNumbersField_multiple.html index becaade32..77940ea66 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add_phoneNumbersField_multiple.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add_phoneNumbersField_multiple.html @@ -62,7 +62,7 @@ test(function () { assert_not_equals(contact.id, null, "add contact is not null"); defaultAddressBook.remove(contact.id); -}, "AddressBook_add_phoneNumbersField_multiple"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_add_remove_get.html b/tct-contact-tizen-tests/contact/AddressBook_add_remove_get.html index 95ab1b31d..c4555e146 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_add_remove_get.html +++ b/tct-contact-tizen-tests/contact/AddressBook_add_remove_get.html @@ -34,8 +34,7 @@ Authors: AddressBook_add_remove_get - - + @@ -43,7 +42,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/AddressBook_extend.html b/tct-contact-tizen-tests/contact/AddressBook_extend.html index df262f051..759be6ed2 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_extend.html +++ b/tct-contact-tizen-tests/contact/AddressBook_extend.html @@ -25,7 +25,7 @@ Authors: AddressBook_extend - + @@ -33,7 +33,7 @@ Authors: diff --git a/tct-contact-tizen-tests/contact/AddressBook_find.html b/tct-contact-tizen-tests/contact/AddressBook_find.html index 0f6eaf320..39fc97040 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_find.html +++ b/tct-contact-tizen-tests/contact/AddressBook_find.html @@ -23,7 +23,7 @@ Authors: AddressBook_find - + @@ -34,9 +34,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MMINA MR -var t = async_test("AddressBook_find"); +var t = async_test(document.title), addressBook, successCallback, contact, returnedValue = null; t.step(function () { - var addressBook, successCallback, contact, returnedValue = null; contact = new tizen.Contact({ name:new tizen.ContactName({ firstName: "John", diff --git a/tct-contact-tizen-tests/contact/AddressBook_find_errorCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_find_errorCallback_TypeMismatch.html index df1f280be..b3dd19623 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_find_errorCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_find_errorCallback_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_find_errorCallback_TypeMismatch - + @@ -35,9 +35,9 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MC -var t = async_test("AddressBook_find_errorCallback_TypeMismatch"); +var t = async_test(document.title), listener, addressBook, conversionTable, param, exceptionName, onSuccess, + i; t.step(function () { - var listener, addressBook, conversionTable, param, exceptionName, onSuccess, i; addressBook = tizen.contact.getDefaultAddressBook(); onSuccess = t.step_func(function (contacts) { assert_unreached("Invalid onSuccess invoked. Contacts = " + contacts); @@ -47,7 +47,7 @@ t.step(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { listener = addressBook.find(onSuccess, param); }, exceptionName + " should be thrown - given incorrect."); diff --git a/tct-contact-tizen-tests/contact/AddressBook_find_errorCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/AddressBook_find_errorCallback_invalid_cb.html index 175a9edc4..194201b98 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_find_errorCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/AddressBook_find_errorCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: AddressBook_find_errorCallback_invalid_cb - + @@ -35,10 +35,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("AddressBook_find_errorCallback_invalid_cb"); +var t = async_test(document.title), addressBook, successCallback, incorrectCallback, exceptionName = "TypeMismatchError"; t.step(function () { - var addressBook, successCallback, incorrectCallback, - exceptionName = "TypeMismatchError"; incorrectCallback = { onerror: t.step_func(function () { assert_unreached("Invalid errorCallback invoked"); @@ -50,10 +48,9 @@ t.step(function () { assert_unreached("Invalid errorCallback invoked. Contacts =" + contacts); }); - assert_throws({name : exceptionName}, - function () { + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { addressBook.find(successCallback, incorrectCallback); - },exceptionName + " should be thrown - given incorrect success callback."); + }, exceptionName + " should be thrown - given incorrect success callback."); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_find_errorCallback_invoked.html b/tct-contact-tizen-tests/contact/AddressBook_find_errorCallback_invoked.html index 231615cc4..172734c02 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_find_errorCallback_invoked.html +++ b/tct-contact-tizen-tests/contact/AddressBook_find_errorCallback_invoked.html @@ -23,7 +23,7 @@ Authors: AddressBook_find_errorCallback_invoked - + @@ -35,9 +35,8 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MERRCB -var t = async_test("AddressBook_find_errorCallback_invoked"); +var t = async_test(document.title), addressBook, successCallback, contact, errorCallback, filter, sortingMode; t.step(function () { - var addressBook, successCallback, contact, errorCallback, filter, sortingMode; contact = new tizen.Contact({ name:new tizen.ContactName({ firstName: "John", diff --git a/tct-contact-tizen-tests/contact/AddressBook_find_exist.html b/tct-contact-tizen-tests/contact/AddressBook_find_exist.html index 3d46a0904..cad63861c 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_find_exist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_find_exist.html @@ -23,7 +23,7 @@ Authors: AddressBook_find_exist - + @@ -38,7 +38,7 @@ test(function () { var addressbook = tizen.contact.getDefaultAddressBook(); assert_true("find" in addressbook, "No find method in addressbook."); check_method_exists(addressbook, "find"); -}, "AddressBook_find_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_find_filter_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_find_filter_TypeMismatch.html index 619d31f29..c92fcce07 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_find_filter_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_find_filter_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_find_filter_TypeMismatch - + @@ -35,10 +35,9 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MC -var t = async_test("AddressBook_find_filter_TypeMismatch"); +var t = async_test(document.title), listener, conversionTable, filter, exceptionName, findSuccess, i, findError, + addressBook = tizen.contact.getDefaultAddressBook(); t.step(function () { - var listener, conversionTable, filter, exceptionName, findSuccess, i, - findError, addressBook = tizen.contact.getDefaultAddressBook(); findSuccess = t.step_func(function (contacts) { assert_unreached("Find() success callback should not be invoked."); @@ -51,7 +50,7 @@ t.step(function () { filter = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { listener = addressBook.find(findSuccess, findError, filter); }, "Given incorrect filter."); diff --git a/tct-contact-tizen-tests/contact/AddressBook_find_missarg.html b/tct-contact-tizen-tests/contact/AddressBook_find_missarg.html index 1b43bc6f0..220bddece 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_find_missarg.html +++ b/tct-contact-tizen-tests/contact/AddressBook_find_missarg.html @@ -25,7 +25,7 @@ Authors: AddressBook_find_missarg - + @@ -35,19 +35,17 @@ Authors: //==== TEST: AddressBook_find_missarg -//==== LABEL check if AddessBook::find() method called with invalid arguments throws an exception +//==== LABEL Check if AddessBook::find() method called with invalid arguments throws an exception //==== PRIORITY P2 //==== SPEC Tizen Web API:Social:Contact:AddressBook:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MMA test(function () { var addressBook = tizen.contact.getDefaultAddressBook(); - assert_throws({ - name: TYPE_MISMATCH_ERR - }, function () { + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { addressBook.find(); }); -}, "AddressBook_find_missarg"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_find_sortMode_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_find_sortMode_TypeMismatch.html index c4453d179..4f9925d8f 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_find_sortMode_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_find_sortMode_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_find_sortMode_TypeMismatch - + @@ -35,10 +35,9 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MC -var t = async_test("AddressBook_find_sortMode_TypeMismatch"); +var t = async_test(document.title), listener, addressBook, conversionTable, param, exceptionName, findSuccess, + i, findError, filter; t.step(function () { - var listener, addressBook, conversionTable, param, exceptionName, findSuccess, i, - findError, filter; addressBook = tizen.contact.getDefaultAddressBook(); filter = new tizen.AttributeFilter("name.firstName", "CONTAINS", "John"); findSuccess = t.step_func(function (contacts) { @@ -52,7 +51,7 @@ t.step(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { listener = addressBook.find(findSuccess, findError, filter, param); }, exceptionName + " should be thrown - given incorrect."); diff --git a/tct-contact-tizen-tests/contact/AddressBook_find_sortMode_invalid_obj.html b/tct-contact-tizen-tests/contact/AddressBook_find_sortMode_invalid_obj.html index 856caf767..26c540fcf 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_find_sortMode_invalid_obj.html +++ b/tct-contact-tizen-tests/contact/AddressBook_find_sortMode_invalid_obj.html @@ -23,7 +23,7 @@ Authors: AddressBook_find_sortMode_invalid_obj - + @@ -31,14 +31,13 @@ Authors:
+ @@ -43,12 +43,12 @@ test(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { listener = addressBook.find(param); }, exceptionName + " should be thrown - given incorrect."); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_find_successCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/AddressBook_find_successCallback_invalid_cb.html index 4b76ee79f..2e1880ada 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_find_successCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/AddressBook_find_successCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: AddressBook_find_successCallback_invalid_cb - + @@ -35,10 +35,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:AddressBook:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("AddressBook_find_successCallback_invalid_cb"); +var t = async_test(document.title), addressBook, incorrectCallback, exceptionName = "TypeMismatchError"; t.step(function () { - var addressBook, incorrectCallback, - exceptionName = "TypeMismatchError"; incorrectCallback = { onsuccess: t.step_func(function () { assert_unreached("Invalid onsuccess invoked"); @@ -46,10 +44,10 @@ t.step(function () { }; addressBook = tizen.contact.getDefaultAddressBook(); - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { addressBook.find(incorrectCallback); - },exceptionName + " should be thrown - given incorrect success callback."); + }, exceptionName + " should be thrown - given incorrect success callback."); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_find_with_errorCallback.html b/tct-contact-tizen-tests/contact/AddressBook_find_with_errorCallback.html index 0ec8193ab..edf4c4d33 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_find_with_errorCallback.html +++ b/tct-contact-tizen-tests/contact/AddressBook_find_with_errorCallback.html @@ -23,7 +23,7 @@ Authors: AddressBook_find_with_errorCallback - + @@ -35,9 +35,8 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA -var t = async_test("AddressBook_find_with_errorCallback"); +var t = async_test(document.title), addressBook, successCallback, contact, errorCallback; t.step(function () { - var addressBook, successCallback, contact, errorCallback; contact = new tizen.Contact({ name:new tizen.ContactName({ firstName: "John", diff --git a/tct-contact-tizen-tests/contact/AddressBook_find_with_filter.html b/tct-contact-tizen-tests/contact/AddressBook_find_with_filter.html index ff4b9d6a3..1117073d2 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_find_with_filter.html +++ b/tct-contact-tizen-tests/contact/AddressBook_find_with_filter.html @@ -23,7 +23,7 @@ Authors: AddressBook_find_with_filter - + @@ -35,10 +35,9 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA -var t = async_test("AddressBook_find_with_filter"); +var t = async_test(document.title), addressBook, successCallback, contact, errorCallback, filter, results = false, + i; t.step(function () { - var addressBook, successCallback, contact, errorCallback, filter, - results = false, i; contact = new tizen.Contact({ name:new tizen.ContactName({ firstName: "John", diff --git a/tct-contact-tizen-tests/contact/AddressBook_find_with_sortMode.html b/tct-contact-tizen-tests/contact/AddressBook_find_with_sortMode.html index 94a7f7ac0..0cb2631e0 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_find_with_sortMode.html +++ b/tct-contact-tizen-tests/contact/AddressBook_find_with_sortMode.html @@ -23,7 +23,7 @@ Authors: AddressBook_find_with_sortMode - + @@ -35,9 +35,8 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA -var t = async_test("AddressBook_find_with_sortMode"); +var t = async_test(document.title), addressBook, successCallback, contact, errorCallback, filter, sortingMode; t.step(function () { - var addressBook, successCallback, contact, errorCallback, filter, sortingMode; contact = new tizen.Contact({ name:new tizen.ContactName({ firstName: "John", diff --git a/tct-contact-tizen-tests/contact/AddressBook_get.html b/tct-contact-tizen-tests/contact/AddressBook_get.html index fe57233f8..c5ff64978 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_get.html +++ b/tct-contact-tizen-tests/contact/AddressBook_get.html @@ -23,7 +23,7 @@ Authors: AddressBook_get - + @@ -60,12 +60,10 @@ test(function () { assert_equals(contact.addresses[0].city, contactCopy.addresses[0].city, "contact.addresses[0].city attribute."); assert_equals(contact.addresses[0].streetAddress, contactCopy.addresses[0].streetAddress, "contact.addresses[0].streetAddress attribute."); addressbook.remove(contact.id); - assert_throws({ - name: "NotFoundError" - }, function () { + assert_throws(NOT_FOUND_EXCEPTION, function () { contactCopy = addressbook.get(contact.id); }); -}, "AddressBook_get"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_getGroup.html b/tct-contact-tizen-tests/contact/AddressBook_getGroup.html index e5bac901b..2d220aaa6 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_getGroup.html +++ b/tct-contact-tizen-tests/contact/AddressBook_getGroup.html @@ -23,7 +23,7 @@ Authors: AddressBook_getGroup - + @@ -44,7 +44,7 @@ test(function () { assert_type(group.id, "string", "Check the group id type."); assert_equals(getGroup.name, group.name, "name attribute."); addressBook.removeGroup(group.id); -}, "AddressBook_getGroup"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_getGroup_constructor.html b/tct-contact-tizen-tests/contact/AddressBook_getGroup_constructor.html index 04873d6ca..fe7fe8896 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_getGroup_constructor.html +++ b/tct-contact-tizen-tests/contact/AddressBook_getGroup_constructor.html @@ -25,7 +25,7 @@ Authors: AddressBook_getGroup_constructor - + @@ -35,7 +35,7 @@ Authors: //==== TEST: AddressBook_getGroup_constructor -//==== LABEL check if getGroup() method returns the group with the given identifier +//==== LABEL Check if getGroup() method returns the group with the given identifier //==== PRIORITY P2 //==== SPEC Tizen Web API:Social:Contact:AddressBook:getGroup M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html @@ -53,7 +53,7 @@ test(function () { assert_type(rGroup, "object", "Retrieved an group"); assert_true(group.id === rGroup.id, "See if group.id equals"); -}, "AddressBook_getGroup_constructor"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_getGroup_exist.html b/tct-contact-tizen-tests/contact/AddressBook_getGroup_exist.html index 4f67a4e93..3510f812f 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_getGroup_exist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_getGroup_exist.html @@ -23,7 +23,7 @@ Authors: AddressBook_getGroup_exist - + @@ -39,7 +39,7 @@ test(function () { var addressbook = tizen.contact.getDefaultAddressBook(); assert_true("getGroup" in addressbook, "No getGroup method in addressbook."); check_method_exists(addressbook, "getGroup"); -}, "AddressBook_getGroup_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_getGroups.html b/tct-contact-tizen-tests/contact/AddressBook_getGroups.html index 4ab21ba3a..c023cf83d 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_getGroups.html +++ b/tct-contact-tizen-tests/contact/AddressBook_getGroups.html @@ -23,7 +23,7 @@ Authors: AddressBook_getGroups - + @@ -60,7 +60,7 @@ test(function () { assert_true(result_2, "chech if the group_2 exists."); addressBook.removeGroup(group_1.id); addressBook.removeGroup(group_2.id); -}, "AddressBook_getGroups"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_getGroups_exist.html b/tct-contact-tizen-tests/contact/AddressBook_getGroups_exist.html index 7be32f41f..d7d061bb7 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_getGroups_exist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_getGroups_exist.html @@ -23,7 +23,7 @@ Authors: AddressBook_getGroups_exist - + @@ -39,7 +39,7 @@ test(function () { var addressbook = tizen.contact.getDefaultAddressBook(); assert_true("getGroups" in addressbook, "No getGroups method in addressbook."); check_method_exists(addressbook, "getGroups"); -}, "AddressBook_getGroups_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_getGroups_extra_argument.html b/tct-contact-tizen-tests/contact/AddressBook_getGroups_extra_argument.html index 220bd99c5..0d42168ee 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_getGroups_extra_argument.html +++ b/tct-contact-tizen-tests/contact/AddressBook_getGroups_extra_argument.html @@ -23,7 +23,7 @@ Authors: AddressBook_getGroups_extra_argument - + @@ -38,7 +38,7 @@ Authors: test(function () { var addressbook = tizen.contact.getDefaultAddressBook(); checkExtraArgument(addressbook, "getGroups"); -}, "AddressBook_getGroups_extra_argument"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_get_check_fields.html b/tct-contact-tizen-tests/contact/AddressBook_get_check_fields.html index be1388704..4c26bf050 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_get_check_fields.html +++ b/tct-contact-tizen-tests/contact/AddressBook_get_check_fields.html @@ -25,7 +25,7 @@ Authors: AddressBook_get_check_fields - + @@ -34,7 +34,7 @@ Authors: diff --git a/tct-contact-tizen-tests/contact/AddressBook_get_exist.html b/tct-contact-tizen-tests/contact/AddressBook_get_exist.html index 396f36934..1d388c2ff 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_get_exist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_get_exist.html @@ -23,7 +23,7 @@ Authors: AddressBook_get_exist - + @@ -39,7 +39,7 @@ test(function () { var addressbook = tizen.contact.getDefaultAddressBook(); assert_true("get" in addressbook, "No get method in addressbook."); check_method_exists(addressbook, "get"); -}, "AddressBook_get_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_id_attribute.html b/tct-contact-tizen-tests/contact/AddressBook_id_attribute.html index ba8c94fac..f89074737 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_id_attribute.html +++ b/tct-contact-tizen-tests/contact/AddressBook_id_attribute.html @@ -23,7 +23,7 @@ Authors: AddressBook_id_attribute - + @@ -43,7 +43,7 @@ test(function () { addressbook.id = newValue; assert_equals(addressbook.id, "0", "id attribute."); assert_type(addressbook.id, "string", "chceck the id type"); -}, "AddressBook_id_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_name_attribute.html b/tct-contact-tizen-tests/contact/AddressBook_name_attribute.html index 37b7cda29..549807c52 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_name_attribute.html +++ b/tct-contact-tizen-tests/contact/AddressBook_name_attribute.html @@ -23,7 +23,7 @@ Authors: AddressBook_name_attribute - + @@ -43,7 +43,7 @@ test(function () { addressbook.name = newValue + "newValue"; assert_equals(addressbook.name, oldValue, "id attribute."); assert_type(addressbook.name, "string", "chceck the name type"); -}, "AddressBook_name_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_notexist.html b/tct-contact-tizen-tests/contact/AddressBook_notexist.html index 57f3ea3b1..61d34960e 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_notexist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_notexist.html @@ -25,7 +25,7 @@ Authors: AddressBook_notexist - + @@ -33,7 +33,7 @@ Authors: diff --git a/tct-contact-tizen-tests/contact/AddressBook_readOnly_attribute.html b/tct-contact-tizen-tests/contact/AddressBook_readOnly_attribute.html index 4c99b9e0e..d4b43413d 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_readOnly_attribute.html +++ b/tct-contact-tizen-tests/contact/AddressBook_readOnly_attribute.html @@ -23,7 +23,7 @@ Authors: AddressBook_readOnly_attribute - + @@ -43,7 +43,7 @@ test(function () { addressbook.readOnly = newValue; assert_equals(addressbook.readOnly, false, "readOnly attribute."); assert_type(addressbook.readOnly, "boolean", "chceck the redOnly type"); -}, "AddressBook_readOnly_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_remove.html b/tct-contact-tizen-tests/contact/AddressBook_remove.html index 712ae10b2..1b73cd911 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_remove.html +++ b/tct-contact-tizen-tests/contact/AddressBook_remove.html @@ -23,7 +23,7 @@ Authors: AddressBook_remove - + @@ -57,12 +57,10 @@ test(function () { returnedValue = addressbook.remove(contact.id); assert_equals(returnedValue, undefined, "Incorrect value returned."); - assert_throws({ - name: "NotFoundError" - }, function () { + assert_throws(NOT_FOUND_EXCEPTION, function () { contactCopy = addressbook.get(contact.id); }); -}, "AddressBook_remove"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_removeBatch.html b/tct-contact-tizen-tests/contact/AddressBook_removeBatch.html index 25b0825cf..7bd451537 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_removeBatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_removeBatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_removeBatch - + @@ -35,12 +35,11 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA MR MAST -var t = async_test("AddressBook_removeBatch"); +var t = async_test(document.title), contact1, contact2, addressbook, removeBatchSuccess, removeBatchError, + contactCopy, returnedValue = 0; t.step(function () { - var contact_1, contact_2, addressbook, removeBatchSuccess, removeBatchError, - contactCopy, returnedValue = 0; addressbook = tizen.contact.getDefaultAddressBook(); - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" @@ -49,7 +48,7 @@ t.step(function () { phoneNumbers: [new tizen.ContactPhoneNumber("123456789")] }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -59,15 +58,11 @@ t.step(function () { }); removeBatchSuccess = t.step_func(function () { - assert_throws({ - name: "NotFoundError" - }, function () { - contactCopy = addressbook.get(contact_1.id); + assert_throws(NOT_FOUND_EXCEPTION, function () { + contactCopy = addressbook.get(contact1.id); }); - assert_throws({ - name: "NotFoundError" - }, function () { - contactCopy = addressbook.get(contact_2.id); + assert_throws(NOT_FOUND_EXCEPTION, function () { + contactCopy = addressbook.get(contact2.id); }); assert_equals(returnedValue, undefined, "Incorrect value returned."); t.done(); @@ -75,9 +70,9 @@ t.step(function () { removeBatchError = t.step_func(function (error) { assert_unreached("Invalid removeBatchError invoked: " + error.name + ": " + error.message); }); - addressbook.add(contact_1); - addressbook.add(contact_2); - returnedValue = addressbook.removeBatch([contact_1.id, contact_2.id], removeBatchSuccess, removeBatchError); + addressbook.add(contact1); + addressbook.add(contact2); + returnedValue = addressbook.removeBatch([contact1.id, contact2.id], removeBatchSuccess, removeBatchError); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_errorCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_errorCallback_TypeMismatch.html index 59bf24bc8..40693e4fd 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_errorCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_errorCallback_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_removeBatch_errorCallback_TypeMismatch - + @@ -36,12 +36,11 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MC -var t = async_test("AddressBook_removeBatch_errorCallback_TypeMismatch"); +var t = async_test(document.title), listener, addressBook, conversionTable, param, exceptionName, contact1, + contact2, i, onSuccess; t.step(function () { - var listener, addressBook, conversionTable, param, exceptionName, - contact_1, contact_2, i, onSuccess; addressBook = tizen.contact.getDefaultAddressBook(); - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" @@ -50,7 +49,7 @@ t.step(function () { phoneNumbers: [new tizen.ContactPhoneNumber("123456789")] }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -61,20 +60,20 @@ t.step(function () { onSuccess = t.step_func(function (contacts) { assert_unreached("Invalid onSuccess invoked. Contacts = " + contacts); }); - addressBook.add(contact_1); - addressBook.add(contact_2); + addressBook.add(contact1); + addressBook.add(contact2); conversionTable = getTypeConversionExceptions("functionObject", true); for (i = 0; i < conversionTable.length; i++) { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { - listener = addressBook.removeBatch([contact_1.id, contact_2.id], onSuccess, param); + listener = addressBook.removeBatch([contact1.id, contact2.id], onSuccess, param); }, exceptionName + " should be thrown - given incorrect."); } - addressBook.remove(contact_1.id); - addressBook.remove(contact_2.id); + addressBook.remove(contact1.id); + addressBook.remove(contact2.id); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_errorCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_errorCallback_invalid_cb.html index 9fcd1d2dc..d625aa0d8 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_errorCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_errorCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: AddressBook_removeBatch_errorCallback_invalid_cb - + @@ -36,12 +36,10 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("AddressBook_removeBatch_errorCallback_invalid_cb"); +var t = async_test(document.title), contact1, contact2, addressbook, incorrectCallback, onSuccess, exceptionName = "TypeMismatchError"; t.step(function () { - var contact_1, contact_2, addressbook, incorrectCallback, onSuccess, - exceptionName = "TypeMismatchError"; addressbook = tizen.contact.getDefaultAddressBook(); - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" @@ -50,7 +48,7 @@ t.step(function () { phoneNumbers: [new tizen.ContactPhoneNumber("123456789")] }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -66,14 +64,14 @@ t.step(function () { onSuccess = t.step_func(function () { assert_unreached("Invalid onSuccess invoked"); }); - addressbook.add(contact_1); - addressbook.add(contact_2); - assert_throws({name : exceptionName}, + addressbook.add(contact1); + addressbook.add(contact2); + assert_throws({name: exceptionName}, function () { - addressbook.removeBatch([contact_1.id, contact_2.id], onSuccess, incorrectCallback); - },exceptionName + " should be thrown - given incorrect success callback."); - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + addressbook.removeBatch([contact1.id, contact2.id], onSuccess, incorrectCallback); + }, exceptionName + " should be thrown - given incorrect success callback."); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_errorCallback_invoked.html b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_errorCallback_invoked.html index 6105fb6a7..62635c2be 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_errorCallback_invoked.html +++ b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_errorCallback_invoked.html @@ -23,7 +23,7 @@ Authors: AddressBook_removeBatch_errorCallback_invoked - + @@ -35,11 +35,11 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MERRCB -var t = async_test("AddressBook_removeBatch_errorCallback_invoked"); +var t = async_test(document.title), contact1, contact2, addressbook, removeBatchError, removeBatchSuccess, + returnedValue = null; t.step(function () { - var contact_1, contact_2, addressbook, removeBatchError, removeBatchSuccess, returnedValue = null; addressbook = tizen.contact.getDefaultAddressBook(); - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" @@ -48,7 +48,7 @@ t.step(function () { phoneNumbers: [new tizen.ContactPhoneNumber("123456789")] }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -64,8 +64,8 @@ t.step(function () { assert_equals(returnedValue, undefined, "Incorrect value returned."); t.done(); }); - addressbook.add(contact_1); - addressbook.add(contact_2); + addressbook.add(contact1); + addressbook.add(contact2); returnedValue = addressbook.removeBatch([-1], removeBatchSuccess, removeBatchError); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_exist.html b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_exist.html index eb5defd04..32ff5d597 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_exist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_exist.html @@ -23,7 +23,7 @@ Authors: AddressBook_removeBatch_exist - + @@ -39,7 +39,7 @@ test(function () { var addressbook = tizen.contact.getDefaultAddressBook(); assert_true("removeBatch" in addressbook, "No removeBatch method in addressbook."); check_method_exists(addressbook, "removeBatch"); -}, "AddressBook_removeBatch_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_ids_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_ids_TypeMismatch.html index a55281b27..1b415c63b 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_ids_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_ids_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_removeBatch_ids_TypeMismatch - + @@ -45,12 +45,12 @@ test(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { listener = addressBook.removeBatch(param); }, exceptionName + " should be thrown - given incorrect."); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_missarg.html b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_missarg.html index aea911954..68b2f7948 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_missarg.html +++ b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_missarg.html @@ -25,7 +25,7 @@ Authors: AddressBook_removeBatch_missarg - + @@ -34,7 +34,7 @@ Authors: diff --git a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_successCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_successCallback_TypeMismatch.html index 806664f13..d982d02ed 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_successCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_successCallback_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_removeBatch_successCallback_TypeMismatch - + @@ -38,9 +38,9 @@ Authors: test(function () { var listener, addressBook, conversionTable, param, exceptionName, - contact_1, contact_2, i; + contact1, contact2, i; addressBook = tizen.contact.getDefaultAddressBook(); - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" @@ -49,7 +49,7 @@ test(function () { phoneNumbers: [new tizen.ContactPhoneNumber("123456789")] }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -57,21 +57,21 @@ test(function () { emails: [new tizen.ContactEmailAddress("user2@domain.com")], phoneNumbers: [new tizen.ContactPhoneNumber("987654321")] }); - addressBook.add(contact_1); - addressBook.add(contact_2); + addressBook.add(contact1); + addressBook.add(contact2); conversionTable = getTypeConversionExceptions("functionObject", true); for (i = 0; i < conversionTable.length; i++) { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { - listener = addressBook.removeBatch([contact_1.id, contact_2.id], param); + listener = addressBook.removeBatch([contact1.id, contact2.id], param); }, exceptionName + " should be thrown - given incorrect."); } - addressBook.remove(contact_1.id); - addressBook.remove(contact_2.id); -}, "AddressBook_removeBatch_successCallback_TypeMismatch"); + addressBook.remove(contact1.id); + addressBook.remove(contact2.id); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_successCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_successCallback_invalid_cb.html index bfc6a1ce9..efc07ea4f 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_successCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_successCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: AddressBook_removeBatch_successCallback_invalid_cb - + @@ -36,12 +36,10 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("AddressBook_removeBatch_successCallback_invalid_cb"); +var t = async_test(document.title), contact1, contact2, addressbook, incorrectCallback, exceptionName = "TypeMismatchError"; t.step(function () { - var contact_1, contact_2, addressbook, incorrectCallback, - exceptionName = "TypeMismatchError"; addressbook = tizen.contact.getDefaultAddressBook(); - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" @@ -50,7 +48,7 @@ t.step(function () { phoneNumbers: [new tizen.ContactPhoneNumber("123456789")] }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -63,14 +61,14 @@ t.step(function () { assert_unreached("Invalid onsuccess invoked"); }) }; - addressbook.add(contact_1); - addressbook.add(contact_2); - assert_throws({name : exceptionName}, + addressbook.add(contact1); + addressbook.add(contact2); + assert_throws({name: exceptionName}, function () { - addressbook.removeBatch([contact_1.id, contact_2.id], incorrectCallback); - },exceptionName + " should be thrown - given incorrect success callback."); - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + addressbook.removeBatch([contact1.id, contact2.id], incorrectCallback); + }, exceptionName + " should be thrown - given incorrect success callback."); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_with_errorCallback.html b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_with_errorCallback.html index de5f3de7c..de66e1ea9 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_with_errorCallback.html +++ b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_with_errorCallback.html @@ -23,7 +23,7 @@ Authors: AddressBook_removeBatch_with_errorCallback - + @@ -35,11 +35,11 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA MR -var t = async_test("AddressBook_removeBatch_with_errorCallback"); +var t = async_test(document.title), contact1, contact2, addressbook, removeBatchError, removeBatchSuccess, + returnedValue = null; t.step(function () { - var contact_1, contact_2, addressbook, removeBatchError, removeBatchSuccess, returnedValue = null; addressbook = tizen.contact.getDefaultAddressBook(); - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" @@ -48,7 +48,7 @@ t.step(function () { phoneNumbers: [new tizen.ContactPhoneNumber("123456789")] }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -64,10 +64,10 @@ t.step(function () { removeBatchError = t.step_func(function (error) { assert_unreached("Invalid removeBatchError invoked: " + error.name + ": " + error.message); }); - addressbook.add(contact_1); - addressbook.add(contact_2); + addressbook.add(contact1); + addressbook.add(contact2); - returnedValue = addressbook.removeBatch([contact_1.id, contact_2.id], removeBatchSuccess, removeBatchError); + returnedValue = addressbook.removeBatch([contact1.id, contact2.id], removeBatchSuccess, removeBatchError); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_with_successCallback.html b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_with_successCallback.html index f82b0b4d6..8d73bba4f 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_with_successCallback.html +++ b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_with_successCallback.html @@ -23,7 +23,7 @@ Authors: AddressBook_removeBatch_with_successCallback - + @@ -35,11 +35,10 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA MR -var t = async_test("AddressBook_removeBatch_with_successCallback"); +var t = async_test(document.title), contact1, contact2, addressbook, removeBatchSuccess, returnedValue = null; t.step(function () { - var contact_1, contact_2, addressbook, removeBatchSuccess, returnedValue = null; addressbook = tizen.contact.getDefaultAddressBook(); - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" @@ -48,7 +47,7 @@ t.step(function () { phoneNumbers: [new tizen.ContactPhoneNumber("123456789")] }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -62,10 +61,10 @@ t.step(function () { t.done(); }); - addressbook.add(contact_1); - addressbook.add(contact_2); + addressbook.add(contact1); + addressbook.add(contact2); - returnedValue = addressbook.removeBatch([contact_1.id, contact_2.id], removeBatchSuccess); + returnedValue = addressbook.removeBatch([contact1.id, contact2.id], removeBatchSuccess); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_without_successCallback.html b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_without_successCallback.html old mode 100755 new mode 100644 index d0e3abb42..219a3f146 --- a/tct-contact-tizen-tests/contact/AddressBook_removeBatch_without_successCallback.html +++ b/tct-contact-tizen-tests/contact/AddressBook_removeBatch_without_successCallback.html @@ -25,7 +25,7 @@ Authors: AddressBook_removeBatch_without_successCallback - + @@ -33,35 +33,35 @@ Authors:
+ @@ -48,15 +48,13 @@ test(function () { }; listener = addressBook.addChangeListener(watcher); - assert_type(listener, "number", "Check the listener id type."); + assert_type(listener, "long", "Check the listener id type."); returnedValue = addressBook.removeChangeListener(listener); - assert_throws({ - name: "NotFoundError" - }, function () { + assert_throws(NOT_FOUND_EXCEPTION, function () { addressBook.removeChangeListener(listener); }); assert_equals(returnedValue, undefined, "Incorrect value returned."); -}, "AddressBook_removeChangeListener"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_removeChangeListener_exist.html b/tct-contact-tizen-tests/contact/AddressBook_removeChangeListener_exist.html index dabd011ee..fad2b2ee7 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_removeChangeListener_exist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_removeChangeListener_exist.html @@ -23,7 +23,7 @@ Authors: AddressBook_removeChangeListener_exist - + @@ -39,7 +39,7 @@ test(function () { var addressbook = tizen.contact.getDefaultAddressBook(); assert_true("removeChangeListener" in addressbook, "No removeChangeListener method in addressbook."); check_method_exists(addressbook, "removeChangeListener"); -}, "AddressBook_removeChangeListener_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_removeGroup.html b/tct-contact-tizen-tests/contact/AddressBook_removeGroup.html index 8afb10a9e..9a4278c92 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_removeGroup.html +++ b/tct-contact-tizen-tests/contact/AddressBook_removeGroup.html @@ -25,7 +25,7 @@ Authors: AddressBook_removeGroup - + @@ -35,7 +35,7 @@ Authors: //==== TEST: AddressBook_removeGroup -//==== LABEL check if removeGroup() method removes a group from the address book correctly +//==== LABEL Check if removeGroup() method removes a group from the address book correctly //==== PRIORITY P2 //==== SPEC Tizen Web API:Social:Contact:AddressBook:removeGroup M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html @@ -48,12 +48,10 @@ test(function () { addressBook.addGroup(group); returnedValue = addressBook.removeGroup(group.id); assert_equals(returnedValue, undefined, "returnedValue check"); - assert_throws({ - name: "NotFoundError" - }, function () { + assert_throws(NOT_FOUND_EXCEPTION, function () { addressBook.getGroup(group.id); }); -}, "AddressBook_removeGroup"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_removeGroup_exist.html b/tct-contact-tizen-tests/contact/AddressBook_removeGroup_exist.html index bf909eb30..487c383e7 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_removeGroup_exist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_removeGroup_exist.html @@ -23,7 +23,7 @@ Authors: AddressBook_removeGroup_exist - + @@ -39,7 +39,7 @@ test(function () { var addressbook = tizen.contact.getDefaultAddressBook(); assert_true("removeGroup" in addressbook, "No removeGroup method in addressbook."); check_method_exists(addressbook, "removeGroup"); -}, "AddressBook_removeGroup_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_remove_exist.html b/tct-contact-tizen-tests/contact/AddressBook_remove_exist.html index 23edcf832..6d9319c3a 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_remove_exist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_remove_exist.html @@ -23,7 +23,7 @@ Authors: AddressBook_remove_exist - + @@ -39,7 +39,7 @@ test(function () { var addressbook = tizen.contact.getDefaultAddressBook(); assert_true("remove" in addressbook, "No remove method in addressbook."); check_method_exists(addressbook, "remove"); -}, "AddressBook_remove_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_update.html b/tct-contact-tizen-tests/contact/AddressBook_update.html index 965c7fc2d..68354cae0 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_update.html +++ b/tct-contact-tizen-tests/contact/AddressBook_update.html @@ -23,7 +23,7 @@ Authors: AddressBook_update - + @@ -68,7 +68,7 @@ test(function () { assert_equals(getContact.addresses[0].city, "Chrzaszczyzewoszyce", "contact.addresses[0].city attribute."); assert_equals(getContact.addresses[0].streetAddress, "Polna 1/4", "contact.addresses[0].streetAddress attribute."); addressbook.remove(getContact.id); -}, "AddressBook_update"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_updateBatch.html b/tct-contact-tizen-tests/contact/AddressBook_updateBatch.html index d05569fe2..76ed73670 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_updateBatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_updateBatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_updateBatch - + @@ -35,19 +35,18 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA MAST MR -var t = async_test("AddressBook_updateBatch"); +var t = async_test(document.title), contact1, contact2, addressbook, updateBatchError, updateBatchSuccess, + getContact1, getContact2, getContact3, getContact4, returnedValue = null; t.step(function () { - var contact_1, contact_2, addressbook, updateBatchError, updateBatchSuccess, getContact_1, - getContact_2, getContact_3, getContact_4, returnedValue = null; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -58,32 +57,32 @@ t.step(function () { assert_unreached("Invalid errorCallback invoked: " + error.name + ": " + error.message); }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); - getContact_1 = addressbook.get(contact_1.id); - getContact_2 = addressbook.get(contact_2.id); - getContact_1.name.firstName = "Marcin"; - getContact_1.name.lastName = "Nowak"; - getContact_2.name.firstName = "Beata"; - getContact_2.name.lastName = "Grzesiak"; + addressbook.add(contact1); + addressbook.add(contact2); + getContact1 = addressbook.get(contact1.id); + getContact2 = addressbook.get(contact2.id); + getContact1.name.firstName = "Marcin"; + getContact1.name.lastName = "Nowak"; + getContact2.name.firstName = "Beata"; + getContact2.name.lastName = "Grzesiak"; updateBatchSuccess = t.step_func(function () { - getContact_3 = addressbook.get(contact_1.id); - getContact_4 = addressbook.get(contact_2.id); - assert_equals(getContact_3.name.firstName, "Marcin", "getContact_3.name.firstName attribute."); - assert_equals(getContact_3.name.lastName, "Nowak", "getContact_3.name.lastName attribute."); + getContact3 = addressbook.get(contact1.id); + getContact4 = addressbook.get(contact2.id); + assert_equals(getContact3.name.firstName, "Marcin", "getContact3.name.firstName attribute."); + assert_equals(getContact3.name.lastName, "Nowak", "getContact3.name.lastName attribute."); - assert_equals(getContact_4.name.firstName, "Beata", "getContact_4.name.firstName attribute."); - assert_equals(getContact_4.name.lastName, "Grzesiak", "getContact_4.name.lastName attribute."); + assert_equals(getContact4.name.firstName, "Beata", "getContact4.name.firstName attribute."); + assert_equals(getContact4.name.lastName, "Grzesiak", "getContact4.name.lastName attribute."); - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); assert_equals(returnedValue, undefined, "Incorrect value returned."); t.done(); }); - returnedValue = addressbook.updateBatch([getContact_1, getContact_2], updateBatchSuccess, updateBatchError); + returnedValue = addressbook.updateBatch([getContact1, getContact2], updateBatchSuccess, updateBatchError); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_contacts_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_contacts_TypeMismatch.html index e0897cfd2..c11831c11 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_contacts_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_contacts_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_updateBatch_contacts_TypeMismatch - + @@ -45,12 +45,12 @@ test(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { addressBook.updateBatch(param); }, exceptionName + " should be thrown - given incorrect."); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_errorCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_errorCallback_TypeMismatch.html index 74bdc6776..75991135f 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_errorCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_errorCallback_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_updateBatch_errorCallback_TypeMismatch - + @@ -36,19 +36,18 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MC -var t = async_test("AddressBook_updateBatch_errorCallback_TypeMismatch"); +var t = async_test(document.title), addressBook, conversionTable, param, exceptionName, i, contact1, contact2, + getContact1, getContact2, updateBatchSuccess; t.step(function () { - var addressBook, conversionTable, param, exceptionName, i, - contact_1, contact_2, getContact_1, getContact_2, updateBatchSuccess; addressBook = tizen.contact.getDefaultAddressBook(); - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName:"Jeffrey", lastName:"Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName:"Elton", lastName:"John" @@ -58,26 +57,26 @@ t.step(function () { updateBatchSuccess = t.step_func(function (contacts) { assert_unreached("Invalid updateBatchSuccess invoked.Contacts = " + contacts); }); - addressBook.add(contact_1); - addressBook.add(contact_2); - getContact_1 = addressBook.get(contact_1.id); - getContact_2 = addressBook.get(contact_2.id); - getContact_1.name.firstName = "Marcin"; - getContact_1.name.lastName = "Nowak"; - getContact_2.name.firstName = "Beata"; - getContact_2.name.lastName = "Grzesiak"; + addressBook.add(contact1); + addressBook.add(contact2); + getContact1 = addressBook.get(contact1.id); + getContact2 = addressBook.get(contact2.id); + getContact1.name.firstName = "Marcin"; + getContact1.name.lastName = "Nowak"; + getContact2.name.firstName = "Beata"; + getContact2.name.lastName = "Grzesiak"; conversionTable = getTypeConversionExceptions("functionObject", true); for (i = 0; i < conversionTable.length; i++) { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { - addressBook.updateBatch([getContact_1, getContact_2], updateBatchSuccess, param); + addressBook.updateBatch([getContact1, getContact2], updateBatchSuccess, param); }, exceptionName + " should be thrown - given incorrect."); } - addressBook.remove(contact_1.id); - addressBook.remove(contact_2.id); + addressBook.remove(contact1.id); + addressBook.remove(contact2.id); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_errorCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_errorCallback_invalid_cb.html index 8b0646591..37a87f32b 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_errorCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_errorCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: AddressBook_updateBatch_errorCallback_invalid_cb - + @@ -36,32 +36,31 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("AddressBook_updateBatch_errorCallback_invalid_cb"); +var t = async_test(document.title), contact1, contact2, addressbook, getContact1, incorrectCallback, getContact2, + exceptionName = "TypeMismatchError"; t.step(function () { - var contact_1, contact_2, addressbook, getContact_1, incorrectCallback, - getContact_2, exceptionName = "TypeMismatchError"; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" }) }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); - getContact_1 = addressbook.get(contact_1.id); - getContact_2 = addressbook.get(contact_2.id); - getContact_1.name.firstName = "Marcin"; - getContact_1.name.lastName = "Nowak"; - getContact_2.name.firstName = "Beata"; - getContact_2.name.lastName = "Grzesiak"; + addressbook.add(contact1); + addressbook.add(contact2); + getContact1 = addressbook.get(contact1.id); + getContact2 = addressbook.get(contact2.id); + getContact1.name.firstName = "Marcin"; + getContact1.name.lastName = "Nowak"; + getContact2.name.firstName = "Beata"; + getContact2.name.lastName = "Grzesiak"; incorrectCallback = { onsuccess: t.step_func(function () { @@ -69,13 +68,13 @@ t.step(function () { }) }; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { - addressbook.updateBatch([getContact_1, getContact_2], incorrectCallback); + addressbook.updateBatch([getContact1, getContact2], incorrectCallback); }, exceptionName + " should be thrown - given incorrect success callback."); - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_exist.html b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_exist.html index bf0fe47e7..3dd8c8857 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_exist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_exist.html @@ -23,7 +23,7 @@ Authors: AddressBook_updateBatch_exist - + @@ -39,7 +39,7 @@ test(function () { var addressbook = tizen.contact.getDefaultAddressBook(); assert_true("updateBatch" in addressbook, "No updateBatch method in addressbook."); check_method_exists(addressbook, "updateBatch"); -}, "AddressBook_updateBatch_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_missarg.html b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_missarg.html index be31e3856..154a0d19b 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_missarg.html +++ b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_missarg.html @@ -25,7 +25,7 @@ Authors: AddressBook_updateBatch_missarg - + @@ -43,12 +43,10 @@ Authors: test(function () { var addressBook = tizen.contact.getDefaultAddressBook(); - assert_throws({ - name: TYPE_MISMATCH_ERR - }, function () { + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { addressBook.updateBatch(); }); -}, "AddressBook_updateBatch_missarg"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_successCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_successCallback_TypeMismatch.html index 120e3cca6..a35cb53a0 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_successCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_successCallback_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_updateBatch_successCallback_TypeMismatch - + @@ -38,42 +38,42 @@ Authors: test(function () { var addressBook, conversionTable, param, exceptionName, i, - contact_1, contact_2, getContact_1, getContact_2; + contact1, contact2, getContact1, getContact2; addressBook = tizen.contact.getDefaultAddressBook(); - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" }) }); - addressBook.add(contact_1); - addressBook.add(contact_2); - getContact_1 = addressBook.get(contact_1.id); - getContact_2 = addressBook.get(contact_2.id); - getContact_1.name.firstName = "Marcin"; - getContact_1.name.lastName = "Nowak"; - getContact_2.name.firstName = "Beata"; - getContact_2.name.lastName = "Grzesiak"; + addressBook.add(contact1); + addressBook.add(contact2); + getContact1 = addressBook.get(contact1.id); + getContact2 = addressBook.get(contact2.id); + getContact1.name.firstName = "Marcin"; + getContact1.name.lastName = "Nowak"; + getContact2.name.firstName = "Beata"; + getContact2.name.lastName = "Grzesiak"; conversionTable = getTypeConversionExceptions("functionObject", true); for (i = 0; i < conversionTable.length; i++) { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { - addressBook.updateBatch([getContact_1, getContact_2], param); + addressBook.updateBatch([getContact1, getContact2], param); }, exceptionName + " should be thrown - given incorrect."); } - addressBook.remove(contact_1.id); - addressBook.remove(contact_2.id); -}, "AddressBook_updateBatch_successCallback_TypeMismatch"); + addressBook.remove(contact1.id); + addressBook.remove(contact2.id); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_successCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_successCallback_invalid_cb.html index d23cb642a..02f4ca749 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_successCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_successCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: AddressBook_updateBatch_successCallback_invalid_cb - + @@ -36,45 +36,44 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("AddressBook_updateBatch_successCallback_invalid_cb"); +var t = async_test(document.title), contact1, contact2, addressbook, getContact1, incorrectCallback, getContact2, + exceptionName = "TypeMismatchError"; t.step(function () { - var contact_1, contact_2, addressbook, getContact_1, incorrectCallback, - getContact_2, exceptionName = "TypeMismatchError"; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" }) }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); - getContact_1 = addressbook.get(contact_1.id); - getContact_2 = addressbook.get(contact_2.id); - getContact_1.name.firstName = "Marcin"; - getContact_1.name.lastName = "Nowak"; - getContact_2.name.firstName = "Beata"; - getContact_2.name.lastName = "Grzesiak"; + addressbook.add(contact1); + addressbook.add(contact2); + getContact1 = addressbook.get(contact1.id); + getContact2 = addressbook.get(contact2.id); + getContact1.name.firstName = "Marcin"; + getContact1.name.lastName = "Nowak"; + getContact2.name.firstName = "Beata"; + getContact2.name.lastName = "Grzesiak"; incorrectCallback = { onsuccess: t.step_func(function () { assert_unreached("Invalid onsuccess invoked"); }) }; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { - addressbook.updateBatch([getContact_1, getContact_2], incorrectCallback); - },exceptionName + " should be thrown - given incorrect success callback."); + addressbook.updateBatch([getContact1, getContact2], incorrectCallback); + }, exceptionName + " should be thrown - given incorrect success callback."); - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_with_errorCallback.html b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_with_errorCallback.html index 86491e0a2..4fd230e24 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_with_errorCallback.html +++ b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_with_errorCallback.html @@ -23,7 +23,7 @@ Authors: AddressBook_updateBatch_with_errorCallback - + @@ -35,18 +35,17 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA MR -var t = async_test("AddressBook_updateBatch_with_errorCallback"); +var t = async_test(document.title), contact1, contact2, addressbook, updateBatchError, updateBatchSuccess, + getContact1, getContact2, returnedValue = null; t.step(function () { - var contact_1, contact_2, addressbook, updateBatchError, updateBatchSuccess, getContact_1, - getContact_2, returnedValue = null; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -57,23 +56,23 @@ t.step(function () { assert_unreached("Invalid updateBatchError invoked: " + error.name + ": " + error.message); }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); - getContact_1 = addressbook.get(contact_1.id); - getContact_2 = addressbook.get(contact_2.id); - getContact_1.name.firstName = "Marcin"; - getContact_1.name.lastName = "Nowak"; - getContact_2.name.firstName = "Beata"; - getContact_2.name.lastName = "Grzesiak"; + addressbook.add(contact1); + addressbook.add(contact2); + getContact1 = addressbook.get(contact1.id); + getContact2 = addressbook.get(contact2.id); + getContact1.name.firstName = "Marcin"; + getContact1.name.lastName = "Nowak"; + getContact2.name.firstName = "Beata"; + getContact2.name.lastName = "Grzesiak"; updateBatchSuccess = t.step_func(function () { - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); assert_equals(returnedValue, undefined, "Incorrect value returned."); t.done(); }); - returnedValue = addressbook.updateBatch([getContact_1, getContact_2], updateBatchSuccess, updateBatchError); + returnedValue = addressbook.updateBatch([getContact1, getContact2], updateBatchSuccess, updateBatchError); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_with_successCallback.html b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_with_successCallback.html index 38c37aee2..65e1e8383 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_with_successCallback.html +++ b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_with_successCallback.html @@ -23,7 +23,7 @@ Authors: AddressBook_updateBatch_with_successCallback - + @@ -35,18 +35,17 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA MR -var t = async_test("AddressBook_updateBatch_with_successCallback"); +var t = async_test(document.title), contact1, contact2, addressbook, updateBatchSuccess, getContact1, getContact2, + returnedValue = null; t.step(function () { - var contact_1, contact_2, addressbook, updateBatchSuccess, getContact_1, - getContact_2, returnedValue = null; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -54,23 +53,23 @@ t.step(function () { }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); - getContact_1 = addressbook.get(contact_1.id); - getContact_2 = addressbook.get(contact_2.id); - getContact_1.name.firstName = "Marcin"; - getContact_1.name.lastName = "Nowak"; - getContact_2.name.firstName = "Beata"; - getContact_2.name.lastName = "Grzesiak"; + addressbook.add(contact1); + addressbook.add(contact2); + getContact1 = addressbook.get(contact1.id); + getContact2 = addressbook.get(contact2.id); + getContact1.name.firstName = "Marcin"; + getContact1.name.lastName = "Nowak"; + getContact2.name.firstName = "Beata"; + getContact2.name.lastName = "Grzesiak"; updateBatchSuccess = t.step_func(function () { - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); assert_equals(returnedValue, undefined, "Incorrect value returned."); t.done(); }); - returnedValue = addressbook.updateBatch([getContact_1, getContact_2], updateBatchSuccess); + returnedValue = addressbook.updateBatch([getContact1, getContact2], updateBatchSuccess); }); diff --git a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_without_successCallback.html b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_without_successCallback.html index 6da2cebb8..00b9eea4a 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_updateBatch_without_successCallback.html +++ b/tct-contact-tizen-tests/contact/AddressBook_updateBatch_without_successCallback.html @@ -22,7 +22,7 @@ Authors: AddressBook_updateBatch_without_successCallback - + @@ -30,17 +30,16 @@ Authors:
+ @@ -47,7 +47,7 @@ test(function () { getGroup_2 = addressBook.getGroup(getGroup.id); assert_equals(getGroup_2.name, "Home", "getGroup_2.name attribute."); addressBook.removeGroup(getGroup.id); -}, "AddressBook_updateGroup"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_updateGroup_exist.html b/tct-contact-tizen-tests/contact/AddressBook_updateGroup_exist.html index 25da24187..cb38f14b3 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_updateGroup_exist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_updateGroup_exist.html @@ -23,7 +23,7 @@ Authors: AddressBook_updateGroup_exist - + @@ -39,7 +39,7 @@ test(function () { var addressbook = tizen.contact.getDefaultAddressBook(); assert_true("updateGroup" in addressbook, "No updateGroup method in addressbook."); check_method_exists(addressbook, "updateGroup"); -}, "AddressBook_updateGroup_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_updateGroup_group_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_updateGroup_group_TypeMismatch.html index fd3f3e58c..65e471718 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_updateGroup_group_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_updateGroup_group_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_updateGroup_group_TypeMismatch - + @@ -45,12 +45,12 @@ test(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { addressBook.updateGroup(param); }, exceptionName + " should be thrown - given incorrect."); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_updateGroup_group_invalid_obj.html b/tct-contact-tizen-tests/contact/AddressBook_updateGroup_group_invalid_obj.html index d275a306b..c7a8fa3ec 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_updateGroup_group_invalid_obj.html +++ b/tct-contact-tizen-tests/contact/AddressBook_updateGroup_group_invalid_obj.html @@ -23,7 +23,7 @@ Authors: AddressBook_updateGroup_group_invalid_obj - + @@ -43,11 +43,10 @@ test(function () { group = { name: "Company" }; - assert_throws({name : exceptionName}, - function () { + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { addressBook.updateGroup(group); }, exceptionName + " should be thrown - given incorrect success callback."); -}, "AddressBook_updateGroup_group_invalid_obj"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_updateGroup_missarg.html b/tct-contact-tizen-tests/contact/AddressBook_updateGroup_missarg.html index d9c0cb2cc..2b02b31b8 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_updateGroup_missarg.html +++ b/tct-contact-tizen-tests/contact/AddressBook_updateGroup_missarg.html @@ -25,7 +25,7 @@ Authors: AddressBook_updateGroup_missarg - + @@ -35,7 +35,7 @@ Authors: //==== TEST: AddressBook_updateGroup_missarg -//==== LABEL check if updateGroup() method called with invalid arguments throws an exception +//==== LABEL Check if updateGroup() method called with invalid arguments throws an exception //==== PRIORITY P2 //==== SPEC Tizen Web API:Social:Contact:AddressBook:updateGroup M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html @@ -43,12 +43,10 @@ Authors: test(function () { var addressBook = tizen.contact.getDefaultAddressBook(); - assert_throws({ - name: TYPE_MISMATCH_ERR - }, function () { + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { addressBook.updateGroup(); }); -}, "AddressBook_updateGroup_missarg"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_updateGroup_ringtoneURI.html b/tct-contact-tizen-tests/contact/AddressBook_updateGroup_ringtoneURI.html index cd554943d..e48eb35e0 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_updateGroup_ringtoneURI.html +++ b/tct-contact-tizen-tests/contact/AddressBook_updateGroup_ringtoneURI.html @@ -22,7 +22,7 @@ Authors: AddressBook_updateGroup_ringtoneURI - + @@ -30,7 +30,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/AddressBook_update_contact_TypeMismatch.html b/tct-contact-tizen-tests/contact/AddressBook_update_contact_TypeMismatch.html index 80f943818..8402cda61 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_update_contact_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/AddressBook_update_contact_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: AddressBook_update_contact_TypeMismatch - + @@ -45,12 +45,12 @@ test(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { addressBook.update(param); }, exceptionName + " should be thrown - given incorrect."); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_update_contact_invalid_obj.html b/tct-contact-tizen-tests/contact/AddressBook_update_contact_invalid_obj.html index 9f2383c3f..861094f60 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_update_contact_invalid_obj.html +++ b/tct-contact-tizen-tests/contact/AddressBook_update_contact_invalid_obj.html @@ -25,7 +25,7 @@ Authors: AddressBook_update_contact_invalid_obj - + @@ -55,12 +55,10 @@ test(function () { })] }; addressbook = tizen.contact.getDefaultAddressBook(); - assert_throws({ - name: "TypeMismatchError" - }, function () { + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { addressbook.update(contact); }); -}, "AddressBook_update_contact_invalid_obj"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_update_exist.html b/tct-contact-tizen-tests/contact/AddressBook_update_exist.html index ef2103646..2e3d13c26 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_update_exist.html +++ b/tct-contact-tizen-tests/contact/AddressBook_update_exist.html @@ -23,7 +23,7 @@ Authors: AddressBook_update_exist - + @@ -39,7 +39,7 @@ test(function () { var addressbook = tizen.contact.getDefaultAddressBook(); assert_true("update" in addressbook, "No update method in addressbook."); check_method_exists(addressbook, "update"); -}, "AddressBook_update_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/AddressBook_update_missarg.html b/tct-contact-tizen-tests/contact/AddressBook_update_missarg.html index 0ff2d0ec4..4a528e46d 100644 --- a/tct-contact-tizen-tests/contact/AddressBook_update_missarg.html +++ b/tct-contact-tizen-tests/contact/AddressBook_update_missarg.html @@ -25,7 +25,7 @@ Authors: AddressBook_update_missarg - + @@ -35,7 +35,7 @@ Authors: //==== TEST: AddressBook_update_missarg -//==== LABEL check if AddressBook::update() method called with invalid arguments throws an exception +//==== LABEL Check if AddressBook::update() method called with invalid arguments throws an exception //==== PRIORITY P2 //==== SPEC Tizen Web API:Social:Contact:AddressBook:update M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html @@ -43,12 +43,10 @@ Authors: test(function () { var addressBook = tizen.contact.getDefaultAddressBook(); - assert_throws({ - name: TYPE_MISMATCH_ERR - }, function () { + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { addressBook.update(); }); -}, "AddressBook_update_missarg"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactAddress_additionalInformation_attribute.html b/tct-contact-tizen-tests/contact/ContactAddress_additionalInformation_attribute.html index b741b8b88..21f58baaa 100644 --- a/tct-contact-tizen-tests/contact/ContactAddress_additionalInformation_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactAddress_additionalInformation_attribute.html @@ -23,7 +23,7 @@ Authors: ContactAddress_additionalInformation_attribute - + @@ -51,7 +51,7 @@ test(function () { assert_equals(contactAddress.additionalInformation, "additionalInformation", "additionalInformation attribute."); contactAddress.additionalInformation = newValue; assert_equals(contactAddress.additionalInformation, newValue, "additionalInformation attribute."); -}, "ContactAddress_additionalInformation_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactAddress_city_attribute.html b/tct-contact-tizen-tests/contact/ContactAddress_city_attribute.html index 62807678d..f7a76cc37 100644 --- a/tct-contact-tizen-tests/contact/ContactAddress_city_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactAddress_city_attribute.html @@ -23,7 +23,7 @@ Authors: ContactAddress_city_attribute - + @@ -51,7 +51,7 @@ test(function () { assert_equals(contactAddress.city, "city", "city attribute."); contactAddress.city = newValue; assert_equals(contactAddress.city, newValue, "city attribute."); -}, "ContactAddress_city_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactAddress_constructor.html b/tct-contact-tizen-tests/contact/ContactAddress_constructor.html index 8fdc0abcf..4ee07cad2 100644 --- a/tct-contact-tizen-tests/contact/ContactAddress_constructor.html +++ b/tct-contact-tizen-tests/contact/ContactAddress_constructor.html @@ -26,7 +26,7 @@ Authors: ContactAddress_constructor - + @@ -34,7 +34,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactAddress_country_attribute.html b/tct-contact-tizen-tests/contact/ContactAddress_country_attribute.html index ba0bbe136..74125b4a9 100644 --- a/tct-contact-tizen-tests/contact/ContactAddress_country_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactAddress_country_attribute.html @@ -23,7 +23,7 @@ Authors: ContactAddress_country_attribute - + @@ -51,7 +51,7 @@ test(function () { assert_equals(contactAddress.country, "country", "country attribute."); contactAddress.country = newValue; assert_equals(contactAddress.country, newValue, "country attribute."); -}, "ContactAddress_country_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactAddress_exist.html b/tct-contact-tizen-tests/contact/ContactAddress_exist.html index 3fda9634a..3c68bab9c 100644 --- a/tct-contact-tizen-tests/contact/ContactAddress_exist.html +++ b/tct-contact-tizen-tests/contact/ContactAddress_exist.html @@ -23,7 +23,7 @@ Authors: ContactAddress_exist - + @@ -36,7 +36,7 @@ Authors: //==== TEST_CRITERIA CONSTRF test(function () { check_constructor("ContactAddress"); -}, "ContactAddress_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactAddress_extend.html b/tct-contact-tizen-tests/contact/ContactAddress_extend.html index ebe8ba405..84e3395df 100644 --- a/tct-contact-tizen-tests/contact/ContactAddress_extend.html +++ b/tct-contact-tizen-tests/contact/ContactAddress_extend.html @@ -25,14 +25,14 @@ Authors: ContactAddress_extend - +
diff --git a/tct-contact-tizen-tests/contact/ContactAddress_isDefault_attribute.html b/tct-contact-tizen-tests/contact/ContactAddress_isDefault_attribute.html index d7e354912..e6e63304f 100644 --- a/tct-contact-tizen-tests/contact/ContactAddress_isDefault_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactAddress_isDefault_attribute.html @@ -23,7 +23,7 @@ Authors: ContactAddress_isDefault_attribute - + @@ -52,7 +52,7 @@ test(function () { assert_equals(contactAddress.isDefault, newValue, "isDefault attribute."); contactAddress.isDefault = null; assert_not_equals(contactAddress.isDefault, null, "operation no accept null"); -}, "ContactAddress_isDefault_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactAddress_postalCode_attribute.html b/tct-contact-tizen-tests/contact/ContactAddress_postalCode_attribute.html index 2ce9b606c..a2068ec53 100644 --- a/tct-contact-tizen-tests/contact/ContactAddress_postalCode_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactAddress_postalCode_attribute.html @@ -23,7 +23,7 @@ Authors: ContactAddress_postalCode_attribute - + @@ -50,7 +50,7 @@ test(function () { assert_equals(contactAddress.postalCode, "postalCode", "postalCode attribute."); contactAddress.postalCode = newValue; assert_equals(contactAddress.postalCode, newValue, "postalCode attribute."); -}, "ContactAddress_postalCode_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactAddress_region_attribute.html b/tct-contact-tizen-tests/contact/ContactAddress_region_attribute.html index e533b84d4..2edca1452 100644 --- a/tct-contact-tizen-tests/contact/ContactAddress_region_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactAddress_region_attribute.html @@ -23,7 +23,7 @@ Authors: ContactAddress_region_attribute - + @@ -50,7 +50,7 @@ test(function () { assert_equals(contactAddress.region, "region", "region attribute."); contactAddress.region = newValue; assert_equals(contactAddress.region, newValue, "region attribute."); -}, "ContactAddress_region_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactAddress_streetAddress_attribute.html b/tct-contact-tizen-tests/contact/ContactAddress_streetAddress_attribute.html index 21ad497e7..76f0f3efc 100644 --- a/tct-contact-tizen-tests/contact/ContactAddress_streetAddress_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactAddress_streetAddress_attribute.html @@ -23,7 +23,7 @@ Authors: ContactAddress_streetAddress_attribute - + @@ -50,7 +50,7 @@ test(function () { assert_equals(contactAddress.streetAddress, "streetAddress", "streetAddress attribute."); contactAddress.streetAddress = newValue; assert_equals(contactAddress.streetAddress, newValue, "streetAddress attribute."); -}, "ContactAddress_streetAddress_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactAddress_types_attribute.html b/tct-contact-tizen-tests/contact/ContactAddress_types_attribute.html index 276bf708b..f1c152a60 100644 --- a/tct-contact-tizen-tests/contact/ContactAddress_types_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactAddress_types_attribute.html @@ -23,7 +23,7 @@ Authors: ContactAddress_types_attribute - + @@ -56,7 +56,7 @@ test(function () { assert_equals(contactAddress.types.length, 1, "contactAddress.types.length chceck"); contactAddress.types = null; assert_not_equals(contactAddress.types, null, "operation no accept null"); -}, "ContactAddress_types_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactAnniversary_constructor.html b/tct-contact-tizen-tests/contact/ContactAnniversary_constructor.html index 4f5b2120a..d20f777b4 100644 --- a/tct-contact-tizen-tests/contact/ContactAnniversary_constructor.html +++ b/tct-contact-tizen-tests/contact/ContactAnniversary_constructor.html @@ -25,7 +25,7 @@ Authors: ContactAnniversary_constructor - + @@ -33,7 +33,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactAnniversary_constructor_minargs.html b/tct-contact-tizen-tests/contact/ContactAnniversary_constructor_minargs.html index ad90146f7..f54ade171 100644 --- a/tct-contact-tizen-tests/contact/ContactAnniversary_constructor_minargs.html +++ b/tct-contact-tizen-tests/contact/ContactAnniversary_constructor_minargs.html @@ -25,7 +25,7 @@ Authors: ContactAnniversary_constructor_minargs - + @@ -33,7 +33,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactAnniversary_date_attribute.html b/tct-contact-tizen-tests/contact/ContactAnniversary_date_attribute.html index 21dcf780c..aa1acf367 100644 --- a/tct-contact-tizen-tests/contact/ContactAnniversary_date_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactAnniversary_date_attribute.html @@ -25,7 +25,7 @@ Authors: ContactAnniversary_date_attribute - + @@ -47,7 +47,7 @@ test(function () { assert_equals(contactAnniversary.date.getTime(), newDate.getTime(), "date attribute."); contactAnniversary.date = null; assert_not_equals(contactAnniversary.date, null, "operation no accept null"); -}, "ContactAnniversary_date_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactAnniversary_exist.html b/tct-contact-tizen-tests/contact/ContactAnniversary_exist.html index 2d3fd5f76..022316c63 100644 --- a/tct-contact-tizen-tests/contact/ContactAnniversary_exist.html +++ b/tct-contact-tizen-tests/contact/ContactAnniversary_exist.html @@ -25,7 +25,7 @@ Authors: ContactAnniversary_exist - + @@ -41,7 +41,7 @@ Authors: //==== TEST_CRITERIA CONSTRF test(function () { check_constructor("ContactAnniversary"); -}, "ContactAnniversary_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactAnniversary_extend.html b/tct-contact-tizen-tests/contact/ContactAnniversary_extend.html index ee986a744..29c60fe91 100644 --- a/tct-contact-tizen-tests/contact/ContactAnniversary_extend.html +++ b/tct-contact-tizen-tests/contact/ContactAnniversary_extend.html @@ -25,7 +25,7 @@ Authors: ContactAnniversary_extend - + @@ -33,14 +33,14 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactAnniversary_label_attribute.html b/tct-contact-tizen-tests/contact/ContactAnniversary_label_attribute.html index bacfb8ef9..ad29869cf 100644 --- a/tct-contact-tizen-tests/contact/ContactAnniversary_label_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactAnniversary_label_attribute.html @@ -25,7 +25,7 @@ Authors: ContactAnniversary_label_attribute - + @@ -46,7 +46,7 @@ test(function () { assert_equals(contactAnniversary.label, newLabel, "label attribute."); contactAnniversary = new tizen.ContactAnniversary(date); assert_equals(contactAnniversary.label, null, "label attribute."); -}, "ContactAnniversary_label_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactArraySuccessCallback_notexist.html b/tct-contact-tizen-tests/contact/ContactArraySuccessCallback_notexist.html index 15a3e8a5a..f2291f403 100644 --- a/tct-contact-tizen-tests/contact/ContactArraySuccessCallback_notexist.html +++ b/tct-contact-tizen-tests/contact/ContactArraySuccessCallback_notexist.html @@ -23,7 +23,7 @@ Authors: ContactArraySuccessCallback_notexist - + @@ -37,7 +37,7 @@ Authors: //==== TEST_CRITERIA CBNIO test(function () { check_no_interface_object("ContactArraySuccessCallback"); -}, "ContactArraySuccessCallback_notexist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactArraySuccessCallback_onsuccess.html b/tct-contact-tizen-tests/contact/ContactArraySuccessCallback_onsuccess.html index 0030a7e52..01317a655 100644 --- a/tct-contact-tizen-tests/contact/ContactArraySuccessCallback_onsuccess.html +++ b/tct-contact-tizen-tests/contact/ContactArraySuccessCallback_onsuccess.html @@ -23,7 +23,7 @@ Authors: ContactArraySuccessCallback_onsuccess - + @@ -34,10 +34,9 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactArraySuccessCallback:onsuccess M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA CBOA CBT -var t = async_test("ContactArraySuccessCallback_onsuccess"); +var t = async_test(document.title), contact1, contact2, addressbook, addBatchError, addBatchSuccess; t.step(function () { - var contact_1, contact_2, addressbook, addBatchError, addBatchSuccess; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" @@ -46,7 +45,7 @@ t.step(function () { phoneNumbers: [new tizen.ContactPhoneNumber("123456789")] }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -67,12 +66,12 @@ t.step(function () { assert_type(contacts[0].emails[0].email, "string", "Check the group contacts[0].emails[0].email type."); assert_type(contacts[0].phoneNumbers[0].number, "string", "Check the group contacts[0].phoneNumbers[0].number type."); assert_true(contacts[0] instanceof tizen.Contact, "InstanceOf."); - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); t.done(); }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.addBatch([contact_1, contact_2], addBatchSuccess, addBatchError); + addressbook.addBatch([contact1, contact2], addBatchSuccess, addBatchError); }); diff --git a/tct-contact-tizen-tests/contact/ContactEmailAddress_constructor.html b/tct-contact-tizen-tests/contact/ContactEmailAddress_constructor.html index 5bdc58da4..aedfa1bb3 100644 --- a/tct-contact-tizen-tests/contact/ContactEmailAddress_constructor.html +++ b/tct-contact-tizen-tests/contact/ContactEmailAddress_constructor.html @@ -26,7 +26,7 @@ Authors: ContactEmailAddress_constructor - + @@ -34,7 +34,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactEmailAddress_email_attribute.html b/tct-contact-tizen-tests/contact/ContactEmailAddress_email_attribute.html index f85a26bc5..e0a51389c 100644 --- a/tct-contact-tizen-tests/contact/ContactEmailAddress_email_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactEmailAddress_email_attribute.html @@ -23,7 +23,7 @@ Authors: ContactEmailAddress_email_attribute - + @@ -44,7 +44,7 @@ test(function () { assert_equals(contactEmailAddress.email, newValue, "email attribute."); contactEmailAddress.email = null; assert_not_equals(contactEmailAddress.email, null, "operation no accept null"); -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactEmailAddress_exist.html b/tct-contact-tizen-tests/contact/ContactEmailAddress_exist.html index 86a04e4e2..a5fceb427 100644 --- a/tct-contact-tizen-tests/contact/ContactEmailAddress_exist.html +++ b/tct-contact-tizen-tests/contact/ContactEmailAddress_exist.html @@ -23,7 +23,7 @@ Authors: ContactEmailAddress_exist - + @@ -36,7 +36,7 @@ Authors: //==== TEST_CRITERIA CONSTRF test(function () { check_constructor("ContactEmailAddress"); -}, "ContactEmailAddress_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactEmailAddress_extend.html b/tct-contact-tizen-tests/contact/ContactEmailAddress_extend.html index 24c62c002..78741b532 100644 --- a/tct-contact-tizen-tests/contact/ContactEmailAddress_extend.html +++ b/tct-contact-tizen-tests/contact/ContactEmailAddress_extend.html @@ -25,14 +25,14 @@ Authors: ContactEmailAddress_extend - +
diff --git a/tct-contact-tizen-tests/contact/ContactEmailAddress_isDefault_attribute.html b/tct-contact-tizen-tests/contact/ContactEmailAddress_isDefault_attribute.html index 93f5c6e76..afa4394b2 100644 --- a/tct-contact-tizen-tests/contact/ContactEmailAddress_isDefault_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactEmailAddress_isDefault_attribute.html @@ -23,7 +23,7 @@ Authors: ContactEmailAddress_isDefault_attribute - + @@ -45,7 +45,7 @@ test(function () { assert_not_equals(contactEmailAddress.isDefault, null, "operation no accept null"); contactEmailAddress = new tizen.ContactEmailAddress("user@domain.com"); assert_equals(contactEmailAddress.isDefault, false, "types attribute."); -}, "ContactEmailAddress_isDefault_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactEmailAddress_types_attribute.html b/tct-contact-tizen-tests/contact/ContactEmailAddress_types_attribute.html index dbe7ac32c..85a9293d3 100644 --- a/tct-contact-tizen-tests/contact/ContactEmailAddress_types_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactEmailAddress_types_attribute.html @@ -23,7 +23,7 @@ Authors: ContactEmailAddress_types_attribute - + @@ -49,7 +49,7 @@ test(function () { assert_not_equals(contactEmailAddress.types, null, "operation no accept null"); contactEmailAddress = new tizen.ContactEmailAddress("user@domain.com"); assert_equals(contactEmailAddress.types[0], "WORK", "types attribute."); -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactGroup_addressBookId_attribute.html b/tct-contact-tizen-tests/contact/ContactGroup_addressBookId_attribute.html index 9d93f9428..90f9b4fad 100644 --- a/tct-contact-tizen-tests/contact/ContactGroup_addressBookId_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactGroup_addressBookId_attribute.html @@ -37,7 +37,7 @@ Authors: - + @@ -59,7 +59,7 @@ test(function () { addressBook.addGroup(contactGroup); assert_type(contactGroup.addressBookId, "string", "Check the group addressBookId type."); addressBook.removeGroup(contactGroup.id); -}, "ContactGroup_addressBookId_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactGroup_connstructor_minarg.html b/tct-contact-tizen-tests/contact/ContactGroup_connstructor_minarg.html index 05152d59c..0f28931aa 100644 --- a/tct-contact-tizen-tests/contact/ContactGroup_connstructor_minarg.html +++ b/tct-contact-tizen-tests/contact/ContactGroup_connstructor_minarg.html @@ -25,7 +25,7 @@ Authors: ContactGroup_connstructor_minarg - + @@ -33,7 +33,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactGroup_constructor.html b/tct-contact-tizen-tests/contact/ContactGroup_constructor.html index 3cc53dc0d..58042a391 100644 --- a/tct-contact-tizen-tests/contact/ContactGroup_constructor.html +++ b/tct-contact-tizen-tests/contact/ContactGroup_constructor.html @@ -25,7 +25,7 @@ Authors: ContactGroup_constructor - + @@ -33,7 +33,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactGroup_exist.html b/tct-contact-tizen-tests/contact/ContactGroup_exist.html index 25f847a2b..57f27f4e3 100644 --- a/tct-contact-tizen-tests/contact/ContactGroup_exist.html +++ b/tct-contact-tizen-tests/contact/ContactGroup_exist.html @@ -25,7 +25,7 @@ Authors: ContactGroup_exist - + @@ -39,7 +39,7 @@ Authors: //==== TEST_CRITERIA CONSTRF test(function () { check_constructor("ContactGroup"); -}, "ContactGroup_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactGroup_extend.html b/tct-contact-tizen-tests/contact/ContactGroup_extend.html index 066cc272d..eef6b7d96 100644 --- a/tct-contact-tizen-tests/contact/ContactGroup_extend.html +++ b/tct-contact-tizen-tests/contact/ContactGroup_extend.html @@ -25,7 +25,7 @@ Authors: ContactGroup_extend - + @@ -33,14 +33,14 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactGroup_id_attribute.html b/tct-contact-tizen-tests/contact/ContactGroup_id_attribute.html index b3b6bcb1b..8cc6d4453 100644 --- a/tct-contact-tizen-tests/contact/ContactGroup_id_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactGroup_id_attribute.html @@ -38,7 +38,7 @@ Authors: - + @@ -60,7 +60,7 @@ test(function () { addressBook.addGroup(contactGroup); assert_type(contactGroup.id, "string", "Check the group id type."); addressBook.removeGroup(contactGroup.id); -}, "ContactGroup_id_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactGroup_name_attribute.html b/tct-contact-tizen-tests/contact/ContactGroup_name_attribute.html index c23b872f9..49fc5f489 100644 --- a/tct-contact-tizen-tests/contact/ContactGroup_name_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactGroup_name_attribute.html @@ -25,7 +25,7 @@ Authors: ContactGroup_name_attribute - + @@ -48,7 +48,7 @@ test(function () { assert_equals(contactGroup.name, newValue, "name attribute."); contactGroup.name = null; assert_not_equals(contactGroup.name, null, "operation no accept null"); -}, "ContactGroup_name_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactGroup_photoURI_attribute.html b/tct-contact-tizen-tests/contact/ContactGroup_photoURI_attribute.html index a12c2e184..f323e1a58 100644 --- a/tct-contact-tizen-tests/contact/ContactGroup_photoURI_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactGroup_photoURI_attribute.html @@ -25,7 +25,7 @@ Authors: ContactGroup_photoURI_attribute - + @@ -46,7 +46,7 @@ test(function () { assert_equals(contactGroup.photoURI, TEST_IMAGE_1, "photoURI attribute."); contactGroup.photoURI = newValue; assert_equals(contactGroup.photoURI, newValue, "photoURI attribute."); -}, "ContactGroup_photoURI_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactGroup_readOnly_attribute.html b/tct-contact-tizen-tests/contact/ContactGroup_readOnly_attribute.html index e6eb4a71e..89985648b 100644 --- a/tct-contact-tizen-tests/contact/ContactGroup_readOnly_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactGroup_readOnly_attribute.html @@ -25,7 +25,7 @@ Authors: ContactGroup_readOnly_attribute - + @@ -46,7 +46,7 @@ test(function () { assert_equals(contactGroup.readOnly, false, "readOnly attribute."); contactGroup.readOnly = newValue; assert_equals(contactGroup.readOnly, false, "readOnly attribute."); -}, "ContactGroup_readOnly_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactGroup_ringtoneURI_attribute.html b/tct-contact-tizen-tests/contact/ContactGroup_ringtoneURI_attribute.html index ad6969114..042986678 100644 --- a/tct-contact-tizen-tests/contact/ContactGroup_ringtoneURI_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactGroup_ringtoneURI_attribute.html @@ -25,7 +25,7 @@ Authors: ContactGroup_ringtoneURI_attribute - + @@ -46,7 +46,7 @@ test(function () { assert_equals(contactGroup.ringtoneURI, TEST_RING_1, "ringtoneURI attribute."); contactGroup.ringtoneURI = newValue; assert_equals(contactGroup.ringtoneURI, newValue, "ringtoneURI attribute."); -}, "ContactGroup_ringtoneURI_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManagerObject_notexist.html b/tct-contact-tizen-tests/contact/ContactManagerObject_notexist.html index d8fb290f9..c4ce3563e 100644 --- a/tct-contact-tizen-tests/contact/ContactManagerObject_notexist.html +++ b/tct-contact-tizen-tests/contact/ContactManagerObject_notexist.html @@ -23,7 +23,7 @@ Authors: ContactManagerObject_notexist - + @@ -37,7 +37,7 @@ Authors: //==== TEST_CRITERIA NIO test(function () { check_no_interface_object("ContactManagerObject"); -}, "ContactManagerObject_notexist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_addChangeListener.html b/tct-contact-tizen-tests/contact/ContactManager_addChangeListener.html index 1b63c8578..ce84758d7 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_addChangeListener.html +++ b/tct-contact-tizen-tests/contact/ContactManager_addChangeListener.html @@ -23,7 +23,7 @@ Authors: ContactManager_addChangeListener - + @@ -34,9 +34,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:addChangeListener M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MR MMINA MAST -var t = async_test("ContactManager_addChangeListener"); +var t = async_test(document.title), watcher, watcherId, defaultAddressBook, contact; t.step(function () { - var watcher, watcherId, defaultAddressBook, contact; watcher = { onpersonsadded: function (persons) { tizen.contact.removeChangeListener(watcherId); diff --git a/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_exist.html b/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_exist.html index 9c7fcb0b6..1b13f2ace 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_exist.html +++ b/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_exist.html @@ -23,7 +23,7 @@ Authors: ContactManager_addChangeListener_exist - + @@ -37,7 +37,7 @@ Authors: test(function () { assert_true("addChangeListener" in tizen.contact, "No update method in tizen.contact."); check_method_exists(tizen.contact, "addChangeListener"); -}, "ContactManager_addChangeListener_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_missarg.html b/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_missarg.html index 1b125ec29..93c9c4633 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_missarg.html +++ b/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_missarg.html @@ -25,7 +25,7 @@ Authors: ContactManager_addChangeListener_missarg - + @@ -35,18 +35,16 @@ Authors: //==== TEST: ContactManager_addChangeListener_missarg -//==== LABEL check if ContactManager::addChangeListener() method called with invalid arguments throws an exception +//==== LABEL Check if ContactManager::addChangeListener() method called with invalid arguments throws an exception //==== PRIORITY P2 //==== SPEC Tizen Web API:Social:Contact:ContactManager:addChangeListener M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MMA test(function () { - assert_throws({ - name: TYPE_MISMATCH_ERR - }, function () { + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { tizen.contact.addChangeListener(); }); -}, "ContactManager_addChangeListener_missarg"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_successCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_successCallback_TypeMismatch.html index 783dfac47..c7c12efc6 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_successCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_successCallback_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: ContactManager_addChangeListener_successCallback_TypeMismatch - + @@ -43,12 +43,12 @@ test(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { listener = tizen.contact.addChangeListener(param); }, exceptionName + " should be thrown - given incorrect."); } -}, "ContactManager_addChangeListener_successCallback_TypeMismatch"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_successCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_successCallback_invalid_cb.html index 61fb8a736..28186aa07 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_successCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_successCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: ContactManager_addChangeListener_successCallback_invalid_cb - + @@ -35,16 +35,15 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:addChangeListener M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTL -var t = async_test("ContactManager_addChangeListener_successCallback_invalid_cb"); +var t = async_test(document.title), listener, addressBook, exceptionName, incorrectListener, incorrectListeners, + i; t.step(function () { - var listener, addressBook, exceptionName, - incorrectListener, incorrectListeners, i; addressBook = tizen.contact.getDefaultAddressBook(); incorrectListeners = getListenerConversionExceptions(["onpersonsadded", "onpersonsupdated", "onpersonsremoved"]); for(i = 0; i < incorrectListeners.length; i++) { incorrectListener = incorrectListeners[i][0]; exceptionName = incorrectListeners[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { listener = tizen.contact.addChangeListener(incorrectListener); }, exceptionName + " should be thrown - given incorrect successCallback."); diff --git a/tct-contact-tizen-tests/contact/ContactManager_check_types.html b/tct-contact-tizen-tests/contact/ContactManager_check_types.html index 7f7a10d44..150a20e94 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_check_types.html +++ b/tct-contact-tizen-tests/contact/ContactManager_check_types.html @@ -25,7 +25,7 @@ Authors: ContactManager_check_types - + @@ -35,7 +35,7 @@ Authors: //==== TEST: ContactManager_check_types -//==== LABEL check if tizen.contact (ContactManager) exists and implements methods +//==== LABEL Check if tizen.contact (ContactManager) exists and implements methods //==== PRIORITY P3 //==== SPEC Tizen Web API:Social:Contact:ContactManagerObject:ContactManagerObject U //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html @@ -55,7 +55,7 @@ test(function () { assert_type(tizen.contact.find, "function", "ContactManager.find presence"); assert_type(tizen.contact.addChangeListener, "function", "ContactManager.addChangeListener presence"); assert_type(tizen.contact.removeChangeListener, "function", "ContactManager.removeChangeListener presence"); -}, "ContactManager_check_types"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_extend.html b/tct-contact-tizen-tests/contact/ContactManager_extend.html index 2b22ede80..a5795a43a 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_extend.html +++ b/tct-contact-tizen-tests/contact/ContactManager_extend.html @@ -25,7 +25,7 @@ Authors: ContactManager_extend - + @@ -33,14 +33,14 @@ Authors: diff --git a/tct-contact-tizen-tests/contact/ContactManager_find.html b/tct-contact-tizen-tests/contact/ContactManager_find.html index 48f5fb1a3..4d11c4078 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_find.html +++ b/tct-contact-tizen-tests/contact/ContactManager_find.html @@ -23,7 +23,7 @@ Authors: ContactManager_find - + @@ -34,9 +34,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MMINA MR -var t = async_test("ContactManager_find"); +var t = async_test(document.title), contact, addressbook, findSuccess, returnedValue = null, i, results = false; t.step(function () { - var contact, addressbook, findSuccess, returnedValue = null, i, results = false; contact = new tizen.Contact({ name: new tizen.ContactName({ firstName: "John", diff --git a/tct-contact-tizen-tests/contact/ContactManager_find_errorCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/ContactManager_find_errorCallback_TypeMismatch.html index a82aef15b..5b564fba2 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_find_errorCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/ContactManager_find_errorCallback_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: ContactManager_find_errorCallback_TypeMismatch - + @@ -35,9 +35,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MC -var t = async_test("ContactManager_find_errorCallback_TypeMismatch"); +var t = async_test(document.title), findSuccess, i, conversionTable, findError, exceptionName; t.step(function () { - var findSuccess, i, conversionTable, findError, exceptionName; findSuccess = t.step_func(function (persons) { assert_unreached("Invalid successCallback invoked"); @@ -48,7 +47,7 @@ t.step(function () { findError = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { tizen.contact.find(findSuccess, findError); }, exceptionName + " should be thrown - given incorrect."); diff --git a/tct-contact-tizen-tests/contact/ContactManager_find_errorCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/ContactManager_find_errorCallback_invalid_cb.html index 0ea448623..1a66aba03 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_find_errorCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/ContactManager_find_errorCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: ContactManager_find_errorCallback_invalid_cb - + @@ -35,9 +35,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("ContactManager_find_errorCallback_invalid_cb"); +var t = async_test(document.title), onSuccess, exceptionName = "TypeMismatchError", incorrectCallback; t.step(function () { - var onSuccess, exceptionName = "TypeMismatchError", incorrectCallback; onSuccess = t.step_func(function (persons) { assert_unreached("Invalid errorCallback invoked"); @@ -47,10 +46,10 @@ t.step(function () { assert_unreached("Invalid errorCallback invoked"); }) }; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { tizen.contact.find(onSuccess, incorrectCallback); - },exceptionName + " should be thrown - given incorrect success callback."); + }, exceptionName + " should be thrown - given incorrect success callback."); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_find_errorCallback_invoked.html b/tct-contact-tizen-tests/contact/ContactManager_find_errorCallback_invoked.html index 983da727e..c87212f8b 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_find_errorCallback_invoked.html +++ b/tct-contact-tizen-tests/contact/ContactManager_find_errorCallback_invoked.html @@ -23,7 +23,7 @@ Authors: ContactManager_find_errorCallback_invoked - + @@ -34,9 +34,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MERRCB -var t = async_test("ContactManager_find_errorCallback_invoked"); +var t = async_test(document.title), contact, addressbook, filter, findError, findSuccess; t.step(function () { - var contact, addressbook, filter, findError, findSuccess; contact = new tizen.Contact({ name: new tizen.ContactName({ firstName: "John", diff --git a/tct-contact-tizen-tests/contact/ContactManager_find_exist.html b/tct-contact-tizen-tests/contact/ContactManager_find_exist.html index 25f913e5b..c6a09bea3 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_find_exist.html +++ b/tct-contact-tizen-tests/contact/ContactManager_find_exist.html @@ -23,7 +23,7 @@ Authors: ContactManager_find_exist - + @@ -37,7 +37,7 @@ Authors: test(function () { assert_true("find" in tizen.contact, "No find method in tizen.contact."); check_method_exists(tizen.contact, "find"); -}, "ContactManager_find_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_find_filter_TypeMismatch.html b/tct-contact-tizen-tests/contact/ContactManager_find_filter_TypeMismatch.html index 0148095fa..1ea516b9c 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_find_filter_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/ContactManager_find_filter_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: ContactManager_find_filter_TypeMismatch - + @@ -35,10 +35,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MC -var t = async_test("ContactManager_find_filter_TypeMismatch"); +var t = async_test(document.title), findError, findSuccess, i, conversionTable, param, exceptionName; t.step(function () { - var findError, findSuccess, i, - conversionTable, param, exceptionName; findError = t.step_func(function (error) { assert_unreached("Invalid findError invoked: " + error.name + ": " + error.message); }); @@ -51,7 +49,7 @@ t.step(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { tizen.contact.find(findSuccess, findError, param); }, exceptionName + " should be thrown - given incorrect."); diff --git a/tct-contact-tizen-tests/contact/ContactManager_find_missarg.html b/tct-contact-tizen-tests/contact/ContactManager_find_missarg.html index 0ffa4630d..a7b945ad7 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_find_missarg.html +++ b/tct-contact-tizen-tests/contact/ContactManager_find_missarg.html @@ -25,7 +25,7 @@ Authors: ContactManager_find_missarg - + @@ -33,19 +33,17 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactManager_find_sortMode_TypeMismatch.html b/tct-contact-tizen-tests/contact/ContactManager_find_sortMode_TypeMismatch.html index 59a0dbbe5..e12a3d923 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_find_sortMode_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/ContactManager_find_sortMode_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: ContactManager_find_sortMode_TypeMismatch - + @@ -35,10 +35,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MC -var t = async_test("ContactManager_find_sortMode_TypeMismatch"); +var t = async_test(document.title), filter, findError, findSuccess, i, conversionTable, param, exceptionName; t.step(function () { - var filter, findError, findSuccess, i, - conversionTable, param, exceptionName; findError = t.step_func(function (error) { assert_unreached("Invalid errorCallback invoked: " + error.name + ": " + error.message); }); @@ -52,7 +50,7 @@ t.step(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { tizen.contact.find(findSuccess, findError, filter, param); }, exceptionName + " should be thrown - given incorrect."); diff --git a/tct-contact-tizen-tests/contact/ContactManager_find_sortMode_invalid_obj.html b/tct-contact-tizen-tests/contact/ContactManager_find_sortMode_invalid_obj.html index c14234663..934cd86f7 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_find_sortMode_invalid_obj.html +++ b/tct-contact-tizen-tests/contact/ContactManager_find_sortMode_invalid_obj.html @@ -23,7 +23,7 @@ Authors: ContactManager_find_sortMode_invalid_obj - + @@ -35,9 +35,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTO -var t = async_test("ContactManager_find_sortMode_invalid_obj"); +var t = async_test(document.title), filter, findError, findSuccess, sortingMode; t.step(function () { - var filter, findError, findSuccess, sortingMode; findError = t.step_func(function (error) { assert_unreached("Invalid errorCallback invoked: " + error.name + ": " + error.message); }); @@ -50,9 +49,7 @@ t.step(function () { attributeName: "name.firstName", order: "ASC" }; - assert_throws({ - name: "TypeMismatchError" - }, function () { + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { tizen.contact.find(findSuccess, findError, filter, sortingMode); }); t.done(); diff --git a/tct-contact-tizen-tests/contact/ContactManager_find_successCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/ContactManager_find_successCallback_TypeMismatch.html index 3b9fb7785..c4aa23bb0 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_find_successCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/ContactManager_find_successCallback_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: ContactManager_find_successCallback_TypeMismatch - + @@ -43,12 +43,12 @@ test(function () { incorrectCallback = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { tizen.contact.find(incorrectCallback); }, exceptionName + " should be thrown - given incorrect."); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_find_successCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/ContactManager_find_successCallback_invalid_cb.html index 87099d7ae..c95f7cde6 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_find_successCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/ContactManager_find_successCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: ContactManager_find_successCallback_invalid_cb - + @@ -35,19 +35,18 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("ContactManager_find_successCallback_invalid_cb"); +var t = async_test(document.title), exceptionName = "TypeMismatchError", incorrectCallback; t.step(function () { - var exceptionName = "TypeMismatchError", incorrectCallback; incorrectCallback = { onsuccess: t.step_func(function () { assert_unreached("Invalid onsuccess invoked"); }) }; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { tizen.contact.find(incorrectCallback); - },exceptionName + " should be thrown - given incorrect success callback."); + }, exceptionName + " should be thrown - given incorrect success callback."); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_find_with_errorCallback.html b/tct-contact-tizen-tests/contact/ContactManager_find_with_errorCallback.html index e86f2db22..197a4a32e 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_find_with_errorCallback.html +++ b/tct-contact-tizen-tests/contact/ContactManager_find_with_errorCallback.html @@ -23,7 +23,7 @@ Authors: ContactManager_find_with_errorCallback - + @@ -34,9 +34,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA -var t = async_test("ContactManager_find_with_errorCallback"); +var t = async_test(document.title), contact, addressbook, findError, findSuccess; t.step(function () { - var contact, addressbook, findError, findSuccess; contact = new tizen.Contact({ name: new tizen.ContactName({ firstName: "John", diff --git a/tct-contact-tizen-tests/contact/ContactManager_find_with_filter.html b/tct-contact-tizen-tests/contact/ContactManager_find_with_filter.html index 38789004c..98097c9c3 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_find_with_filter.html +++ b/tct-contact-tizen-tests/contact/ContactManager_find_with_filter.html @@ -23,7 +23,7 @@ Authors: ContactManager_find_with_filter - + @@ -34,9 +34,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA -var t = async_test("ContactManager_find_with_filter"); +var t = async_test(document.title), contact, addressbook, filter, findError, findSuccess; t.step(function () { - var contact, addressbook, filter, findError, findSuccess; contact = new tizen.Contact({ name: new tizen.ContactName({ firstName: "John", diff --git a/tct-contact-tizen-tests/contact/ContactManager_find_with_sortMode.html b/tct-contact-tizen-tests/contact/ContactManager_find_with_sortMode.html index 9b401e174..06e15204c 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_find_with_sortMode.html +++ b/tct-contact-tizen-tests/contact/ContactManager_find_with_sortMode.html @@ -23,7 +23,7 @@ Authors: ContactManager_find_with_sortMode - + @@ -34,9 +34,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:find M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA -var t = async_test("ContactManager_find_with_sortMode"); +var t = async_test(document.title), contact, addressbook, filter, findError, findSuccess, sortingMode; t.step(function () { - var contact, addressbook, filter, findError, findSuccess, sortingMode; contact = new tizen.Contact({ name: new tizen.ContactName({ firstName: "John", diff --git a/tct-contact-tizen-tests/contact/ContactManager_get.html b/tct-contact-tizen-tests/contact/ContactManager_get.html index 953cac403..e8cb28ad3 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_get.html +++ b/tct-contact-tizen-tests/contact/ContactManager_get.html @@ -23,7 +23,7 @@ Authors: ContactManager_get - + @@ -62,7 +62,7 @@ test(function () { assert_own_property(getPerson, "displayContactId", "Person doesn't own displayContactId attribute."); tizen.contact.remove(contact.personId); -}, "ContactManager_get"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_getAddressBook.html b/tct-contact-tizen-tests/contact/ContactManager_getAddressBook.html index 758204a73..60ce01431 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_getAddressBook.html +++ b/tct-contact-tizen-tests/contact/ContactManager_getAddressBook.html @@ -23,7 +23,7 @@ Authors: ContactManager_getAddressBook - + @@ -41,7 +41,7 @@ test(function () { assert_type(addressBook.id, "string", "addressBook.id"); assert_type(addressBook.name, "string", "addressBook.name"); assert_type(addressBook.readOnly, "boolean", "addressBook.readOnly"); -}, "ContactManager_getAddressBook"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_getAddressBook_exist.html b/tct-contact-tizen-tests/contact/ContactManager_getAddressBook_exist.html index 94e9ebcb6..f4939a715 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_getAddressBook_exist.html +++ b/tct-contact-tizen-tests/contact/ContactManager_getAddressBook_exist.html @@ -23,7 +23,7 @@ Authors: ContactManager_getAddressBook_exist - + @@ -37,7 +37,7 @@ Authors: test(function () { assert_true("getAddressBook" in tizen.contact, "No getAddressBook method in tizen.contact."); check_method_exists(tizen.contact, "getAddressBook"); -}, "ContactManager_getAddressBook_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks.html b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks.html index b2652fa4f..2d185c867 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks.html +++ b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks.html @@ -23,7 +23,7 @@ Authors: ContactManager_getAddressBooks - + @@ -34,10 +34,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:getAddressBooks M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA MR -var t = async_test("ContactManager_getAddressBooks"); +var t = async_test(document.title), addressBook, getAddressBooksSuccess, getAddressBooksError, returnedValue = null; t.step(function () { - var addressBook, getAddressBooksSuccess, getAddressBooksError, - returnedValue = null; getAddressBooksError = t.step_func(function (error) { assert_unreached("Invalid errorCallback invoked: " + error.name + ": " + error.message); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_errorCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_errorCallback_TypeMismatch.html index f069caef4..972080eeb 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_errorCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_errorCallback_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: ContactManager_getAddressBooks_errorCallback_TypeMismatch - + @@ -35,9 +35,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:getAddressBooks M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MC -var t = async_test("ContactManager_getAddressBooks_errorCallback_TypeMismatch"); +var t = async_test(document.title), addressBook, onSuccess, i, conversionTable, incorrectCallback, exceptionName; t.step(function () { - var addressBook, onSuccess, i, conversionTable, incorrectCallback, exceptionName; onSuccess = t.step_func(function () { assert_unreached("Invalid onSuccess invoked"); }); @@ -47,7 +46,7 @@ t.step(function () { incorrectCallback = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { tizen.contact.getAddressBooks(onSuccess, incorrectCallback); }, exceptionName + " should be thrown - given incorrect."); diff --git a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_errorCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_errorCallback_invalid_cb.html index b328d33d5..372cba180 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_errorCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_errorCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: ContactManager_getAddressBooks_errorCallback_invalid_cb - + @@ -35,10 +35,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:getAddressBooks M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("ContactManager_getAddressBooks_errorCallback_invalid_cb"); +var t = async_test(document.title), addressBook, onSuccess, incorrectCallback, exceptionName = "TypeMismatchError"; t.step(function () { - var addressBook, onSuccess, incorrectCallback, - exceptionName = "TypeMismatchError"; onSuccess = t.step_func(function () { assert_unreached("Invalid onSuccess invoked"); }); @@ -48,10 +46,10 @@ t.step(function () { }) }; addressBook = tizen.contact.getDefaultAddressBook(); - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { tizen.contact.getAddressBooks(onSuccess, incorrectCallback); - },exceptionName + " should be thrown - given incorrect success callback."); + }, exceptionName + " should be thrown - given incorrect success callback."); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_exist.html b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_exist.html index 8a9eb8739..49722799c 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_exist.html +++ b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_exist.html @@ -23,7 +23,7 @@ Authors: ContactManager_getAddressBooks_exist - + @@ -38,7 +38,7 @@ Authors: test(function () { assert_true("getAddressBooks" in tizen.contact, "No getAddressBooks method in tizen.contact."); check_method_exists(tizen.contact, "getAddressBooks"); -}, "ContactManager_getAddressBooks_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_missarg.html b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_missarg.html index fa45864b6..8487e14bb 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_missarg.html +++ b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_missarg.html @@ -25,7 +25,7 @@ Authors: ContactManager_getAddressBooks_missarg - + @@ -33,18 +33,16 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_successCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_successCallback_TypeMismatch.html index 5c83df236..4f494a9a0 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_successCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_successCallback_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: ContactManager_getAddressBooks_successCallback_TypeMismatch - + @@ -43,12 +43,12 @@ test(function () { incorrectCallback = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { tizen.contact.getAddressBooks(incorrectCallback); }, exceptionName + " should be thrown - given incorrect."); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_successCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_successCallback_invalid_cb.html index 274604220..16a90213a 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_successCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_successCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: ContactManager_getAddressBooks_successCallback_invalid_cb - + @@ -35,10 +35,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:getAddressBooks M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("ContactManager_getAddressBooks_successCallback_invalid_cb"); +var t = async_test(document.title), addressBook, incorrectCallback, exceptionName = "TypeMismatchError"; t.step(function () { - var addressBook, incorrectCallback, - exceptionName = "TypeMismatchError"; incorrectCallback = { onsuccess: t.step_func(function () { @@ -46,10 +44,10 @@ t.step(function () { }) }; addressBook = tizen.contact.getDefaultAddressBook(); - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { tizen.contact.getAddressBooks(incorrectCallback); - },exceptionName + " should be thrown - given incorrect success callback."); + }, exceptionName + " should be thrown - given incorrect success callback."); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_with_errorCallback.html b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_with_errorCallback.html index f96ad059b..c7480a35b 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_with_errorCallback.html +++ b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_with_errorCallback.html @@ -23,7 +23,7 @@ Authors: ContactManager_getAddressBooks_with_errorCallback - + @@ -35,9 +35,8 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html // Check if method getAddressBooks of ContactManager works properly //==== TEST_CRITERIA MOA -var t = async_test("ContactManager_getAddressBooks_with_errorCallback"); +var t = async_test(document.title), addressBook, getAddressBooksSuccess, getAddressBooksError; t.step(function () { - var addressBook, getAddressBooksSuccess, getAddressBooksError; getAddressBooksError = t.step_func(function (error) { assert_unreached("Invalid errorCallback invoked: " + error.name + ": " + error.message); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_with_errorCallback_null.html b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_with_errorCallback_null.html index 8d01ea18c..9030b2124 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_with_errorCallback_null.html +++ b/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_with_errorCallback_null.html @@ -25,7 +25,7 @@ Authors: ContactManager_getAddressBooks_with_errorCallback_null - + @@ -34,18 +34,18 @@ Authors: + @@ -34,14 +34,14 @@ Authors: + @@ -41,7 +41,7 @@ test(function () { assert_type(addressBook.id, "string", "addressBook.id"); assert_type(addressBook.name, "string", "addressBook.name"); assert_type(addressBook.readOnly, "boolean", "addressBook.readOnly"); -}, "ContactManager_getDefaultAddressBook"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_getDefaultAddressBook_exist.html b/tct-contact-tizen-tests/contact/ContactManager_getDefaultAddressBook_exist.html index 5be850298..14415bbf5 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_getDefaultAddressBook_exist.html +++ b/tct-contact-tizen-tests/contact/ContactManager_getDefaultAddressBook_exist.html @@ -23,7 +23,7 @@ Authors: ContactManager_getDefaultAddressBook_exist - + @@ -37,7 +37,7 @@ Authors: test(function () { assert_true("getDefaultAddressBook" in tizen.contact, "No getDefaultAddressBook method in tizen.contact."); check_method_exists(tizen.contact, "getDefaultAddressBook"); -}, "ContactManager_getDefaultAddressBook_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_getDefaultAddressBook_extra_argument.html b/tct-contact-tizen-tests/contact/ContactManager_getDefaultAddressBook_extra_argument.html index 9a62ec35b..7fbb5aa5d 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_getDefaultAddressBook_extra_argument.html +++ b/tct-contact-tizen-tests/contact/ContactManager_getDefaultAddressBook_extra_argument.html @@ -23,7 +23,7 @@ Authors: ContactManager_getDefaultAddressBook_extra_argument - + @@ -37,7 +37,7 @@ Authors: test(function () { checkExtraArgument(tizen.contact, "getDefaultAddressBook"); -}, "ContactManager_getDefaultAddressBook_extra_argument"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_getUnifiedAddressBook.html b/tct-contact-tizen-tests/contact/ContactManager_getUnifiedAddressBook.html index d8f4e0587..85c725208 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_getUnifiedAddressBook.html +++ b/tct-contact-tizen-tests/contact/ContactManager_getUnifiedAddressBook.html @@ -23,7 +23,7 @@ Authors: ContactManager_getUnifiedAddressBook - + @@ -43,7 +43,7 @@ test(function () { } assert_type(addressBook.name, "string", "addressBook.name"); assert_type(addressBook.readOnly, "boolean", "addressBook.readOnly"); -}, "ContactManager_getUnifiedAddressBook"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_getUnifiedAddressBook_exist.html b/tct-contact-tizen-tests/contact/ContactManager_getUnifiedAddressBook_exist.html index d97e1ce12..81acd7db8 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_getUnifiedAddressBook_exist.html +++ b/tct-contact-tizen-tests/contact/ContactManager_getUnifiedAddressBook_exist.html @@ -23,7 +23,7 @@ Authors: ContactManager_getUnifiedAddressBook_exist - + @@ -37,7 +37,7 @@ Authors: test(function () { assert_true("getUnifiedAddressBook" in tizen.contact, "No getUnifiedAddressBook method in tizen.contact."); check_method_exists(tizen.contact, "getUnifiedAddressBook"); -}, "ContactManager_getUnifiedAddressBook_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_getUnifiedAddressBook_extra_argument.html b/tct-contact-tizen-tests/contact/ContactManager_getUnifiedAddressBook_extra_argument.html index 95b4aabd5..44a25a36d 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_getUnifiedAddressBook_extra_argument.html +++ b/tct-contact-tizen-tests/contact/ContactManager_getUnifiedAddressBook_extra_argument.html @@ -23,7 +23,7 @@ Authors: ContactManager_getUnifiedAddressBook_extra_argument - + @@ -37,7 +37,7 @@ Authors: test(function () { checkExtraArgument(tizen.contact, "getUnifiedAddressBook"); -}, "ContactManager_getUnifiedAddressBook_extra_argument"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_get_exist.html b/tct-contact-tizen-tests/contact/ContactManager_get_exist.html index df61e7af2..04af0afb2 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_get_exist.html +++ b/tct-contact-tizen-tests/contact/ContactManager_get_exist.html @@ -23,7 +23,7 @@ Authors: ContactManager_get_exist - + @@ -37,7 +37,7 @@ Authors: test(function () { assert_true("get" in tizen.contact, "No get method in tizen.contact."); check_method_exists(tizen.contact, "get"); -}, "ContactManager_get_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_in_tizen.html b/tct-contact-tizen-tests/contact/ContactManager_in_tizen.html index f92f1c36e..6ec332da7 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_in_tizen.html +++ b/tct-contact-tizen-tests/contact/ContactManager_in_tizen.html @@ -23,14 +23,14 @@ Authors: ContactManager_in_tizen -l +l
diff --git a/tct-contact-tizen-tests/contact/ContactManager_notexist.html b/tct-contact-tizen-tests/contact/ContactManager_notexist.html index 693390c52..e29b7ef45 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_notexist.html +++ b/tct-contact-tizen-tests/contact/ContactManager_notexist.html @@ -23,7 +23,7 @@ Authors: ContactManager_notexist - + @@ -37,7 +37,7 @@ Authors: //==== TEST_CRITERIA NIO test(function () { check_no_interface_object("ContactManager"); -}, "ContactManager_notexist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_remove.html b/tct-contact-tizen-tests/contact/ContactManager_remove.html index a1c087956..f4282e595 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_remove.html +++ b/tct-contact-tizen-tests/contact/ContactManager_remove.html @@ -23,7 +23,7 @@ Authors: ContactManager_remove - + @@ -52,12 +52,10 @@ test(function () { addressbook.add(contact); returnedValue = tizen.contact.remove(contact.personId); assert_equals(returnedValue, undefined, "Incorrect value returned."); - assert_throws({ - name: "NotFoundError" - }, function () { + assert_throws(NOT_FOUND_EXCEPTION, function () { getPerson = tizen.contact.get(contact.personId); }); -}, "ContactManager_remove"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_removeBatch.html b/tct-contact-tizen-tests/contact/ContactManager_removeBatch.html index cfc76ae63..379306663 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_removeBatch.html +++ b/tct-contact-tizen-tests/contact/ContactManager_removeBatch.html @@ -23,7 +23,7 @@ Authors: ContactManager_removeBatch - + @@ -35,10 +35,10 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MMINA MR test(function () { - var contact_1, contact_2, addressbook, + var contact1, contact2, addressbook, returnedValue = null; addressbook = tizen.contact.getDefaultAddressBook(); - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" @@ -47,7 +47,7 @@ test(function () { phoneNumbers: [new tizen.ContactPhoneNumber("123456789")] }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -56,11 +56,11 @@ test(function () { phoneNumbers: [new tizen.ContactPhoneNumber("987654321")] }); - addressbook.add(contact_1); - addressbook.add(contact_2); - returnedValue = tizen.contact.removeBatch([contact_1.personId, contact_2.personId]); + addressbook.add(contact1); + addressbook.add(contact2); + returnedValue = tizen.contact.removeBatch([contact1.personId, contact2.personId]); assert_equals(returnedValue, undefined, "Incorrect value returned."); -}, "ContactManager_removeBatch"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_errorCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_errorCallback_TypeMismatch.html index 18f1b101a..1b0257b23 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_errorCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_errorCallback_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: ContactManager_removeBatch_errorCallback_TypeMismatch - + @@ -35,26 +35,25 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:removeBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MC -var t = async_test("ContactManager_removeBatch_errorCallback_TypeMismatch"); +var t = async_test(document.title), contact1, contact2, addressbook, removeBatchSuccess, i, conversionTable, + incorrectCallback, exceptionName; t.step(function () { - var contact_1, contact_2, addressbook, removeBatchSuccess, - i, conversionTable, incorrectCallback, exceptionName; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" }) }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); + addressbook.add(contact1); + addressbook.add(contact2); removeBatchSuccess = t.step_func(function (persons) { assert_unreached("Invalid removeBatchSuccess invoked"); }); @@ -62,13 +61,13 @@ t.step(function () { for (i = 0; i < conversionTable.length; i++) { incorrectCallback = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { - tizen.contact.removeBatch([contact_1.personId, contact_2.personId], removeBatchSuccess, incorrectCallback); + tizen.contact.removeBatch([contact1.personId, contact2.personId], removeBatchSuccess, incorrectCallback); }, exceptionName + " should be thrown - given incorrect."); } - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_errorCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_errorCallback_invalid_cb.html index d1f59d302..79622a3c9 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_errorCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_errorCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: ContactManager_removeBatch_errorCallback_invalid_cb - + @@ -35,18 +35,17 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:removeBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("ContactManager_removeBatch_errorCallback_invalid_cb"); +var t = async_test(document.title), contact1, contact2, addressbook, removeBatchSuccess, incorrectCallback, + exceptionName = "TypeMismatchError"; t.step(function () { - var contact_1, contact_2, addressbook, removeBatchSuccess, - incorrectCallback, exceptionName = "TypeMismatchError"; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -58,17 +57,17 @@ t.step(function () { }) }; addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); + addressbook.add(contact1); + addressbook.add(contact2); removeBatchSuccess = t.step_func(function (persons) { assert_unreached("Invalid removeBatchSuccess invoked"); }); - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { - tizen.contact.removeBatch([contact_1.personId, contact_2.personId], removeBatchSuccess, incorrectCallback); - },exceptionName + " should be thrown - given incorrect success callback."); - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + tizen.contact.removeBatch([contact1.personId, contact2.personId], removeBatchSuccess, incorrectCallback); + }, exceptionName + " should be thrown - given incorrect success callback."); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_errorCallback_invoked.html b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_errorCallback_invoked.html index c2b93679d..9c98bfc19 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_errorCallback_invoked.html +++ b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_errorCallback_invoked.html @@ -23,7 +23,7 @@ Authors: ContactManager_removeBatch_errorCallback_invoked - + @@ -34,9 +34,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:removeBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MERRCB -var t = async_test("ContactManager_removeBatch_errorCallback_invoked"); +var t = async_test(document.title), addressbook, removeBatchError, removeBatchSuccess; t.step(function () { - var addressbook, removeBatchError, removeBatchSuccess; removeBatchError = t.step_func(function (error) { t.done(); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_exist.html b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_exist.html index 66d36ca51..9f3f126ff 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_exist.html +++ b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_exist.html @@ -23,7 +23,7 @@ Authors: ContactManager_removeBatch_exist - + @@ -38,7 +38,7 @@ Authors: test(function () { assert_true("removeBatch" in tizen.contact, "No removeBatch method in tizen.contact."); check_method_exists(tizen.contact, "removeBatch"); -}, "ContactManager_removeBatch_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_missarg.html b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_missarg.html index 7e028671b..879ae7269 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_missarg.html +++ b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_missarg.html @@ -25,7 +25,7 @@ Authors: ContactManager_removeBatch_missarg - + @@ -35,18 +35,16 @@ Authors: //==== TEST: ContactManager_removeBatch_missarg -//==== LABEL check if ContactManager::removeBatch() method called with invalid arguments throws an exceptions +//==== LABEL Check if ContactManager::removeBatch() method called with invalid arguments throws an exceptions //==== PRIORITY P2 //==== SPEC Tizen Web API:Social:Contact:ContactManager:removeBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MMA test(function () { - assert_throws({ - name: TYPE_MISMATCH_ERR - }, function () { + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { tizen.contact.removeBatch(); }); -}, "ContactManager_removeBatch_missarg"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_personIds_TypeMismatch.html b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_personIds_TypeMismatch.html index ca38e5b52..77a738a4a 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_personIds_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_personIds_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: ContactManager_removeBatch_personIds_TypeMismatch - + @@ -41,12 +41,12 @@ test(function () { for (i = 0; i < conversionTable.length; i++) { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { tizen.contact.removeBatch(param); }, exceptionName + " should be thrown - given incorrect."); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_successCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_successCallback_TypeMismatch.html index c122a0fac..b418c8222 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_successCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_successCallback_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: ContactManager_removeBatch_successCallback_TypeMismatch - + @@ -37,36 +37,36 @@ Authors: //==== TEST_CRITERIA MC test(function () { - var contact_1, contact_2, addressbook, i, conversionTable, incorrectCallback, exceptionName; - contact_1 = new tizen.Contact({ + var contact1, contact2, addressbook, i, conversionTable, incorrectCallback, exceptionName; + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" }) }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); + addressbook.add(contact1); + addressbook.add(contact2); conversionTable = getTypeConversionExceptions("functionObject", true); for (i = 0; i < conversionTable.length; i++) { incorrectCallback = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { - tizen.contact.removeBatch([contact_1.personId, contact_2.personId], incorrectCallback); + tizen.contact.removeBatch([contact1.personId, contact2.personId], incorrectCallback); }, exceptionName + " should be thrown - given incorrect."); } - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); -}, "ContactManager_removeBatch_successCallback_TypeMismatch"); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_successCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_successCallback_invalid_cb.html index aa2c41626..f7c52eac3 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_successCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_successCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: ContactManager_removeBatch_successCallback_invalid_cb - + @@ -35,17 +35,17 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:removeBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("ContactManager_removeBatch_successCallback_invalid_cb"); +var t = async_test(document.title), contact1, contact2, addressbook, incorrectCallback, + exceptionName = "TypeMismatchError"; t.step(function () { - var contact_1, contact_2, addressbook, incorrectCallback, exceptionName = "TypeMismatchError"; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -57,15 +57,14 @@ t.step(function () { }) }; addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); + addressbook.add(contact1); + addressbook.add(contact2); - assert_throws({name : exceptionName}, - function () { - tizen.contact.removeBatch([contact_1.personId, contact_2.personId], incorrectCallback); - },exceptionName + " should be thrown - given incorrect success callback."); - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { + tizen.contact.removeBatch([contact1.personId, contact2.personId], incorrectCallback); + }, exceptionName + " should be thrown - given incorrect success callback."); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_with_errorCallback.html b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_with_errorCallback.html index d268d33c4..46f97872f 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_with_errorCallback.html +++ b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_with_errorCallback.html @@ -23,7 +23,7 @@ Authors: ContactManager_removeBatch_with_errorCallback - + @@ -34,17 +34,16 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:removeBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA -var t = async_test("ContactManager_removeBatch_with_errorCallback"); +var t = async_test(document.title), contact1, contact2, addressbook, removeBatchError, removeBatchSuccess; t.step(function () { - var contact_1, contact_2, addressbook, removeBatchError, removeBatchSuccess; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -56,12 +55,12 @@ t.step(function () { }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); + addressbook.add(contact1); + addressbook.add(contact2); removeBatchSuccess = t.step_func(function () { t.done(); }); - tizen.contact.removeBatch([contact_1.personId, contact_2.personId], removeBatchSuccess, removeBatchError); + tizen.contact.removeBatch([contact1.personId, contact2.personId], removeBatchSuccess, removeBatchError); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_with_successCallback.html b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_with_successCallback.html index 6778c7cfd..3ee326477 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_removeBatch_with_successCallback.html +++ b/tct-contact-tizen-tests/contact/ContactManager_removeBatch_with_successCallback.html @@ -23,7 +23,7 @@ Authors: ContactManager_removeBatch_with_successCallback - + @@ -34,18 +34,17 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:removeBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA MR MAST -var t = async_test("ContactManager_removeBatch_with_successCallback"); +var t = async_test(document.title), contact1, contact2, addressbook, removeBatchSuccess, returnedValue = null, + contactCopy; t.step(function () { - var contact_1, contact_2, addressbook, removeBatchSuccess, returnedValue = null, - contactCopy; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName:"Jeffrey", lastName:"Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName:"Elton", lastName:"John" @@ -53,23 +52,19 @@ t.step(function () { }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); + addressbook.add(contact1); + addressbook.add(contact2); removeBatchSuccess = t.step_func(function () { - assert_throws({ - name: "NotFoundError" - }, function () { - contactCopy = tizen.contact.get(contact_1.personId); + assert_throws(NOT_FOUND_EXCEPTION, function () { + contactCopy = tizen.contact.get(contact1.personId); }); - assert_throws({ - name: "NotFoundError" - }, function () { - contactCopy = tizen.contact.get(contact_2.personId); + assert_throws(NOT_FOUND_EXCEPTION, function () { + contactCopy = tizen.contact.get(contact2.personId); }); assert_equals(returnedValue, undefined, "Incorrect value returned."); t.done(); }); - returnedValue = tizen.contact.removeBatch([contact_1.personId, contact_2.personId], removeBatchSuccess); + returnedValue = tizen.contact.removeBatch([contact1.personId, contact2.personId], removeBatchSuccess); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_removeChangeListener.html b/tct-contact-tizen-tests/contact/ContactManager_removeChangeListener.html index c3d361320..2e6f94e67 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_removeChangeListener.html +++ b/tct-contact-tizen-tests/contact/ContactManager_removeChangeListener.html @@ -23,7 +23,7 @@ Authors: ContactManager_removeChangeListener - + @@ -46,15 +46,13 @@ test(function () { } }; watcherId = tizen.contact.addChangeListener(watcher); - assert_type(watcherId, "number", "Check the listener id type."); + assert_type(watcherId, "long", "Check the listener id type."); returnedValue = tizen.contact.removeChangeListener(watcherId); assert_equals(returnedValue, undefined, "Incorrect value returned."); - assert_throws({ - name: "NotFoundError" - }, function () { + assert_throws(NOT_FOUND_EXCEPTION, function () { tizen.contact.removeChangeListener(watcherId); }); -}, "ContactManager_removeChangeListener"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_removeChangeListener_exist.html b/tct-contact-tizen-tests/contact/ContactManager_removeChangeListener_exist.html index e95fa18dd..b6df9b6bf 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_removeChangeListener_exist.html +++ b/tct-contact-tizen-tests/contact/ContactManager_removeChangeListener_exist.html @@ -23,7 +23,7 @@ Authors: ContactManager_removeChangeListener_exist - + @@ -38,7 +38,7 @@ Authors: test(function () { assert_true("removeChangeListener" in tizen.contact, "No removeChangeListener method in tizen.contact."); check_method_exists(tizen.contact, "removeChangeListener"); -}, "ContactManager_removeChangeListener_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_remove_exist.html b/tct-contact-tizen-tests/contact/ContactManager_remove_exist.html index 4a439b7ea..54456f1bc 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_remove_exist.html +++ b/tct-contact-tizen-tests/contact/ContactManager_remove_exist.html @@ -23,7 +23,7 @@ Authors: ContactManager_remove_exist - + @@ -38,7 +38,7 @@ Authors: test(function () { assert_true("remove" in tizen.contact, "No remove method in tizen.contact."); check_method_exists(tizen.contact, "remove"); -}, "ContactManager_remove_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_update.html b/tct-contact-tizen-tests/contact/ContactManager_update.html index 379f7e16b..6cc6b0029 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_update.html +++ b/tct-contact-tizen-tests/contact/ContactManager_update.html @@ -23,7 +23,7 @@ Authors: ContactManager_update - + @@ -58,7 +58,7 @@ test(function () { getPerson = tizen.contact.get(contact.personId); assert_equals(getPerson.isFavorite, true, "isFavorite attribute."); addressbook.remove(contact.id); -}, "ContactManager_update"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_updateBatch.html b/tct-contact-tizen-tests/contact/ContactManager_updateBatch.html index bb2439ab9..8f4aa862b 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_updateBatch.html +++ b/tct-contact-tizen-tests/contact/ContactManager_updateBatch.html @@ -23,7 +23,7 @@ Authors: ContactManager_updateBatch - + @@ -35,18 +35,17 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MMINA MR setup({timeout: 5000}); -var t = async_test("ContactManager_updateBatch", {timeout: 5000}); +var t = async_test(document.title, {timeout: 5000}), contact1, contact2, addressbook, getPerson1, getPerson2, + returnedValue; t.step(function () { - var contact_1, contact_2, addressbook, getPerson_1, - getPerson_2, returnedValue; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -54,17 +53,17 @@ t.step(function () { }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); - getPerson_1 = tizen.contact.get(contact_1.personId); - getPerson_2 = tizen.contact.get(contact_2.personId); - getPerson_1.isFavorite = true; - getPerson_2.isFavorite = true; - returnedValue = tizen.contact.updateBatch([getPerson_1, getPerson_2]); + addressbook.add(contact1); + addressbook.add(contact2); + getPerson1 = tizen.contact.get(contact1.personId); + getPerson2 = tizen.contact.get(contact2.personId); + getPerson1.isFavorite = true; + getPerson2.isFavorite = true; + returnedValue = tizen.contact.updateBatch([getPerson1, getPerson2]); assert_equals(returnedValue, undefined, "Incorrect value returned."); setTimeout(t.step_func(function () { - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); t.done(); }), 2000); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_errorCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_errorCallback_TypeMismatch.html index 3ecfa1c0e..d1f4f2dde 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_errorCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_errorCallback_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: ContactManager_updateBatch_errorCallback_TypeMismatch - + @@ -35,30 +35,29 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:updateBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MC -var t = async_test("ContactManager_updateBatch_errorCallback_TypeMismatch"); +var t = async_test(document.title), contact1, contact2, addressbook, updateBatchSuccess, getPerson1, getPerson2, + i, conversionTable, incorrectCallback, exceptionName; t.step(function () { - var contact_1, contact_2, addressbook, updateBatchSuccess, getPerson_1, - getPerson_2, i, conversionTable, incorrectCallback, exceptionName; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" }) }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); - getPerson_1 = tizen.contact.get(contact_1.personId); - getPerson_2 = tizen.contact.get(contact_2.personId); - getPerson_1.isFavorite = true; - getPerson_2.isFavorite = true; + addressbook.add(contact1); + addressbook.add(contact2); + getPerson1 = tizen.contact.get(contact1.personId); + getPerson2 = tizen.contact.get(contact2.personId); + getPerson1.isFavorite = true; + getPerson2.isFavorite = true; updateBatchSuccess = t.step_func(function (persons) { assert_unreached("Invalid updateBatchSuccess invoked. Persons = " + persons); }); @@ -66,13 +65,13 @@ t.step(function () { for (i = 0; i < conversionTable.length; i++) { incorrectCallback = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { - tizen.contact.updateBatch([getPerson_1, getPerson_2], updateBatchSuccess, incorrectCallback); + tizen.contact.updateBatch([getPerson1, getPerson2], updateBatchSuccess, incorrectCallback); }, exceptionName + " should be thrown - given incorrect."); } - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_errorCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_errorCallback_invalid_cb.html index 2d7b9a472..4fffa66db 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_errorCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_errorCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: ContactManager_updateBatch_errorCallback_invalid_cb - + @@ -35,18 +35,17 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:updateBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("ContactManager_updateBatch_errorCallback_invalid_cb"); +var t = async_test(document.title), contact1, contact2, addressbook, updateBatchSuccess, getPerson1, getPerson2, + incorrectCallback, exceptionName = "TypeMismatchError"; t.step(function () { - var contact_1, contact_2, addressbook, updateBatchSuccess, getPerson_1, - getPerson_2, incorrectCallback, exceptionName = "TypeMismatchError"; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -58,21 +57,21 @@ t.step(function () { }) }; addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); - getPerson_1 = tizen.contact.get(contact_1.personId); - getPerson_2 = tizen.contact.get(contact_2.personId); - getPerson_1.isFavorite = true; - getPerson_2.isFavorite = true; + addressbook.add(contact1); + addressbook.add(contact2); + getPerson1 = tizen.contact.get(contact1.personId); + getPerson2 = tizen.contact.get(contact2.personId); + getPerson1.isFavorite = true; + getPerson2.isFavorite = true; updateBatchSuccess = t.step_func(function (persons) { assert_unreached("Invalid updateBatchSuccess invoked. Persons = " + persons); }); - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { - tizen.contact.updateBatch([getPerson_1, getPerson_2], updateBatchSuccess, incorrectCallback); - },exceptionName + " should be thrown - given incorrect error callback."); - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + tizen.contact.updateBatch([getPerson1, getPerson2], updateBatchSuccess, incorrectCallback); + }, exceptionName + " should be thrown - given incorrect error callback."); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_exist.html b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_exist.html index 04aa75004..009851e8c 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_exist.html +++ b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_exist.html @@ -23,7 +23,7 @@ Authors: ContactManager_updateBatch_exist - + @@ -38,7 +38,7 @@ Authors: test(function () { assert_true("updateBatch" in tizen.contact, "No updateBatch method in tizen.contact."); check_method_exists(tizen.contact, "updateBatch"); -}, "ContactManager_updateBatch_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_missarg.html b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_missarg.html index d42f8a971..3591b9e08 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_missarg.html +++ b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_missarg.html @@ -25,7 +25,7 @@ Authors: ContactManager_updateBatch_missarg - + @@ -35,19 +35,17 @@ Authors: //==== TEST: ContactManager_updateBatch_missarg -//==== LABEL check if ContactManager::updateBatch() method called with invalid arguments throws an exceptions +//==== LABEL Check if ContactManager::updateBatch() method called with invalid arguments throws an exceptions //==== PRIORITY P2 //==== SPEC Tizen Web API:Social:Contact:ContactManager:updateBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MMA test(function () { - assert_throws({ - name: TYPE_MISMATCH_ERR - }, function () { + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { tizen.contact.updateBatch(); }); -}, "ContactManager_updateBatch_missarg"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_persons_TypeMismatch.html b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_persons_TypeMismatch.html index 63ac5dc33..a9a562452 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_persons_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_persons_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: ContactManager_updateBatch_persons_TypeMismatch - + @@ -42,12 +42,12 @@ test(function () { for (i = 0; i < conversionTable.length; i++) { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { tizen.contact.updateBatch(param); }, exceptionName + " should be thrown - given incorrect."); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_successCallback_TypeMismatch.html b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_successCallback_TypeMismatch.html index f926ba90c..8797ca409 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_successCallback_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_successCallback_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: ContactManager_updateBatch_successCallback_TypeMismatch - + @@ -37,41 +37,41 @@ Authors: //==== TEST_CRITERIA MC test(function () { - var contact_1, contact_2, addressbook, getPerson_1, - getPerson_2, i, conversionTable, incorrectCallback, exceptionName; - contact_1 = new tizen.Contact({ + var contact1, contact2, addressbook, getPerson1, + getPerson2, i, conversionTable, incorrectCallback, exceptionName; + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" }) }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); - getPerson_1 = tizen.contact.get(contact_1.personId); - getPerson_2 = tizen.contact.get(contact_2.personId); - getPerson_1.isFavorite = true; - getPerson_2.isFavorite = true; + addressbook.add(contact1); + addressbook.add(contact2); + getPerson1 = tizen.contact.get(contact1.personId); + getPerson2 = tizen.contact.get(contact2.personId); + getPerson1.isFavorite = true; + getPerson2.isFavorite = true; conversionTable = getTypeConversionExceptions("functionObject", true); for (i = 0; i < conversionTable.length; i++) { incorrectCallback = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { - tizen.contact.updateBatch([getPerson_1, getPerson_2], incorrectCallback); + tizen.contact.updateBatch([getPerson1, getPerson2], incorrectCallback); }, exceptionName + " should be thrown - given incorrect."); } - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); -}, "ContactManager_updateBatch_successCallback_TypeMismatch"); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_successCallback_invalid_cb.html b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_successCallback_invalid_cb.html index 5bea2fba7..f3919c75f 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_successCallback_invalid_cb.html +++ b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_successCallback_invalid_cb.html @@ -23,7 +23,7 @@ Authors: ContactManager_updateBatch_successCallback_invalid_cb - + @@ -35,18 +35,17 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:updateBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MTCB -var t = async_test("ContactManager_updateBatch_successCallback_invalid_cb"); +var t = async_test(document.title), contact1, contact2, addressbook, getPerson1, getPerson2, incorrectCallback, + exceptionName = "TypeMismatchError"; t.step(function () { - var contact_1, contact_2, addressbook, getPerson_1, - getPerson_2, incorrectCallback, exceptionName = "TypeMismatchError"; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -58,18 +57,18 @@ t.step(function () { }) }; addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); - getPerson_1 = tizen.contact.get(contact_1.personId); - getPerson_2 = tizen.contact.get(contact_2.personId); - getPerson_1.isFavorite = true; - getPerson_2.isFavorite = true; - assert_throws({name : exceptionName}, + addressbook.add(contact1); + addressbook.add(contact2); + getPerson1 = tizen.contact.get(contact1.personId); + getPerson2 = tizen.contact.get(contact2.personId); + getPerson1.isFavorite = true; + getPerson2.isFavorite = true; + assert_throws({name: exceptionName}, function () { - tizen.contact.updateBatch([getPerson_1, getPerson_2], incorrectCallback); - },exceptionName + " should be thrown - given incorrect success callback."); - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + tizen.contact.updateBatch([getPerson1, getPerson2], incorrectCallback); + }, exceptionName + " should be thrown - given incorrect success callback."); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); t.done(); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_with_errorCallback.html b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_with_errorCallback.html index 57217a553..bcb440ddd 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_with_errorCallback.html +++ b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_with_errorCallback.html @@ -23,7 +23,7 @@ Authors: ContactManager_updateBatch_with_errorCallback - + @@ -34,18 +34,17 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:updateBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA MR -var t = async_test("ContactManager_updateBatch_with_errorCallback"); +var t = async_test(document.title), contact1, contact2, addressbook, updateBatchError, updateBatchSuccess, + getPerson1, getPerson2, returnedValue = null; t.step(function () { - var contact_1, contact_2, addressbook, updateBatchError, updateBatchSuccess, getPerson_1, - getPerson_2, returnedValue = null; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -57,19 +56,19 @@ t.step(function () { }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); - getPerson_1 = tizen.contact.get(contact_1.personId); - getPerson_2 = tizen.contact.get(contact_2.personId); - getPerson_1.isFavorite = true; - getPerson_2.isFavorite = true; + addressbook.add(contact1); + addressbook.add(contact2); + getPerson1 = tizen.contact.get(contact1.personId); + getPerson2 = tizen.contact.get(contact2.personId); + getPerson1.isFavorite = true; + getPerson2.isFavorite = true; updateBatchSuccess = t.step_func(function () { assert_equals(returnedValue, undefined, "Incorrect value returned."); - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); t.done(); }); - returnedValue = tizen.contact.updateBatch([getPerson_1, getPerson_2], updateBatchSuccess, updateBatchError); + returnedValue = tizen.contact.updateBatch([getPerson1, getPerson2], updateBatchSuccess, updateBatchError); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_with_successCallback.html b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_with_successCallback.html index 10b45f467..accffabdc 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_updateBatch_with_successCallback.html +++ b/tct-contact-tizen-tests/contact/ContactManager_updateBatch_with_successCallback.html @@ -23,7 +23,7 @@ Authors: ContactManager_updateBatch_with_successCallback - + @@ -34,18 +34,17 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:updateBatch M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA MR MAST -var t = async_test("ContactManager_updateBatch_with_successCallback"); +var t = async_test(document.title), contact1, contact2, addressbook, updateBatchSuccess, getPerson1, getPerson2, + getPerson3, getPerson4, returnedValue = null; t.step(function () { - var contact_1, contact_2, addressbook, updateBatchSuccess, getPerson_1, - getPerson_2, getPerson_3, getPerson_4, returnedValue = null; - contact_1 = new tizen.Contact({ + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" @@ -53,23 +52,23 @@ t.step(function () { }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); - getPerson_1 = tizen.contact.get(contact_1.personId); - getPerson_2 = tizen.contact.get(contact_2.personId); - getPerson_1.isFavorite = true; - getPerson_2.isFavorite = true; + addressbook.add(contact1); + addressbook.add(contact2); + getPerson1 = tizen.contact.get(contact1.personId); + getPerson2 = tizen.contact.get(contact2.personId); + getPerson1.isFavorite = true; + getPerson2.isFavorite = true; updateBatchSuccess = t.step_func(function () { assert_equals(returnedValue, undefined, "Incorrect value returned."); - getPerson_3 = tizen.contact.get(contact_1.personId); - getPerson_4 = tizen.contact.get(contact_2.personId); - assert_equals(getPerson_3.isFavorite, true, "getPerson_3.isFavorite attribute."); - assert_equals(getPerson_4.isFavorite, true, "getPerson_4.isFavorite attribute."); - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); + getPerson3 = tizen.contact.get(contact1.personId); + getPerson4 = tizen.contact.get(contact2.personId); + assert_equals(getPerson3.isFavorite, true, "getPerson3.isFavorite attribute."); + assert_equals(getPerson4.isFavorite, true, "getPerson4.isFavorite attribute."); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); t.done(); }); - returnedValue = tizen.contact.updateBatch([getPerson_1, getPerson_2], updateBatchSuccess); + returnedValue = tizen.contact.updateBatch([getPerson1, getPerson2], updateBatchSuccess); }); diff --git a/tct-contact-tizen-tests/contact/ContactManager_update_exist.html b/tct-contact-tizen-tests/contact/ContactManager_update_exist.html index c6deec14c..d49fc7787 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_update_exist.html +++ b/tct-contact-tizen-tests/contact/ContactManager_update_exist.html @@ -23,7 +23,7 @@ Authors: ContactManager_update_exist - + @@ -38,7 +38,7 @@ Authors: test(function () { assert_true("update" in tizen.contact, "No update method in tizen.contact."); check_method_exists(tizen.contact, "update"); -}, "ContactManager_update_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactManager_update_missarg.html b/tct-contact-tizen-tests/contact/ContactManager_update_missarg.html index 7c0ee3a99..7c4761adc 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_update_missarg.html +++ b/tct-contact-tizen-tests/contact/ContactManager_update_missarg.html @@ -25,7 +25,7 @@ Authors: ContactManager_update_missarg - + @@ -33,19 +33,17 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactManager_update_person_TypeMismatch.html b/tct-contact-tizen-tests/contact/ContactManager_update_person_TypeMismatch.html index 7d13a0d8c..d83ac60cf 100644 --- a/tct-contact-tizen-tests/contact/ContactManager_update_person_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/ContactManager_update_person_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: ContactManager_update_person_TypeMismatch - + @@ -43,12 +43,12 @@ test(function () { param = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { tizen.contact.update(param); }, exceptionName + " should be thrown - given incorrect."); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactName_constructor.html b/tct-contact-tizen-tests/contact/ContactName_constructor.html index f52b4bfc3..25c2bc4dc 100644 --- a/tct-contact-tizen-tests/contact/ContactName_constructor.html +++ b/tct-contact-tizen-tests/contact/ContactName_constructor.html @@ -25,7 +25,7 @@ Authors: ContactName_constructor - + @@ -33,7 +33,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactName_displayName_attribute.html b/tct-contact-tizen-tests/contact/ContactName_displayName_attribute.html index b8c935119..769f12465 100644 --- a/tct-contact-tizen-tests/contact/ContactName_displayName_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactName_displayName_attribute.html @@ -25,7 +25,7 @@ Authors: ContactName_displayName_attribute - + @@ -66,7 +66,7 @@ test(function () { addressbook.add(contact); assert_type(contact.name.displayName, "string", "displayName type check"); addressbook.remove(contact.id); -}, "ContactName_displayName_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactName_exist.html b/tct-contact-tizen-tests/contact/ContactName_exist.html index 35ae0de95..357ddf575 100644 --- a/tct-contact-tizen-tests/contact/ContactName_exist.html +++ b/tct-contact-tizen-tests/contact/ContactName_exist.html @@ -25,7 +25,7 @@ Authors: ContactName_exist - + @@ -33,13 +33,13 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactName_extend.html b/tct-contact-tizen-tests/contact/ContactName_extend.html index cd37488ed..4af1abcd9 100644 --- a/tct-contact-tizen-tests/contact/ContactName_extend.html +++ b/tct-contact-tizen-tests/contact/ContactName_extend.html @@ -25,7 +25,7 @@ Authors: ContactName_extend - + @@ -33,7 +33,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactName_firstName_attribute.html b/tct-contact-tizen-tests/contact/ContactName_firstName_attribute.html index 9ad83ca53..d6ba294ae 100644 --- a/tct-contact-tizen-tests/contact/ContactName_firstName_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactName_firstName_attribute.html @@ -25,7 +25,7 @@ Authors: ContactName_firstName_attribute - + @@ -54,7 +54,7 @@ test(function () { assert_equals(contactName.firstName, "Douglas", "firstName attribute."); contactName.firstName = newValue; assert_equals(contactName.firstName, newValue, "firstName attribute."); -}, "ContactName_firstName_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactName_lastName_attribute.html b/tct-contact-tizen-tests/contact/ContactName_lastName_attribute.html index 3608ca6dd..7440f50f8 100644 --- a/tct-contact-tizen-tests/contact/ContactName_lastName_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactName_lastName_attribute.html @@ -25,7 +25,7 @@ Authors: ContactName_lastName_attribute - + @@ -54,7 +54,7 @@ test(function () { assert_equals(contactName.lastName, "Colvin", "lastName attribute."); contactName.lastName = newValue; assert_equals(contactName.lastName, newValue, "lastName attribute."); -}, "ContactName_lastName_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactName_middleName_attribute.html b/tct-contact-tizen-tests/contact/ContactName_middleName_attribute.html index 280e9c35e..afbebf047 100644 --- a/tct-contact-tizen-tests/contact/ContactName_middleName_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactName_middleName_attribute.html @@ -25,7 +25,7 @@ Authors: ContactName_middleName_attribute - + @@ -54,7 +54,7 @@ test(function () { assert_equals(contactName.middleName, "Glenn", "middleName attribute."); contactName.middleName = newValue; assert_equals(contactName.middleName, newValue, "middleName attribute."); -}, "ContactName_middleName_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactName_nicknames_attribute.html b/tct-contact-tizen-tests/contact/ContactName_nicknames_attribute.html index cc3f401f7..09fd01e7e 100644 --- a/tct-contact-tizen-tests/contact/ContactName_nicknames_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactName_nicknames_attribute.html @@ -25,7 +25,7 @@ Authors: ContactName_nicknames_attribute - + @@ -71,7 +71,7 @@ test(function () { contactName.nicknames = null; assert_type(contactNameDefault.nicknames, "array", "contactNameDefault.nicknames type chceck"); assert_equals(contactNameDefault.nicknames.length, 0, "contactNameDefault.nicknames.length chceck"); -}, "ContactName_nicknames_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactName_phoneticFirstName_attribute.html b/tct-contact-tizen-tests/contact/ContactName_phoneticFirstName_attribute.html index 2ce1c949b..ff351dca7 100644 --- a/tct-contact-tizen-tests/contact/ContactName_phoneticFirstName_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactName_phoneticFirstName_attribute.html @@ -25,7 +25,7 @@ Authors: ContactName_phoneticFirstName_attribute - + @@ -54,7 +54,7 @@ test(function () { assert_equals(contactName.phoneticFirstName, "Douglas p", "phoneticFirstName attribute."); contactName.phoneticFirstName = newValue; assert_equals(contactName.phoneticFirstName, newValue, "phoneticFirstName attribute."); -}, "ContactName_phoneticFirstName_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactName_phoneticLastName_attribute.html b/tct-contact-tizen-tests/contact/ContactName_phoneticLastName_attribute.html index fe2d6887b..599789b13 100644 --- a/tct-contact-tizen-tests/contact/ContactName_phoneticLastName_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactName_phoneticLastName_attribute.html @@ -25,7 +25,7 @@ Authors: ContactName_phoneticLastName_attribute - + @@ -54,7 +54,7 @@ test(function () { assert_equals(contactName.phoneticLastName, "Colvin p", "phoneticLastName attribute."); contactName.phoneticLastName = newValue; assert_equals(contactName.phoneticLastName, newValue, "phoneticLastName attribute."); -}, "ContactName_phoneticLastName_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactName_prefix_attribute.html b/tct-contact-tizen-tests/contact/ContactName_prefix_attribute.html index 544d28fa3..3e8280b04 100644 --- a/tct-contact-tizen-tests/contact/ContactName_prefix_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactName_prefix_attribute.html @@ -25,7 +25,7 @@ Authors: ContactName_prefix_attribute - + @@ -54,7 +54,7 @@ test(function () { assert_equals(contactName.prefix, "Dr.", "prefix attribute."); contactName.prefix = newValue; assert_equals(contactName.prefix, newValue, "prefix attribute."); -}, "ContactName_prefix_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactName_suffix_attribute.html b/tct-contact-tizen-tests/contact/ContactName_suffix_attribute.html index 9bee8e689..e8218e093 100644 --- a/tct-contact-tizen-tests/contact/ContactName_suffix_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactName_suffix_attribute.html @@ -25,7 +25,7 @@ Authors: ContactName_suffix_attribute - + @@ -54,7 +54,7 @@ test(function () { assert_equals(contactName.suffix, "Jr.", "suffix attribute."); contactName.suffix = newValue; assert_equals(contactName.suffix, newValue, "suffix attribute."); -}, "ContactName_suffix_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactOrganization_constructor.html b/tct-contact-tizen-tests/contact/ContactOrganization_constructor.html index 7dcf24b34..f709bb59c 100644 --- a/tct-contact-tizen-tests/contact/ContactOrganization_constructor.html +++ b/tct-contact-tizen-tests/contact/ContactOrganization_constructor.html @@ -25,7 +25,7 @@ Authors: ContactOrganization_constructor - + @@ -33,7 +33,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactOrganization_constructor_minarg.html b/tct-contact-tizen-tests/contact/ContactOrganization_constructor_minarg.html index d3af32182..b3c319cae 100644 --- a/tct-contact-tizen-tests/contact/ContactOrganization_constructor_minarg.html +++ b/tct-contact-tizen-tests/contact/ContactOrganization_constructor_minarg.html @@ -25,7 +25,7 @@ Authors: ContactOrganization_constructor_minarg - + @@ -35,7 +35,7 @@ Authors: //==== TEST: ContactOrganization_constructor_minarg -//==== LABEL check various arguments for ContactOrganization() constructor +//==== LABEL Check various arguments for ContactOrganization() constructor //==== SPEC Tizen Web API:Social:Contact:ContactOrganization:constructor C //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA CONSTRM @@ -51,7 +51,7 @@ test(function () { assert_equals(contactOrganization.title, null, "title attribute."); assert_equals(contactOrganization.role, null, "role attribute."); assert_equals(contactOrganization.logoURI, null, "logoURI attribute."); -}, "ContactOrganization_constructor_minarg"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactOrganization_department_attribute.html b/tct-contact-tizen-tests/contact/ContactOrganization_department_attribute.html index eae8fa066..99911d769 100644 --- a/tct-contact-tizen-tests/contact/ContactOrganization_department_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactOrganization_department_attribute.html @@ -25,7 +25,7 @@ Authors: ContactOrganization_department_attribute - + @@ -52,7 +52,7 @@ test(function () { assert_equals(contactOrganization.department, "S/W Engineer", "department attribute."); contactOrganization.department = newValue; assert_equals(contactOrganization.department, newValue, "department attribute."); -}, "ContactOrganization_department_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactOrganization_exist.html b/tct-contact-tizen-tests/contact/ContactOrganization_exist.html index a0a3ee80b..fe6fc469d 100644 --- a/tct-contact-tizen-tests/contact/ContactOrganization_exist.html +++ b/tct-contact-tizen-tests/contact/ContactOrganization_exist.html @@ -25,7 +25,7 @@ Authors: ContactOrganization_exist - + @@ -33,13 +33,13 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactOrganization_extend.html b/tct-contact-tizen-tests/contact/ContactOrganization_extend.html index 55f6ba857..70f9840a5 100644 --- a/tct-contact-tizen-tests/contact/ContactOrganization_extend.html +++ b/tct-contact-tizen-tests/contact/ContactOrganization_extend.html @@ -25,7 +25,7 @@ Authors: ContactOrganization_extend - + @@ -33,14 +33,14 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactOrganization_logoURI_attribute.html b/tct-contact-tizen-tests/contact/ContactOrganization_logoURI_attribute.html index b9f2b7bf6..68e8c2434 100644 --- a/tct-contact-tizen-tests/contact/ContactOrganization_logoURI_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactOrganization_logoURI_attribute.html @@ -25,7 +25,7 @@ Authors: ContactOrganization_logoURI_attribute - + @@ -52,7 +52,7 @@ test(function () { assert_equals(contactOrganization.logoURI, TEST_IMAGE_1, "logoURI attribute."); contactOrganization.logoURI = newValue; assert_equals(contactOrganization.logoURI, newValue, "logoURI attribute."); -}, "ContactOrganization_logoURI_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactOrganization_name_attribute.html b/tct-contact-tizen-tests/contact/ContactOrganization_name_attribute.html index a9fb035cc..fbf9763b7 100644 --- a/tct-contact-tizen-tests/contact/ContactOrganization_name_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactOrganization_name_attribute.html @@ -25,7 +25,7 @@ Authors: ContactOrganization_name_attribute - + @@ -52,7 +52,7 @@ test(function () { assert_equals(contactOrganization.name, "Samsung Electronics", "name attribute."); contactOrganization.name = newValue; assert_equals(contactOrganization.name, newValue, "name attribute."); -}, "ContactOrganization_name_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactOrganization_role_attribute.html b/tct-contact-tizen-tests/contact/ContactOrganization_role_attribute.html index de6b70be9..1126469f3 100644 --- a/tct-contact-tizen-tests/contact/ContactOrganization_role_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactOrganization_role_attribute.html @@ -25,7 +25,7 @@ Authors: ContactOrganization_role_attribute - + @@ -52,7 +52,7 @@ test(function () { assert_equals(contactOrganization.role, "role", "role attribute."); contactOrganization.role = newValue; assert_equals(contactOrganization.role, newValue, "role attribute."); -}, "ContactOrganization_role_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactOrganization_title_attribute.html b/tct-contact-tizen-tests/contact/ContactOrganization_title_attribute.html index 4b44ad07c..f4608c57d 100644 --- a/tct-contact-tizen-tests/contact/ContactOrganization_title_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactOrganization_title_attribute.html @@ -25,7 +25,7 @@ Authors: ContactOrganization_title_attribute - + @@ -52,7 +52,7 @@ test(function () { assert_equals(contactOrganization.title, "title", "title attribute."); contactOrganization.title = newValue; assert_equals(contactOrganization.title, newValue, "title attribute."); -}, "ContactOrganization_title_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactPhoneNumber_constructor.html b/tct-contact-tizen-tests/contact/ContactPhoneNumber_constructor.html index 4e5e22c94..b09be8231 100644 --- a/tct-contact-tizen-tests/contact/ContactPhoneNumber_constructor.html +++ b/tct-contact-tizen-tests/contact/ContactPhoneNumber_constructor.html @@ -25,7 +25,7 @@ Authors: ContactPhoneNumber_constructor - + @@ -33,7 +33,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactPhoneNumber_constructor_minargs.html b/tct-contact-tizen-tests/contact/ContactPhoneNumber_constructor_minargs.html index f030c1b42..64e761a4d 100644 --- a/tct-contact-tizen-tests/contact/ContactPhoneNumber_constructor_minargs.html +++ b/tct-contact-tizen-tests/contact/ContactPhoneNumber_constructor_minargs.html @@ -25,7 +25,7 @@ Authors: ContactPhoneNumber_constructor_minargs - + @@ -33,7 +33,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactPhoneNumber_exist.html b/tct-contact-tizen-tests/contact/ContactPhoneNumber_exist.html index ad25137b3..61308b448 100644 --- a/tct-contact-tizen-tests/contact/ContactPhoneNumber_exist.html +++ b/tct-contact-tizen-tests/contact/ContactPhoneNumber_exist.html @@ -25,7 +25,7 @@ Authors: ContactPhoneNumber_exist - + @@ -33,13 +33,13 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactPhoneNumber_extend.html b/tct-contact-tizen-tests/contact/ContactPhoneNumber_extend.html index 61b37094f..12e9c4c25 100644 --- a/tct-contact-tizen-tests/contact/ContactPhoneNumber_extend.html +++ b/tct-contact-tizen-tests/contact/ContactPhoneNumber_extend.html @@ -25,7 +25,7 @@ Authors: ContactPhoneNumber_extend - + @@ -33,7 +33,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactPhoneNumber_isDefault_attribute.html b/tct-contact-tizen-tests/contact/ContactPhoneNumber_isDefault_attribute.html index 2c17f0adb..59cd0268e 100644 --- a/tct-contact-tizen-tests/contact/ContactPhoneNumber_isDefault_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactPhoneNumber_isDefault_attribute.html @@ -25,7 +25,7 @@ Authors: ContactPhoneNumber_isDefault_attribute - + @@ -48,7 +48,7 @@ test(function () { assert_equals(contactPhoneNumber.isDefault, newValue, "isDefault attribute."); contactPhoneNumber.isDefault = null; assert_not_equals(contactPhoneNumber.isDefault, null, "operation no accept null"); -}, "ContactPhoneNumber_isDefault_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactPhoneNumber_number_attribute.html b/tct-contact-tizen-tests/contact/ContactPhoneNumber_number_attribute.html index f5b907168..aac35cc12 100644 --- a/tct-contact-tizen-tests/contact/ContactPhoneNumber_number_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactPhoneNumber_number_attribute.html @@ -25,7 +25,7 @@ Authors: ContactPhoneNumber_number_attribute - + @@ -48,7 +48,7 @@ test(function () { assert_equals(contactPhoneNumber.number, newValue, "number attribute."); contactPhoneNumber.number = null; assert_not_equals(contactPhoneNumber.number, null, "operation no accept null"); -}, "ContactPhoneNumber_number_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactPhoneNumber_types_attribute.html b/tct-contact-tizen-tests/contact/ContactPhoneNumber_types_attribute.html index 6c0f09520..cc1b703cf 100644 --- a/tct-contact-tizen-tests/contact/ContactPhoneNumber_types_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactPhoneNumber_types_attribute.html @@ -25,7 +25,7 @@ Authors: ContactPhoneNumber_types_attribute - + @@ -51,7 +51,7 @@ test(function () { assert_equals(contactPhoneNumber.types.length, 1, "contactAddress.types.length chceck"); contactPhoneNumber.types = null; assert_not_equals(contactPhoneNumber.types, null, "operation no accept null"); -}, "ContactPhoneNumber_types_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactRef_addressBookId_attribute.html b/tct-contact-tizen-tests/contact/ContactRef_addressBookId_attribute.html index 6db7d8df0..10c7f489f 100644 --- a/tct-contact-tizen-tests/contact/ContactRef_addressBookId_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactRef_addressBookId_attribute.html @@ -22,7 +22,7 @@ Authors: ContactRef_addressBookId_attribute - + @@ -48,7 +48,7 @@ test(function () { contactRef.addressBookId = null; assert_not_equals(contactRef.addressBookId, null, "operation no accept null"); defaultAddressBook.remove(contact.id); -}, "ContactRef_addressBookId_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactRef_constructor.html b/tct-contact-tizen-tests/contact/ContactRef_constructor.html index 3dc5e4b56..b93b37724 100644 --- a/tct-contact-tizen-tests/contact/ContactRef_constructor.html +++ b/tct-contact-tizen-tests/contact/ContactRef_constructor.html @@ -23,7 +23,7 @@ Authors: ContactRef_constructor - + @@ -31,7 +31,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactRef_contactId_attribute.html b/tct-contact-tizen-tests/contact/ContactRef_contactId_attribute.html index 59d2d9189..04aa23e98 100644 --- a/tct-contact-tizen-tests/contact/ContactRef_contactId_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactRef_contactId_attribute.html @@ -23,7 +23,7 @@ Authors: ContactRef_contactId_attribute - + @@ -52,7 +52,7 @@ test(function () { assert_not_equals(contactRef.contactId, null, "operation no accept null"); defaultAddressBook.remove(contact1.id); defaultAddressBook.remove(contact2.id); -}, "ContactRef_contactId_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactRef_exist.html b/tct-contact-tizen-tests/contact/ContactRef_exist.html index b14c8275a..46907b422 100644 --- a/tct-contact-tizen-tests/contact/ContactRef_exist.html +++ b/tct-contact-tizen-tests/contact/ContactRef_exist.html @@ -25,7 +25,7 @@ Authors: ContactRef_exist - + @@ -33,13 +33,13 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactRef_extend.html b/tct-contact-tizen-tests/contact/ContactRef_extend.html index 65ac78b83..d061ee9db 100644 --- a/tct-contact-tizen-tests/contact/ContactRef_extend.html +++ b/tct-contact-tizen-tests/contact/ContactRef_extend.html @@ -23,7 +23,7 @@ Authors: ContactRef_extend - + @@ -31,7 +31,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactTextFormat_enum_VCARD_30.html b/tct-contact-tizen-tests/contact/ContactTextFormat_enum_VCARD_30.html index d817cd446..b52bbb17d 100644 --- a/tct-contact-tizen-tests/contact/ContactTextFormat_enum_VCARD_30.html +++ b/tct-contact-tizen-tests/contact/ContactTextFormat_enum_VCARD_30.html @@ -66,7 +66,7 @@ test(function (){ assert_not_equals(contactStr, null, "contactStr should not be null"); defaultAddressBook.remove(contact.id); -}, "ContactTextFormat_enum_VCARD_30"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactTextFormat_enum_invalid.html b/tct-contact-tizen-tests/contact/ContactTextFormat_enum_invalid.html index 1848a56d4..e2e38cc60 100644 --- a/tct-contact-tizen-tests/contact/ContactTextFormat_enum_invalid.html +++ b/tct-contact-tizen-tests/contact/ContactTextFormat_enum_invalid.html @@ -33,8 +33,7 @@ Revision history: ContactTextFormat_enum_invalid - - + @@ -62,11 +61,11 @@ test(function (){ })] }); defaultAddressBook.add(contact); - assert_throws("TYPE_MISMATCH_ERR", function () { + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { contact.convertToString("invalidValue"); }, "TypeMismatchError exception."); defaultAddressBook.remove(contact.id); -}, "ContactTextFormat_enum_invalid"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactWebSite_constructor.html b/tct-contact-tizen-tests/contact/ContactWebSite_constructor.html index ce333eaab..ee314b8f8 100644 --- a/tct-contact-tizen-tests/contact/ContactWebSite_constructor.html +++ b/tct-contact-tizen-tests/contact/ContactWebSite_constructor.html @@ -26,7 +26,7 @@ Authors: ContactWebSite_constructor - + @@ -34,7 +34,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/ContactWebSite_exist.html b/tct-contact-tizen-tests/contact/ContactWebSite_exist.html index 9918ce114..b0cee2a20 100644 --- a/tct-contact-tizen-tests/contact/ContactWebSite_exist.html +++ b/tct-contact-tizen-tests/contact/ContactWebSite_exist.html @@ -23,7 +23,7 @@ Authors: ContactWebSite_exist - + @@ -36,7 +36,7 @@ Authors: //==== TEST_CRITERIA CONSTRF test(function () { check_constructor("ContactWebSite"); -}, "ContactWebSite_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactWebSite_extend.html b/tct-contact-tizen-tests/contact/ContactWebSite_extend.html index da6308ce1..21bac5b0e 100644 --- a/tct-contact-tizen-tests/contact/ContactWebSite_extend.html +++ b/tct-contact-tizen-tests/contact/ContactWebSite_extend.html @@ -25,14 +25,14 @@ Authors: ContactWebSite_extend - +
diff --git a/tct-contact-tizen-tests/contact/ContactWebSite_type_attribute.html b/tct-contact-tizen-tests/contact/ContactWebSite_type_attribute.html index 02fa21cbb..17359cac4 100644 --- a/tct-contact-tizen-tests/contact/ContactWebSite_type_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactWebSite_type_attribute.html @@ -23,7 +23,7 @@ Authors: ContactWebSite_type_attribute - + @@ -44,7 +44,7 @@ test(function () { assert_equals(contactWebSite.type, newValue, "type attribute."); contactWebSite.type = null; assert_not_equals(contactWebSite.type, null, "operation no accept null"); -}, "ContactWebSite_type_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/ContactWebSite_url_attribute.html b/tct-contact-tizen-tests/contact/ContactWebSite_url_attribute.html index 84ad0fdd5..1931e2f60 100644 --- a/tct-contact-tizen-tests/contact/ContactWebSite_url_attribute.html +++ b/tct-contact-tizen-tests/contact/ContactWebSite_url_attribute.html @@ -23,7 +23,7 @@ Authors: ContactWebSite_url_attribute - + @@ -44,7 +44,7 @@ test(function () { assert_equals(contactWebSite.url, newValue, "url attribute."); contactWebSite.url = null; assert_not_equals(contactWebSite.url, null, "operation no accept null"); -}, "ContactWebSite_url_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_ContactArraySuccessCallback_onsuccess.html b/tct-contact-tizen-tests/contact/Contact_ContactArraySuccessCallback_onsuccess.html index 6bbd6e707..6997fb9c3 100644 --- a/tct-contact-tizen-tests/contact/Contact_ContactArraySuccessCallback_onsuccess.html +++ b/tct-contact-tizen-tests/contact/Contact_ContactArraySuccessCallback_onsuccess.html @@ -33,7 +33,7 @@ Authors: Contact_ContactArraySuccessCallback_onsuccess - + @@ -44,9 +44,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactArraySuccessCallback:onsuccess M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA CBOA -var t = async_test("Contact_ContactArraySuccessCallback_onsuccess"); +var t = async_test(document.title), defaultAddressBook, contact, findAllContacts; t.step(function () { - var defaultAddressBook, contact, findAllContacts; findAllContacts = t.step_func(function (contacts){ assert_type(contacts, "array", "contats should be array"); defaultAddressBook.remove(contact.id); diff --git a/tct-contact-tizen-tests/contact/Contact_ContactEmailAddress_emails_types.html b/tct-contact-tizen-tests/contact/Contact_ContactEmailAddress_emails_types.html index 8c270d196..0107144ee 100644 --- a/tct-contact-tizen-tests/contact/Contact_ContactEmailAddress_emails_types.html +++ b/tct-contact-tizen-tests/contact/Contact_ContactEmailAddress_emails_types.html @@ -53,7 +53,7 @@ test(function () { email.types[0] = "HOME"; assert_not_equals(email, null, "email shouldn't be null"); assert_equals(email.types[0], "HOME", "email.types[0] should be HOME"); -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_ContactManagerObject_attri_contact.html b/tct-contact-tizen-tests/contact/Contact_ContactManagerObject_attri_contact.html index 757774fad..87b695b3c 100644 --- a/tct-contact-tizen-tests/contact/Contact_ContactManagerObject_attri_contact.html +++ b/tct-contact-tizen-tests/contact/Contact_ContactManagerObject_attri_contact.html @@ -49,7 +49,7 @@ Authors: test(function () { assert_not_equals(tizen.contact, null, "tizen.contact"); -}, "Contact_ContactManagerObject_attri_contact"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBook.html b/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBook.html index bf104e6e4..ad19f0acd 100644 --- a/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBook.html +++ b/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBook.html @@ -49,10 +49,8 @@ Revision history: //==== SPEC Tizen Web API:Social:Contact:ContactManager:getAddressBook M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MMINA -var t = async_test("Contact_ContactManager_getAddressBook"); +var t = async_test(document.title), addressBook, getAddBook, addressBooksSuccess, addressBooksError; t.step(function () { - var addressBook, getAddBook, addressBooksSuccess, - addressBooksError; addressBooksSuccess = t.step_func(function (addressbooks) { assert_not_equals(addressbooks.length, 0, "addressbooks should be greather then 0"); diff --git a/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBook_NULL.html b/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBook_NULL.html index 55eb05527..148a9de25 100644 --- a/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBook_NULL.html +++ b/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBook_NULL.html @@ -33,8 +33,7 @@ Revision history: Contact_ContactManager_getAddressBook_NULL - - + @@ -47,12 +46,11 @@ Revision history: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MC test(function () { - var id = null , exceptionName = "NotFoundError"; - assert_throws({name : exceptionName}, - function (){ + var id = null; + assert_throws(NOT_FOUND_EXCEPTION, function () { tizen.contact.getAddressBook(id); }, "NotFoundError exception."); -}, "Contact_ContactManager_getAddressBook_NULL"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBook_invalid.html b/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBook_invalid.html index 01951ae87..286204454 100644 --- a/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBook_invalid.html +++ b/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBook_invalid.html @@ -34,8 +34,7 @@ Revision history: Contact_ContactManager_getAddressBook_invalid - - + @@ -48,12 +47,11 @@ Revision history: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA test(function () { - var id = 11, exceptionName = "NotFoundError"; - assert_throws({name : exceptionName}, - function (){ + var id = 11; + assert_throws(NOT_FOUND_EXCEPTION, function () { tizen.contact.getAddressBook(id); }, "NotFoundError exception."); -}, "Contact_ContactManager_getAddressBook_invalid"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBooks.html b/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBooks.html index bde822263..bc2ab5307 100644 --- a/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBooks.html +++ b/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBooks.html @@ -46,9 +46,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:ContactManager:getAddressBooks M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MOA -var t = async_test("Contact_ContactManager_getAddressBooks"); +var t = async_test(document.title), addressBooksSuccess, addressBooksError; t.step(function () { - var addressBooksSuccess, addressBooksError; addressBooksSuccess = t.step_func(function (addressbooks) { assert_not_equals(addressbooks.length, 0, "addressBooks should be greather then 0"); t.done(); diff --git a/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBooks_invalid.html b/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBooks_invalid.html index 81f5a284b..393da11ca 100644 --- a/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBooks_invalid.html +++ b/tct-contact-tizen-tests/contact/Contact_ContactManager_getAddressBooks_invalid.html @@ -35,8 +35,7 @@ Revision history: Contact_ContactManager_getAddressBooks_invalid - - + @@ -52,12 +51,12 @@ Revision history: test(function () { var addressBooksCB = "abcd"; - assert_throws("TYPE_MISMATCH_ERR", + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { tizen.contact.getAddressBooks(addressBooksCB); }, "TypeMismatchError exception."); -}, "Contact_ContactManager_getAddressBooks_invalid"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_ContactManager_getDefaultAddressBook.html b/tct-contact-tizen-tests/contact/Contact_ContactManager_getDefaultAddressBook.html index 470f2162d..1cefd0c5c 100644 --- a/tct-contact-tizen-tests/contact/Contact_ContactManager_getDefaultAddressBook.html +++ b/tct-contact-tizen-tests/contact/Contact_ContactManager_getDefaultAddressBook.html @@ -49,7 +49,7 @@ Authors: test(function () { var defaultAddressBook = tizen.contact.getDefaultAddressBook(); assert_not_equals(defaultAddressBook, null, "defaultAddressBook should not be null"); -}, "Contact_ContactManager_getDefaultAddressBook"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_ContactPhoneNumber_attri_number_types.html b/tct-contact-tizen-tests/contact/Contact_ContactPhoneNumber_attri_number_types.html index 47eeefc7b..8dd278c28 100644 --- a/tct-contact-tizen-tests/contact/Contact_ContactPhoneNumber_attri_number_types.html +++ b/tct-contact-tizen-tests/contact/Contact_ContactPhoneNumber_attri_number_types.html @@ -48,15 +48,15 @@ Authors: //==== TEST_CRITERIA test(function () { var contactInit = {}, - phoneNumber = new tizen.ContactPhoneNumber("123456789", ["WORK","VOICE"]); + phoneNumber = new tizen.ContactPhoneNumber("123456789", ["WORK", "VOICE"]); contactInit.phoneNumbers = [phoneNumber]; contactInit.phoneNumbers[0].number = "987654321"; contactInit.phoneNumbers[0].types = ["HOME"]; assert_equals(contactInit.phoneNumbers[0].number, "987654321", "number should be equals 987654321"); - assert_equals(contactInit.phoneNumbers[0].types[0],"HOME", "types should be equals HOME"); -}, "Contact_ContactPhoneNumber_attri_number_types"); + assert_equals(contactInit.phoneNumbers[0].types[0], "HOME", "types should be equals HOME"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_addressBookId_attribute.html b/tct-contact-tizen-tests/contact/Contact_addressBookId_attribute.html index 29612354a..32fa4097e 100644 --- a/tct-contact-tizen-tests/contact/Contact_addressBookId_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_addressBookId_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_addressBookId_attribute - + @@ -73,7 +73,7 @@ test(function () { addressbook.add(contact); assert_type(contact.addressBookId, "string", "chceck the addressBookId type"); addressbook.remove(contact.id); -}, "Contact_addressBookId_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_addresses_attribute.html b/tct-contact-tizen-tests/contact/Contact_addresses_attribute.html index d68aa3bb3..dca4865e2 100644 --- a/tct-contact-tizen-tests/contact/Contact_addresses_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_addresses_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_addresses_attribute - + @@ -88,7 +88,7 @@ test(function () { assert_equals(contact.addresses.length, 1, "contact.addresses.length chceck"); contact.addresses = null; assert_not_equals(contact.addresses, null, "operation no accept null"); -}, "Contact_addresses_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_anniversaries_attribute.html b/tct-contact-tizen-tests/contact/Contact_anniversaries_attribute.html index 436614a35..b7238bef5 100644 --- a/tct-contact-tizen-tests/contact/Contact_anniversaries_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_anniversaries_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_anniversaries_attribute - + @@ -77,7 +77,7 @@ test(function () { assert_equals(contact.anniversaries.length, 1, "contact.anniversaries.length chceck"); contact.anniversaries = null; assert_not_equals(contact.anniversaries, null, "operation no accept null"); -}, "Contact_anniversaries_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_birthday_attribute.html b/tct-contact-tizen-tests/contact/Contact_birthday_attribute.html index 27c17dbed..7bd85b3bf 100644 --- a/tct-contact-tizen-tests/contact/Contact_birthday_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_birthday_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_birthday_attribute - + @@ -70,7 +70,7 @@ test(function () { assert_type(contact.birthday, "date", "birthday type check"); contact.birthday = newValue; assert_equals(contact.birthday.toString(), newValue.toString(), "birthday attribute."); -}, "Contact_birthday_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_clone.html b/tct-contact-tizen-tests/contact/Contact_clone.html index 7e5af25a3..9d1aab1fb 100644 --- a/tct-contact-tizen-tests/contact/Contact_clone.html +++ b/tct-contact-tizen-tests/contact/Contact_clone.html @@ -23,7 +23,7 @@ Authors: Contact_clone - + @@ -62,7 +62,7 @@ test(function () { "anniversaries[0] original and clone equality"); assert_true(contact.note === clonedContact.note, "note original and clone equality"); assert_true(contact.isFavorite === clonedContact.isFavorite, "isFavorite original and clone equality"); -}, "Contact_clone"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_clone_exist.html b/tct-contact-tizen-tests/contact/Contact_clone_exist.html index 4c13bbed8..0643cc46a 100644 --- a/tct-contact-tizen-tests/contact/Contact_clone_exist.html +++ b/tct-contact-tizen-tests/contact/Contact_clone_exist.html @@ -23,7 +23,7 @@ Authors: Contact_clone_exist - + @@ -42,7 +42,7 @@ test(function () { contact = new tizen.Contact(contactInit); assert_true("clone" in contact, "No clone method in contact"); check_method_exists(contact, "clone"); -}, "Contact_clone_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_clone_extra_argument.html b/tct-contact-tizen-tests/contact/Contact_clone_extra_argument.html index 26ce262a4..e6484dbf0 100644 --- a/tct-contact-tizen-tests/contact/Contact_clone_extra_argument.html +++ b/tct-contact-tizen-tests/contact/Contact_clone_extra_argument.html @@ -23,7 +23,7 @@ Authors: Contact_clone_extra_argument - + @@ -37,7 +37,7 @@ Authors: test(function () { var addressbook = tizen.contact.getDefaultAddressBook(), - bob; + bob; bob = new tizen.Contact(); bob.name = new tizen.ContactName({ @@ -46,7 +46,7 @@ test(function () { }); addressbook.add(bob); checkExtraArgument(bob, "clone"); -}, "Contact_clone_extra_argument"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_constructor_ContactInit.html b/tct-contact-tizen-tests/contact/Contact_constructor_ContactInit.html index 81dc1a926..0c321b597 100644 --- a/tct-contact-tizen-tests/contact/Contact_constructor_ContactInit.html +++ b/tct-contact-tizen-tests/contact/Contact_constructor_ContactInit.html @@ -26,14 +26,14 @@ Authors: Contact_constructor_ContactInit - +
diff --git a/tct-contact-tizen-tests/contact/Contact_constructor_VCARD.html b/tct-contact-tizen-tests/contact/Contact_constructor_VCARD.html index 3020bb430..ae88f56f0 100644 --- a/tct-contact-tizen-tests/contact/Contact_constructor_VCARD.html +++ b/tct-contact-tizen-tests/contact/Contact_constructor_VCARD.html @@ -26,14 +26,14 @@ Authors: Contact_constructor_VCARD - +
diff --git a/tct-contact-tizen-tests/contact/Contact_convertToString.html b/tct-contact-tizen-tests/contact/Contact_convertToString.html index f0abf04a3..198c8e59e 100644 --- a/tct-contact-tizen-tests/contact/Contact_convertToString.html +++ b/tct-contact-tizen-tests/contact/Contact_convertToString.html @@ -23,7 +23,7 @@ Authors: Contact_convertToString - + @@ -44,7 +44,7 @@ test(function () { assert_type(contactStr, "string", "contactStr"); defaultAddressBook.remove(contact.id); -}, "Contact_convertToString"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_convertToString_exist.html b/tct-contact-tizen-tests/contact/Contact_convertToString_exist.html index 023616062..f5f3277a0 100644 --- a/tct-contact-tizen-tests/contact/Contact_convertToString_exist.html +++ b/tct-contact-tizen-tests/contact/Contact_convertToString_exist.html @@ -23,7 +23,7 @@ Authors: Contact_convertToString_exist - + @@ -41,7 +41,7 @@ test(function () { contact = new tizen.Contact(contactInit); assert_true("convertToString" in contact, "No convertToString method in contact"); check_method_exists(contact, "convertToString"); -}, "Contact_convertToString_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_convertToString_format_TypeMismatch.html b/tct-contact-tizen-tests/contact/Contact_convertToString_format_TypeMismatch.html index 53bdb6142..4ddccd7bf 100644 --- a/tct-contact-tizen-tests/contact/Contact_convertToString_format_TypeMismatch.html +++ b/tct-contact-tizen-tests/contact/Contact_convertToString_format_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: Contact_convertToString_format_TypeMismatch - + @@ -42,14 +42,14 @@ test(function () { defaultAddressBook = tizen.contact.getDefaultAddressBook(); defaultAddressBook.add(contact); try { - assert_throws({name : "TypeMismatchError"}, + assert_throws(TYPE_MISMATCH_EXCEPTION, function () { contactStr = contact.convertToString("BLA_BLA_BLA"); }, exceptionName + " should be thrown - given incorrect."); } finally { defaultAddressBook.remove(contact.id); } -}, "Contact_convertToString_format_TypeMismatch"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_convertToString_with_format.html b/tct-contact-tizen-tests/contact/Contact_convertToString_with_format.html index 309c4a088..dfb66d8fb 100644 --- a/tct-contact-tizen-tests/contact/Contact_convertToString_with_format.html +++ b/tct-contact-tizen-tests/contact/Contact_convertToString_with_format.html @@ -23,7 +23,7 @@ Authors: Contact_convertToString_with_format - + @@ -44,7 +44,7 @@ test(function () { assert_type(contactStr, "string", "contactStr"); defaultAddressBook.remove(contact.id); -}, "Contact_convertToString_with_format"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_convertToString_with_one.html b/tct-contact-tizen-tests/contact/Contact_convertToString_with_one.html index ecd86f6a0..1ca743893 100644 --- a/tct-contact-tizen-tests/contact/Contact_convertToString_with_one.html +++ b/tct-contact-tizen-tests/contact/Contact_convertToString_with_one.html @@ -25,7 +25,7 @@ Authors: Contact_convertToString_with_one - + @@ -33,7 +33,7 @@ Authors:
diff --git a/tct-contact-tizen-tests/contact/Contact_emails_attribute.html b/tct-contact-tizen-tests/contact/Contact_emails_attribute.html index 00fb2eb36..12168ac8d 100644 --- a/tct-contact-tizen-tests/contact/Contact_emails_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_emails_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_emails_attribute - + @@ -77,7 +77,7 @@ test(function () { assert_equals(contact.emails.length, 1, "contact.emails.length chceck"); contact.emails = null; assert_not_equals(contact.emails, null, "operation no accept null"); -}, "Contact_emails_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_exist.html b/tct-contact-tizen-tests/contact/Contact_exist.html index 3bd8a7dd8..5c54417cc 100644 --- a/tct-contact-tizen-tests/contact/Contact_exist.html +++ b/tct-contact-tizen-tests/contact/Contact_exist.html @@ -23,7 +23,7 @@ Authors: Contact_exist - + @@ -36,7 +36,7 @@ Authors: //==== TEST_CRITERIA CONSTRF test(function () { check_constructor("Contact"); -}, "Contact_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_extend.html b/tct-contact-tizen-tests/contact/Contact_extend.html index 2a6e734a5..20adf01a8 100644 --- a/tct-contact-tizen-tests/contact/Contact_extend.html +++ b/tct-contact-tizen-tests/contact/Contact_extend.html @@ -25,14 +25,14 @@ Authors: Contact_extend - +
diff --git a/tct-contact-tizen-tests/contact/Contact_groupIds_attribute.html b/tct-contact-tizen-tests/contact/Contact_groupIds_attribute.html index 8a830a4c1..33feab714 100644 --- a/tct-contact-tizen-tests/contact/Contact_groupIds_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_groupIds_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_groupIds_attribute - + @@ -87,7 +87,7 @@ test(function () { addressBook.removeGroup(contactGroupId); addressBook.removeGroup(newContactGroupId); -}, "Contact_groupIds_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_id_attribute.html b/tct-contact-tizen-tests/contact/Contact_id_attribute.html index 61be49ecb..d6e640590 100644 --- a/tct-contact-tizen-tests/contact/Contact_id_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_id_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_id_attribute - + @@ -73,7 +73,7 @@ test(function () { addressbook.add(contact); assert_type(contact.id, "string", "chceck the id type"); addressbook.remove(contact.id); -}, "Contact_id_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_isFavorite_attribute.html b/tct-contact-tizen-tests/contact/Contact_isFavorite_attribute.html index 213d76f4f..78acb5adb 100644 --- a/tct-contact-tizen-tests/contact/Contact_isFavorite_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_isFavorite_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_isFavorite_attribute - + @@ -69,7 +69,7 @@ test(function () { assert_equals(contact.isFavorite, false, "contact.isFavorite attribute."); contact.isFavorite = newValue; assert_equals(contact.isFavorite, false, "contact.isFavorite attribute."); -}, "Contact_isFavorite_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_lastUpdated_attribute.html b/tct-contact-tizen-tests/contact/Contact_lastUpdated_attribute.html index 72845a627..712be76d1 100644 --- a/tct-contact-tizen-tests/contact/Contact_lastUpdated_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_lastUpdated_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_lastUpdated_attribute - + @@ -73,7 +73,7 @@ test(function () { addressbook.add(contact); assert_type(contact.lastUpdated, "date", "chceck the lastUpdated type"); addressbook.remove(contact.id); -}, "Contact_lastUpdated_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_name_attribute.html b/tct-contact-tizen-tests/contact/Contact_name_attribute.html index e961f6cd4..4f6d37834 100644 --- a/tct-contact-tizen-tests/contact/Contact_name_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_name_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_name_attribute - + @@ -78,7 +78,7 @@ test(function () { contact.name = newContactName; assert_equals(contact.name.firstName, newContactName.firstName, "addresses.firstName attribute."); assert_equals(contact.name.lastName, newContactName.lastName, "addresses.lastName attribute."); -}, "Contact_name_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_notes_attribute.html b/tct-contact-tizen-tests/contact/Contact_notes_attribute.html index 997ea12d9..b63f30310 100644 --- a/tct-contact-tizen-tests/contact/Contact_notes_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_notes_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_notes_attribute - + @@ -75,7 +75,7 @@ test(function () { assert_equals(contact.notes.length, 1, "contact.notes.length chceck"); contact.notes = null; assert_not_equals(contact.notes, null, "operation no accept null"); -}, "Contact_notes_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_organizations_attribute.html b/tct-contact-tizen-tests/contact/Contact_organizations_attribute.html index a56eb7ddb..5ec873b9f 100644 --- a/tct-contact-tizen-tests/contact/Contact_organizations_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_organizations_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_organizations_attribute - + @@ -79,7 +79,7 @@ test(function () { assert_equals(contact.organizations.length, 1, "contact.organizations.length chceck"); contact.organizations = null; assert_not_equals(contact.organizations, null, "operation no accept null"); -}, "Contact_organizations_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_personId_attribute.html b/tct-contact-tizen-tests/contact/Contact_personId_attribute.html index 2b7b968b0..39f3a41e4 100644 --- a/tct-contact-tizen-tests/contact/Contact_personId_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_personId_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_personId_attribute - + @@ -73,7 +73,7 @@ test(function () { addressbook.add(contact); assert_type(contact.personId, "string", "chceck the lastUpdated type"); addressbook.remove(contact.id); -}, "Contact_personId_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_phoneNumbers_attribute.html b/tct-contact-tizen-tests/contact/Contact_phoneNumbers_attribute.html index b2bd68ca2..2ab70e9bc 100644 --- a/tct-contact-tizen-tests/contact/Contact_phoneNumbers_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_phoneNumbers_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_phoneNumbers_attribute - + @@ -77,7 +77,7 @@ test(function () { assert_equals(contact.phoneNumbers.length, 1, "contact.phoneNumbers.length chceck"); contact.phoneNumbers = null; assert_not_equals(contact.phoneNumbers, null, "operation no accept null"); -}, "Contact_phoneNumbers_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_photoURI_attribute.html b/tct-contact-tizen-tests/contact/Contact_photoURI_attribute.html index 4ddec78bf..33ee2cad2 100644 --- a/tct-contact-tizen-tests/contact/Contact_photoURI_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_photoURI_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_photoURI_attribute - + @@ -69,7 +69,7 @@ test(function () { assert_equals(contact.photoURI, TEST_IMAGE_1, "contact.photoURI attribute."); contact.photoURI = newValue; assert_equals(contact.photoURI, newValue, "contact.photoURI attribute."); -}, "Contact_photoURI_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_ringtoneURI_attribute.html b/tct-contact-tizen-tests/contact/Contact_ringtoneURI_attribute.html index fb401b6d2..f812204e5 100644 --- a/tct-contact-tizen-tests/contact/Contact_ringtoneURI_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_ringtoneURI_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_ringtoneURI_attribute - + @@ -69,7 +69,7 @@ test(function () { assert_equals(contact.ringtoneURI, TEST_RING_1, "contact.ringtoneURI attribute."); contact.ringtoneURI = newValue; assert_equals(contact.ringtoneURI, newValue, "contact.ringtoneURI attribute."); -}, "Contact_ringtoneURI_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Contact_urls_attribute.html b/tct-contact-tizen-tests/contact/Contact_urls_attribute.html index fd0517b9a..5e86a7dd9 100644 --- a/tct-contact-tizen-tests/contact/Contact_urls_attribute.html +++ b/tct-contact-tizen-tests/contact/Contact_urls_attribute.html @@ -23,7 +23,7 @@ Authors: Contact_urls_attribute - + @@ -79,7 +79,7 @@ test(function () { assert_equals(contact.urls.length, 1, "contact.urls.length chceck"); contact.urls = null; assert_not_equals(contact.urls, null, "operation no accept null"); -}, "Contact_urls_attribute"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/PersonArraySuccessCallback_notexist.html b/tct-contact-tizen-tests/contact/PersonArraySuccessCallback_notexist.html index 9a987b38e..51b2bc04a 100644 --- a/tct-contact-tizen-tests/contact/PersonArraySuccessCallback_notexist.html +++ b/tct-contact-tizen-tests/contact/PersonArraySuccessCallback_notexist.html @@ -23,7 +23,7 @@ Authors: PersonArraySuccessCallback_notexist - + @@ -37,7 +37,7 @@ Authors: //==== TEST_CRITERIA CBNIO test(function () { check_no_interface_object("PersonArraySuccessCallback"); -}, "PersonArraySuccessCallback_notexist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/PersonArraySuccessCallback_onsuccess.html b/tct-contact-tizen-tests/contact/PersonArraySuccessCallback_onsuccess.html index a9569801c..e71efd1c4 100644 --- a/tct-contact-tizen-tests/contact/PersonArraySuccessCallback_onsuccess.html +++ b/tct-contact-tizen-tests/contact/PersonArraySuccessCallback_onsuccess.html @@ -23,7 +23,7 @@ Authors: PersonArraySuccessCallback_onsuccess - + @@ -34,9 +34,8 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:PersonArraySuccessCallback:onsuccess M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA CBT CBOA -var t = async_test("PersonArraySuccessCallback_onsuccess"); +var t = async_test(document.title), contact, addressbook, filter, findError, findSuccess; t.step(function () { - var contact, addressbook, filter, findError, findSuccess; contact = new tizen.Contact({ name: new tizen.ContactName({ firstName: "John", diff --git a/tct-contact-tizen-tests/contact/Person_contactCount_attribute.html b/tct-contact-tizen-tests/contact/Person_contactCount_attribute.html index bd50d20ec..5d74da273 100644 --- a/tct-contact-tizen-tests/contact/Person_contactCount_attribute.html +++ b/tct-contact-tizen-tests/contact/Person_contactCount_attribute.html @@ -23,7 +23,7 @@ Authors: Person_contactCount_attribute - + @@ -53,7 +53,7 @@ test(function () { } finally { addressBook.remove(contact.id); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Person_displayContactId_attribute.html b/tct-contact-tizen-tests/contact/Person_displayContactId_attribute.html index 2afd05186..f01982a94 100644 --- a/tct-contact-tizen-tests/contact/Person_displayContactId_attribute.html +++ b/tct-contact-tizen-tests/contact/Person_displayContactId_attribute.html @@ -23,7 +23,7 @@ Authors: Person_displayContactId_attribute - + @@ -55,7 +55,7 @@ test(function () { } finally { addressBook.remove(contact.id); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Person_displayName_attribute.html b/tct-contact-tizen-tests/contact/Person_displayName_attribute.html index 056bf9619..dd4d3a4ee 100644 --- a/tct-contact-tizen-tests/contact/Person_displayName_attribute.html +++ b/tct-contact-tizen-tests/contact/Person_displayName_attribute.html @@ -23,7 +23,7 @@ Authors: Person_displayName_attribute - + @@ -51,7 +51,7 @@ test(function () { } finally { addressBook.remove(contact.id); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Person_extend.html b/tct-contact-tizen-tests/contact/Person_extend.html index 29907af81..ed5fc529a 100644 --- a/tct-contact-tizen-tests/contact/Person_extend.html +++ b/tct-contact-tizen-tests/contact/Person_extend.html @@ -25,22 +25,22 @@ Authors: Person_extend - +
diff --git a/tct-contact-tizen-tests/contact/Person_hasEmail_attribute.html b/tct-contact-tizen-tests/contact/Person_hasEmail_attribute.html index fd24790be..2de86e15a 100644 --- a/tct-contact-tizen-tests/contact/Person_hasEmail_attribute.html +++ b/tct-contact-tizen-tests/contact/Person_hasEmail_attribute.html @@ -23,7 +23,7 @@ Authors: Person_hasEmail_attribute - + @@ -53,7 +53,7 @@ test(function () { } finally { addressBook.remove(contact.id); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Person_hasPhoneNumber_attribute.html b/tct-contact-tizen-tests/contact/Person_hasPhoneNumber_attribute.html index c0d7ac95f..2655e9c80 100644 --- a/tct-contact-tizen-tests/contact/Person_hasPhoneNumber_attribute.html +++ b/tct-contact-tizen-tests/contact/Person_hasPhoneNumber_attribute.html @@ -23,7 +23,7 @@ Authors: Person_hasPhoneNumber_attribute - + @@ -53,7 +53,7 @@ test(function () { } finally { addressBook.remove(contact.id); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Person_id_attribute.html b/tct-contact-tizen-tests/contact/Person_id_attribute.html index fc0b1af67..04b54bc7c 100644 --- a/tct-contact-tizen-tests/contact/Person_id_attribute.html +++ b/tct-contact-tizen-tests/contact/Person_id_attribute.html @@ -23,7 +23,7 @@ Authors: Person_id_attribute - + @@ -53,7 +53,7 @@ test(function () { } finally { addressBook.remove(contact.id); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Person_isFavorite_attribute.html b/tct-contact-tizen-tests/contact/Person_isFavorite_attribute.html index 636786474..272179477 100644 --- a/tct-contact-tizen-tests/contact/Person_isFavorite_attribute.html +++ b/tct-contact-tizen-tests/contact/Person_isFavorite_attribute.html @@ -23,7 +23,7 @@ Authors: Person_isFavorite_attribute - + @@ -55,7 +55,7 @@ test(function () { } finally { addressBook.remove(contact.id); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Person_link.html b/tct-contact-tizen-tests/contact/Person_link.html index ec6919066..556da89a6 100644 --- a/tct-contact-tizen-tests/contact/Person_link.html +++ b/tct-contact-tizen-tests/contact/Person_link.html @@ -23,7 +23,7 @@ Authors: Person_link - + @@ -35,34 +35,34 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MMINA MR MAST test(function () { - var contact_1, contact_2, addressbook, getPerson_1, getPerson_2, returnedValue, - getContact_1, getContact_2; - contact_1 = new tizen.Contact({ + var contact1, contact2, addressbook, getPerson1, getPerson2, returnedValue, + getContact1, getContact2; + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Elton", lastName: "John" }) }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); - getPerson_1 = tizen.contact.get(contact_1.personId); - getPerson_2 = tizen.contact.get(contact_2.personId); - returnedValue = getPerson_1.link(getPerson_2.id); + addressbook.add(contact1); + addressbook.add(contact2); + getPerson1 = tizen.contact.get(contact1.personId); + getPerson2 = tizen.contact.get(contact2.personId); + returnedValue = getPerson1.link(getPerson2.id); assert_equals(returnedValue, undefined, "Incorrect value returned."); - getContact_1 = addressbook.get(contact_1.id); - getContact_2 = addressbook.get(contact_2.id); - assert_equals(getContact_1.personId, getContact_2.personId, "personId check"); - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); -}, "Person_link"); + getContact1 = addressbook.get(contact1.id); + getContact2 = addressbook.get(contact2.id); + assert_equals(getContact1.personId, getContact2.personId, "personId check"); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Person_link_exist.html b/tct-contact-tizen-tests/contact/Person_link_exist.html index 84d0b1c78..01d08a8cf 100644 --- a/tct-contact-tizen-tests/contact/Person_link_exist.html +++ b/tct-contact-tizen-tests/contact/Person_link_exist.html @@ -23,7 +23,7 @@ Authors: Person_link_exist - + @@ -48,7 +48,7 @@ test(function () { assert_true("link" in getPerson, "No link method in person"); check_method_exists(getPerson, "link"); addressbook.remove(contact.id); -}, "Person_link_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Person_notexist.html b/tct-contact-tizen-tests/contact/Person_notexist.html index 4ffd3ab9c..8173d5ceb 100644 --- a/tct-contact-tizen-tests/contact/Person_notexist.html +++ b/tct-contact-tizen-tests/contact/Person_notexist.html @@ -23,7 +23,7 @@ Authors: Person_notexist - + @@ -37,7 +37,7 @@ Authors: //==== TEST_CRITERIA NIO test(function () { check_no_interface_object("Person"); -}, "Person_notexist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Person_photoURI_attribute.html b/tct-contact-tizen-tests/contact/Person_photoURI_attribute.html index a3011d955..69d6ac666 100644 --- a/tct-contact-tizen-tests/contact/Person_photoURI_attribute.html +++ b/tct-contact-tizen-tests/contact/Person_photoURI_attribute.html @@ -23,7 +23,7 @@ Authors: Person_photoURI_attribute - + @@ -54,7 +54,7 @@ test(function () { } finally { addressBook.remove(contact.id); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Person_ringtoneURI_attribute.html b/tct-contact-tizen-tests/contact/Person_ringtoneURI_attribute.html index 2f6f9df4f..ff684a07d 100644 --- a/tct-contact-tizen-tests/contact/Person_ringtoneURI_attribute.html +++ b/tct-contact-tizen-tests/contact/Person_ringtoneURI_attribute.html @@ -23,7 +23,7 @@ Authors: Person_ringtoneURI_attribute - + @@ -54,7 +54,7 @@ test(function () { } finally { addressBook.remove(contact.id); } -}); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Person_unlink.html b/tct-contact-tizen-tests/contact/Person_unlink.html index b54bc6b91..631fb5e66 100644 --- a/tct-contact-tizen-tests/contact/Person_unlink.html +++ b/tct-contact-tizen-tests/contact/Person_unlink.html @@ -23,7 +23,7 @@ Authors: Person_unlink - + @@ -35,28 +35,28 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA MMINA MR MAST test(function () { - var contact_1, contact_2, addressbook, getPerson_1, getPerson_2, - returnedValue, getContact_1, getContact_2; - contact_1 = new tizen.Contact({ + var contact1, contact2, addressbook, getPerson1, getPerson2, + returnedValue, getContact1, getContact2; + contact1 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Jeffrey", lastName: "Hyman" }) }); - contact_2 = new tizen.Contact({ + contact2 = new tizen.Contact({ name: new tizen.ContactName({ firstName: "Lukasz", lastName: "Komorowski" }) }); addressbook = tizen.contact.getDefaultAddressBook(); - addressbook.add(contact_1); - addressbook.add(contact_2); - getPerson_1 = tizen.contact.get(contact_1.personId); - getPerson_2 = tizen.contact.get(contact_2.personId); - getPerson_1.link(contact_2.personId); - returnedValue = getPerson_1.unlink(contact_1.id); + addressbook.add(contact1); + addressbook.add(contact2); + getPerson1 = tizen.contact.get(contact1.personId); + getPerson2 = tizen.contact.get(contact2.personId); + getPerson1.link(contact2.personId); + returnedValue = getPerson1.unlink(contact1.id); assert_type(returnedValue, "object", "Type chceck"); assert_own_property(returnedValue, "id", "Person doesn't own id property."); assert_own_property(returnedValue, "displayName", "Person doesn't own displayName property."); @@ -67,13 +67,13 @@ test(function () { assert_own_property(returnedValue, "photoURI", "Person doesn't own photoURI property."); assert_own_property(returnedValue, "ringtoneURI", "Person doesn't own ringtoneURI property."); assert_own_property(returnedValue, "displayContactId", "Person doesn't own displayContactId property."); - getContact_1 = addressbook.get(contact_1.id); - getContact_2 = addressbook.get(contact_2.id); - assert_not_equals(getContact_1.personId, getContact_2.personId, "personId check"); - assert_equals(getContact_1.personId, returnedValue.id, "returnedValue.id check"); - addressbook.remove(contact_1.id); - addressbook.remove(contact_2.id); -}, "Person_unlink"); + getContact1 = addressbook.get(contact1.id); + getContact2 = addressbook.get(contact2.id); + assert_not_equals(getContact1.personId, getContact2.personId, "personId check"); + assert_equals(getContact1.personId, returnedValue.id, "returnedValue.id check"); + addressbook.remove(contact1.id); + addressbook.remove(contact2.id); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/Person_unlink_exist.html b/tct-contact-tizen-tests/contact/Person_unlink_exist.html index 2f07c8d4f..d68349510 100644 --- a/tct-contact-tizen-tests/contact/Person_unlink_exist.html +++ b/tct-contact-tizen-tests/contact/Person_unlink_exist.html @@ -23,7 +23,7 @@ Authors: Person_unlink_exist - + @@ -48,7 +48,7 @@ test(function () { assert_true("unlink" in getPerson, "No unlink method in person"); check_method_exists(getPerson, "unlink"); addressbook.remove(contact.id); -}, "Person_unlink_exist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/PersonsChangeCallback_notexist.html b/tct-contact-tizen-tests/contact/PersonsChangeCallback_notexist.html index 196c6eec9..43ef70517 100644 --- a/tct-contact-tizen-tests/contact/PersonsChangeCallback_notexist.html +++ b/tct-contact-tizen-tests/contact/PersonsChangeCallback_notexist.html @@ -23,7 +23,7 @@ Authors: PersonsChangeCallback_notexist - + @@ -37,7 +37,7 @@ Authors: //==== TEST_CRITERIA CBNIO test(function () { check_no_interface_object("PersonsChangeCallback"); -}, "PersonsChangeCallback_notexist"); +}, document.title); diff --git a/tct-contact-tizen-tests/contact/PersonsChangeCallback_onpersonsadded.html b/tct-contact-tizen-tests/contact/PersonsChangeCallback_onpersonsadded.html index 9bce60283..896e687e5 100644 --- a/tct-contact-tizen-tests/contact/PersonsChangeCallback_onpersonsadded.html +++ b/tct-contact-tizen-tests/contact/PersonsChangeCallback_onpersonsadded.html @@ -34,7 +34,7 @@ Authors: PersonsChangeCallback_onpersonsadded - + @@ -47,12 +47,11 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:PersonsChangeCallback:onpersonsadded M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA CBT CBOA -setup({timeout:90000}); +setup({timeout: 90000}); -var t = async_test("PersonsChangeCallback_onpersonsadded", {timeout:90000}); +var t = async_test(document.title, {timeout: 90000}), defaultAddressBook, contact, len = 1, watcher, watcherId; t.step(function () { - var defaultAddressBook, contact, len = 1, watcher, watcherId; watcher = { onpersonsadded: t.step_func(function (persons) { diff --git a/tct-contact-tizen-tests/contact/PersonsChangeCallback_onpersonsremoved.html b/tct-contact-tizen-tests/contact/PersonsChangeCallback_onpersonsremoved.html index 725a21dd9..293e81d55 100644 --- a/tct-contact-tizen-tests/contact/PersonsChangeCallback_onpersonsremoved.html +++ b/tct-contact-tizen-tests/contact/PersonsChangeCallback_onpersonsremoved.html @@ -34,7 +34,7 @@ Authors: PersonsChangeCallback_onpersonsremoved - + @@ -47,12 +47,11 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:PersonsChangeCallback:onpersonsremoved M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA CBT CBOA -setup({timeout:90000}); +setup({timeout: 90000}); -var t = async_test("PersonsChangeCallback_onpersonsremoved", {timeout:90000}); +var t = async_test(document.title, {timeout: 90000}), defaultAddressBook, contact, watcher, watcherId; t.step(function () { - var defaultAddressBook, contact, watcher, watcherId; watcher = { onpersonsadded: t.step_func(function (persons) { diff --git a/tct-contact-tizen-tests/contact/PersonsChangeCallback_onpersonsupdated.html b/tct-contact-tizen-tests/contact/PersonsChangeCallback_onpersonsupdated.html index 05627d227..5d4e22120 100644 --- a/tct-contact-tizen-tests/contact/PersonsChangeCallback_onpersonsupdated.html +++ b/tct-contact-tizen-tests/contact/PersonsChangeCallback_onpersonsupdated.html @@ -34,7 +34,7 @@ Authors: PersonsChangeCallback_onpersonsupdated - + @@ -47,12 +47,11 @@ Authors: //==== SPEC Tizen Web API:Social:Contact:PersonsChangeCallback:onpersonsupdated M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html //==== TEST_CRITERIA CBT CBOA -setup({timeout:90000}); +setup({timeout: 90000}); -var t = async_test("PersonsChangeCallback_onpersonsupdated"); +var t = async_test(document.title), person, defaultAddressBook, contact, per, watcher, watcherId; t.step(function () { - var person, defaultAddressBook, contact, per, watcher, watcherId; watcher = { onpersonsadded: t.step_func(function (persons) { diff --git a/tct-contact-tizen-tests/contact/support/unitcommon.js b/tct-contact-tizen-tests/contact/support/unitcommon.js new file mode 100644 index 000000000..9f972c1eb --- /dev/null +++ b/tct-contact-tizen-tests/contact/support/unitcommon.js @@ -0,0 +1,559 @@ +/* + +Copyright (c) 2013 Samsung Electronics Co., Ltd. + +Licensed under the Apache License, Version 2.0 (the License); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + + + +Authors: + + */ + + +MIN_BYTE = -128; +MAX_BYTE = 127; +MIN_OCTET = 0; +MAX_OCTET = 255; +MIN_SHORT = -32768; +MAX_SHORT = 32767; +MIN_UNSIGNED_SHORT = 0; +MAX_UNSIGNED_SHORT = 65535; +MIN_LONG = -2147483648; +MAX_LONG = 2147483647; +MIN_UNSIGNED_LONG = 0; +MAX_UNSIGNED_LONG = 4294967295; +MIN_LONG_LONG = -9223372036854775808; +MAX_LONG_LONG = 9223372036854775807; +MIN_UNSIGNED_LONG_LONG = 0; +MAX_UNSIGNED_LONG_LONG = 18446744073709551615; + +TYPE_MISMATCH_EXCEPTION = {name: 'TypeMismatchError'}; +NOT_FOUND_EXCEPTION = {name: 'NotFoundError'}; +INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'}; +IO_EXCEPTION = {name: 'IOError'}; +SECURITY_EXCEPTION = {name: 'SecurityError'}; + + +(function () { + var head_src = document.head.innerHTML; + if (head_src.search(/\/testharness.js\W/) === -1) { + document.write('\n'); + } + if (head_src.search(/\/testharnessreport.js\W/) === -1) { + document.write('\n'); + } +})(); + +var _registered_types = {}; + +function _resolve_registered_type(type) { + while (type in _registered_types) { + type = _registered_types[type]; + } + return type; +} + +/** + * Method checks extra argument for none argument method. + * The only check is that method will not throw an exception. + * Example usage: + * checkExtraArgument(tizen.notification, "removeAll"); + * + * @param object object + * @param methodName string - name of the method + */ +function checkExtraArgument(object, methodName) { + var extraArgument = [ + null, + undefined, + "Tizen", + 1, + false, + ["one", "two"], + {argument: 1}, + function () {} + ], i; + + for (i = 0; i < extraArgument.length; i++) { + object[methodName](extraArgument[i]); + } +} + +/** + * Method to validate conversion. + * Example usage: + * conversionTable = getTypeConversionExceptions("functionObject", true); + * for(i = 0; i < conversionTable.length; i++) { + * errorCallback = conversionTable[i][0]; + * exceptionName = conversionTable[i][1]; + * + * assert_throws({name : exceptionName}, + * function () { + * tizen.systemsetting.setProperty("HOME_SCREEN", + * propertyValue, successCallback, errorCallback); + * }, exceptionName + " should be thrown - given incorrect errorCallback."); + * } + * + * @param conversionType + * @param isOptional + * @returns table of tables which contain value (index 0) and exceptionName (index 1) + * + */ +function getTypeConversionExceptions(conversionType, isOptional) { + var exceptionName = "TypeMismatchError", + conversionTable; + switch (conversionType) { + case "enum": + conversionTable = [ + [undefined, exceptionName], + [null, exceptionName], + [0, exceptionName], + [true, exceptionName], + ["dummyInvalidEnumValue", exceptionName], + [{ }, exceptionName] + ]; + break; + case "double": + conversionTable = [ + [undefined, exceptionName], + [NaN, exceptionName], + [Number.POSITIVE_INFINITY, exceptionName], + [Number.NEGATIVE_INFINITY, exceptionName], + ["TIZEN", exceptionName], + [{ name : "TIZEN" }, exceptionName], + [function () { }, exceptionName] + ]; + break; + case "object": + conversionTable = [ + [true, exceptionName], + [false, exceptionName], + [NaN, exceptionName], + [0, exceptionName], + ["", exceptionName], + ["TIZEN", exceptionName], + [undefined, exceptionName] + ]; + if (!isOptional) { + conversionTable.push([null, exceptionName]); + } + break; + case "functionObject": + conversionTable = [ + [true, exceptionName], + [false, exceptionName], + [NaN, exceptionName], + [0, exceptionName], + ["", exceptionName], + ["TIZEN", exceptionName], + [[], exceptionName], + [{ }, exceptionName], + [undefined, exceptionName] + ]; + if (!isOptional) { + conversionTable.push([null, exceptionName]); + } + break; + case "array": + conversionTable = [ + [true, exceptionName], + [false, exceptionName], + [NaN, exceptionName], + [0, exceptionName], + ["", exceptionName], + ["TIZEN", exceptionName], + [{ }, exceptionName], + [function () { }, exceptionName], + [undefined, exceptionName] + ]; + if (!isOptional) { + conversionTable.push([null, exceptionName]); + } + break; + case "dictionary": + conversionTable = [ + [true, exceptionName], + [false, exceptionName], + [NaN, exceptionName], + [0, exceptionName], + ["", exceptionName], + ["TIZEN", exceptionName], + [undefined, exceptionName] + ]; + if (!isOptional) { + conversionTable.push([null, exceptionName]); + } + break; + default: + assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'."); + }; + + return conversionTable; +} + + +function assert_type(obj, type, description) { + var org_type = type, prop_name, prop_type, prop_value; + + type = _resolve_registered_type(type); + + if (typeof (type) === 'string') { + type = type.toLowerCase(); + switch (type) { + case 'object': + case 'string': + case 'number': + case 'function': + case 'boolean': + case 'undefined': + case 'xml': + assert_equals(typeof (obj), type, description); + break; + case 'null': + assert_true(obj === null, description); + break; + case 'array': + assert_true(Array.isArray(obj), description); + break; + case 'date': + assert_true(obj instanceof Date, description); + break; + case 'byte': + assert_equals(typeof (obj), 'number', description); + assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low."); + assert_less_than_equal(obj, MAX_BYTE, description + " - value too high."); + assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer."); + break; + case 'octet': + assert_equals(typeof (obj), 'number', description); + assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low."); + assert_less_than_equal(obj, MAX_OCTET, description + " - value too high."); + assert_equals(obj % 1, 0, description + " - value is not an integer."); + break; + case 'short': + assert_equals(typeof (obj), 'number', description); + assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low."); + assert_less_than_equal(obj, MAX_SHORT, description + " - value too high."); + assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer."); + break; + case 'unsigned short': + assert_equals(typeof (obj), 'number', description); + assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low."); + assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high."); + assert_equals(obj % 1, 0, description + " - value is not an integer."); + break; + case 'long': + assert_equals(typeof (obj), 'number', description); + assert_greater_than_equal(obj, MIN_LONG, description + " - value too low."); + assert_less_than_equal(obj, MAX_LONG, description + " - value too high."); + assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer."); + break; + case 'unsigned long': + assert_equals(typeof (obj), 'number', description); + assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low."); + assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high."); + assert_equals(obj % 1, 0, description + " - value is not an integer."); + break; + case 'long long': + assert_equals(typeof (obj), 'number', description); + assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low."); + assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high."); + assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer."); + break; + case 'unsigned long long': + assert_equals(typeof (obj), 'number', description); + assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low."); + assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high."); + assert_equals(obj % 1, 0, description + " - value is not an integer."); + break; + default: + assert_unreached('Fix your test. Wrong type \'' + org_type + '\''); + } + } else if (typeof (type) === 'function') { + assert_true(obj instanceof type, description); + } else if (typeof (type) === 'object') { + for (prop_name in type) { + prop_type = type[prop_name]; + if (prop_type === 'function') { + assert_inherits(obj, prop_name); + assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name); + } else { + assert_own_property(obj, prop_name); + } + } + } else { + assert_unreached('Fix your test. Wrong type ' + org_type); + } +} + +function register_type(alias, type_spec) { + _registered_types[alias] = type_spec; +} + +/** + * Method to check if attribute is const. + * Example usage: + * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B); + * + * @param obj object to test which has const attribute + * @param attributeName attribute name. + * @param expectedValue expected value of provided attribute name + * @param expectedType expected type of provided attribute name + * @param valueToAssign value to assign in order to check if attribute value can be modified + */ +function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) { + var tmp; + if (expectedValue === valueToAssign) { + assert_unreached("Fix your test. The same values given for " + attributeName + + " in 'value' and 'valueToSet' arguments."); + } + if (typeof (attributeName) === "string") { + assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object."); + assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent."); + if (typeof (expectedType) !== "undefined") { + if (expectedValue === null) { + assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different."); + } else { + assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different."); + } + } else { + assert_unreached("Fix your test. Wrong type " + expectedType); + } + tmp = obj[attributeName]; + obj[attributeName] = valueToAssign; + assert_equals(obj[attributeName], tmp, attributeName + " can be modified."); + } else { + assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName)); + } +} + +/** + * Method to check if attribute is readonly. + * Example usage: + * check_readonly(statusNotification, "postedTime", null, 'object', new Date()); + * + * @param obj object to test which has readonly attribute + * @param attributeName attribute name. + * @param expectedValue expected value of provided attribute name + * @param expectedType expected type of provided attribute name + * @param valueToAssign value to assign in order to check if attribute value can be modified + */ +function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) { + check_const(obj, attributeName, expectedValue, expectedType, valueToAssign); +} + +/** + * Method to check if attribute can be set to null. + * Example usage: + * check_not_nullable(syncInfo, "mode"); + * + * @param obj object to test which has not nullable attribute + * @param attributeName attribute name. + */ +function check_not_nullable(obj, attributeName) +{ var old_value = obj[attributeName]; + obj[attributeName] = null; + assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null."); + obj[attributeName] = old_value; +} + +/** + * Method to check NoInterfaceObject + * Example usage: + * check_no_interface_object("BluetoothAdapter") + * + * @param interfaceName interface name + */ +function check_no_interface_object(interfaceName) { + assert_throws({name: "TypeError"}, function () { + tizen[interfaceName](); + },"Wrong call as a function"); + assert_throws({name: "TypeError"}, function () { + new tizen[interfaceName](); + },"Wrong call as a new function"); + assert_throws({name: "TypeError"}, function () { + ({}) instanceof tizen[interfaceName]; + },"instanceof exception"); + assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined."); +} + + +/** + * Method to check Constructors + * Example usage: + * check_constructor("BluetoothAdapter") + * + * @param constructorName constructor name + */ + +function check_constructor(constructorName) { + assert_true(constructorName in tizen, "No " + constructorName + " in tizen."); + assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName); + assert_throws({ + name: "TypeError" + }, function () { + tizen[constructorName](); + }, "Constructor called as function."); +} + +/** + * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED). + * That method also checks if given method exists in a given object. + * Example usage: + * check_method_exists(tizen.notification, "get"); + * + * @param obj object with method + * @param methodName name of the method to check. + */ +function check_method_exists(obj, methodName) { + assert_type(obj[methodName], 'function', "Method does not exist."); +} + +/** + * Method to check extensibility of given object. + * Method checks if new attribute and method can be added. + * Example usage: + * check_extensibility(tizen.notification); + * + * @param obj object to check + */ +function check_extensibility(obj) { + var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue"; + obj.newDummyMethod = function() { + return dummyMethodResult; + } + assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method."); + + obj.newDummyAttribute = dummyAttribute; + assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute."); +} + +/** + * Method to check if attribute can be modify. + * Example usage: + * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html"); + * + * @param obj object to test which has not readonly attribute + * @param attributeName attribute name. + * @param expectedValue expected value of provided attribute name + * @param expectedType expected type of provided attribute name + * @param valueToAssign value to assign in order to check if attribute value can be modified + */ +function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) { + if (expectedValue === valueToAssign) { + assert_unreached("Fix your test. The same values given for " + attributeName + + " in 'value' and 'valueToSet' arguments."); + } + if (typeof (attributeName) === "string") { + assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object."); + assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent."); + if (typeof (expectedType) !== "undefined") { + if (expectedValue === null) { + assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different."); + } else { + assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different."); + } + } else { + assert_unreached("Fix your test. Wrong type " + expectedType); + } + obj[attributeName] = valueToAssign; + assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified."); + } else { + assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName)); + } +} + +/** + * Method to check if whole array can be overwritten with an invalid value. + * Sample usage: + * check_invalid_array_assignments(message, "to", false); + * + * @param obj object which has the array as its property + * @param array name of the array to check + * @param isNullable indicates if the array can be null + */ +function check_invalid_array_assignments(obj, array, isNullable) { + var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}], + val = obj[array], i; + + if (!isNullable) { + obj[array] = null; + assert_not_equals(obj[array], null, "Non-nullable array was set to null"); + assert_type(obj[array], "array", "Non-nullable array type changed after assigning null"); + assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null"); + } + + for (i = 0 ; i < args.length ; i++) { + obj[array] = args[i]; + assert_type(obj[array], "array", "Array type changed after assigning an invalid value"); + assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value"); + } +} + +/** + * Method to check if an object can be overwritten with an invalid value. + * Sample usage: + * check_invalid_object_assignments(message, "body", false); + * + * @param parentObj object which has the 'obj' object as its property + * @param obj name of the object to check + * @param isNullable indicates if the object can be null + */ +function check_invalid_obj_assignments(parentObj, obj, isNullable) { + var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}], + val = parentObj[obj], i; + + if (!isNullable) { + parentObj[obj] = null; + assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null"); + } + + for (i = 0 ; i < args.length ; i++) { + parentObj[obj] = args[i]; + assert_equals(parentObj[obj], val, "The object was set to " + args[i]); + } +} + +/** + * Method to validate conversion for listeners. + * Example usage: + * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]); + * for(i = 0; i < incorrectListeners.length; i++) { + * packageInformationEventCallback = incorrectListeners[i][0]; + * exceptionName = incorrectListeners[i][1]; + * assert_throws({name : exceptionName}, + * function () { + * tizen.package.setPackageInfoEventListener(packageInformationEventCallback); + * }, exceptionName + " should be thrown - given incorrect successCallback."); + * } + * + * + * @param callbackNames Array with names + * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1) + * + */ +function getListenerConversionExceptions(callbackNames) { + var result = [], conversionTable, i, j, listenerName; + conversionTable = getTypeConversionExceptions("functionObject", false); + + for (i = 0; i < callbackNames.length; i++) { + for (j = 0; j < conversionTable.length; j++) { + listenerName = {}; + listenerName[callbackNames[i]] = conversionTable[j][0]; + result.push([listenerName, conversionTable[j][1]]); + } + } + + return result; +} diff --git a/tct-contact-tizen-tests/resources/unitcommon.js b/tct-contact-tizen-tests/resources/unitcommon.js deleted file mode 100644 index 9f972c1eb..000000000 --- a/tct-contact-tizen-tests/resources/unitcommon.js +++ /dev/null @@ -1,559 +0,0 @@ -/* - -Copyright (c) 2013 Samsung Electronics Co., Ltd. - -Licensed under the Apache License, Version 2.0 (the License); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - - - -Authors: - - */ - - -MIN_BYTE = -128; -MAX_BYTE = 127; -MIN_OCTET = 0; -MAX_OCTET = 255; -MIN_SHORT = -32768; -MAX_SHORT = 32767; -MIN_UNSIGNED_SHORT = 0; -MAX_UNSIGNED_SHORT = 65535; -MIN_LONG = -2147483648; -MAX_LONG = 2147483647; -MIN_UNSIGNED_LONG = 0; -MAX_UNSIGNED_LONG = 4294967295; -MIN_LONG_LONG = -9223372036854775808; -MAX_LONG_LONG = 9223372036854775807; -MIN_UNSIGNED_LONG_LONG = 0; -MAX_UNSIGNED_LONG_LONG = 18446744073709551615; - -TYPE_MISMATCH_EXCEPTION = {name: 'TypeMismatchError'}; -NOT_FOUND_EXCEPTION = {name: 'NotFoundError'}; -INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'}; -IO_EXCEPTION = {name: 'IOError'}; -SECURITY_EXCEPTION = {name: 'SecurityError'}; - - -(function () { - var head_src = document.head.innerHTML; - if (head_src.search(/\/testharness.js\W/) === -1) { - document.write('\n'); - } - if (head_src.search(/\/testharnessreport.js\W/) === -1) { - document.write('\n'); - } -})(); - -var _registered_types = {}; - -function _resolve_registered_type(type) { - while (type in _registered_types) { - type = _registered_types[type]; - } - return type; -} - -/** - * Method checks extra argument for none argument method. - * The only check is that method will not throw an exception. - * Example usage: - * checkExtraArgument(tizen.notification, "removeAll"); - * - * @param object object - * @param methodName string - name of the method - */ -function checkExtraArgument(object, methodName) { - var extraArgument = [ - null, - undefined, - "Tizen", - 1, - false, - ["one", "two"], - {argument: 1}, - function () {} - ], i; - - for (i = 0; i < extraArgument.length; i++) { - object[methodName](extraArgument[i]); - } -} - -/** - * Method to validate conversion. - * Example usage: - * conversionTable = getTypeConversionExceptions("functionObject", true); - * for(i = 0; i < conversionTable.length; i++) { - * errorCallback = conversionTable[i][0]; - * exceptionName = conversionTable[i][1]; - * - * assert_throws({name : exceptionName}, - * function () { - * tizen.systemsetting.setProperty("HOME_SCREEN", - * propertyValue, successCallback, errorCallback); - * }, exceptionName + " should be thrown - given incorrect errorCallback."); - * } - * - * @param conversionType - * @param isOptional - * @returns table of tables which contain value (index 0) and exceptionName (index 1) - * - */ -function getTypeConversionExceptions(conversionType, isOptional) { - var exceptionName = "TypeMismatchError", - conversionTable; - switch (conversionType) { - case "enum": - conversionTable = [ - [undefined, exceptionName], - [null, exceptionName], - [0, exceptionName], - [true, exceptionName], - ["dummyInvalidEnumValue", exceptionName], - [{ }, exceptionName] - ]; - break; - case "double": - conversionTable = [ - [undefined, exceptionName], - [NaN, exceptionName], - [Number.POSITIVE_INFINITY, exceptionName], - [Number.NEGATIVE_INFINITY, exceptionName], - ["TIZEN", exceptionName], - [{ name : "TIZEN" }, exceptionName], - [function () { }, exceptionName] - ]; - break; - case "object": - conversionTable = [ - [true, exceptionName], - [false, exceptionName], - [NaN, exceptionName], - [0, exceptionName], - ["", exceptionName], - ["TIZEN", exceptionName], - [undefined, exceptionName] - ]; - if (!isOptional) { - conversionTable.push([null, exceptionName]); - } - break; - case "functionObject": - conversionTable = [ - [true, exceptionName], - [false, exceptionName], - [NaN, exceptionName], - [0, exceptionName], - ["", exceptionName], - ["TIZEN", exceptionName], - [[], exceptionName], - [{ }, exceptionName], - [undefined, exceptionName] - ]; - if (!isOptional) { - conversionTable.push([null, exceptionName]); - } - break; - case "array": - conversionTable = [ - [true, exceptionName], - [false, exceptionName], - [NaN, exceptionName], - [0, exceptionName], - ["", exceptionName], - ["TIZEN", exceptionName], - [{ }, exceptionName], - [function () { }, exceptionName], - [undefined, exceptionName] - ]; - if (!isOptional) { - conversionTable.push([null, exceptionName]); - } - break; - case "dictionary": - conversionTable = [ - [true, exceptionName], - [false, exceptionName], - [NaN, exceptionName], - [0, exceptionName], - ["", exceptionName], - ["TIZEN", exceptionName], - [undefined, exceptionName] - ]; - if (!isOptional) { - conversionTable.push([null, exceptionName]); - } - break; - default: - assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'."); - }; - - return conversionTable; -} - - -function assert_type(obj, type, description) { - var org_type = type, prop_name, prop_type, prop_value; - - type = _resolve_registered_type(type); - - if (typeof (type) === 'string') { - type = type.toLowerCase(); - switch (type) { - case 'object': - case 'string': - case 'number': - case 'function': - case 'boolean': - case 'undefined': - case 'xml': - assert_equals(typeof (obj), type, description); - break; - case 'null': - assert_true(obj === null, description); - break; - case 'array': - assert_true(Array.isArray(obj), description); - break; - case 'date': - assert_true(obj instanceof Date, description); - break; - case 'byte': - assert_equals(typeof (obj), 'number', description); - assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low."); - assert_less_than_equal(obj, MAX_BYTE, description + " - value too high."); - assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer."); - break; - case 'octet': - assert_equals(typeof (obj), 'number', description); - assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low."); - assert_less_than_equal(obj, MAX_OCTET, description + " - value too high."); - assert_equals(obj % 1, 0, description + " - value is not an integer."); - break; - case 'short': - assert_equals(typeof (obj), 'number', description); - assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low."); - assert_less_than_equal(obj, MAX_SHORT, description + " - value too high."); - assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer."); - break; - case 'unsigned short': - assert_equals(typeof (obj), 'number', description); - assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low."); - assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high."); - assert_equals(obj % 1, 0, description + " - value is not an integer."); - break; - case 'long': - assert_equals(typeof (obj), 'number', description); - assert_greater_than_equal(obj, MIN_LONG, description + " - value too low."); - assert_less_than_equal(obj, MAX_LONG, description + " - value too high."); - assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer."); - break; - case 'unsigned long': - assert_equals(typeof (obj), 'number', description); - assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low."); - assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high."); - assert_equals(obj % 1, 0, description + " - value is not an integer."); - break; - case 'long long': - assert_equals(typeof (obj), 'number', description); - assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low."); - assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high."); - assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer."); - break; - case 'unsigned long long': - assert_equals(typeof (obj), 'number', description); - assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low."); - assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high."); - assert_equals(obj % 1, 0, description + " - value is not an integer."); - break; - default: - assert_unreached('Fix your test. Wrong type \'' + org_type + '\''); - } - } else if (typeof (type) === 'function') { - assert_true(obj instanceof type, description); - } else if (typeof (type) === 'object') { - for (prop_name in type) { - prop_type = type[prop_name]; - if (prop_type === 'function') { - assert_inherits(obj, prop_name); - assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name); - } else { - assert_own_property(obj, prop_name); - } - } - } else { - assert_unreached('Fix your test. Wrong type ' + org_type); - } -} - -function register_type(alias, type_spec) { - _registered_types[alias] = type_spec; -} - -/** - * Method to check if attribute is const. - * Example usage: - * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B); - * - * @param obj object to test which has const attribute - * @param attributeName attribute name. - * @param expectedValue expected value of provided attribute name - * @param expectedType expected type of provided attribute name - * @param valueToAssign value to assign in order to check if attribute value can be modified - */ -function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) { - var tmp; - if (expectedValue === valueToAssign) { - assert_unreached("Fix your test. The same values given for " + attributeName + - " in 'value' and 'valueToSet' arguments."); - } - if (typeof (attributeName) === "string") { - assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object."); - assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent."); - if (typeof (expectedType) !== "undefined") { - if (expectedValue === null) { - assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different."); - } else { - assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different."); - } - } else { - assert_unreached("Fix your test. Wrong type " + expectedType); - } - tmp = obj[attributeName]; - obj[attributeName] = valueToAssign; - assert_equals(obj[attributeName], tmp, attributeName + " can be modified."); - } else { - assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName)); - } -} - -/** - * Method to check if attribute is readonly. - * Example usage: - * check_readonly(statusNotification, "postedTime", null, 'object', new Date()); - * - * @param obj object to test which has readonly attribute - * @param attributeName attribute name. - * @param expectedValue expected value of provided attribute name - * @param expectedType expected type of provided attribute name - * @param valueToAssign value to assign in order to check if attribute value can be modified - */ -function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) { - check_const(obj, attributeName, expectedValue, expectedType, valueToAssign); -} - -/** - * Method to check if attribute can be set to null. - * Example usage: - * check_not_nullable(syncInfo, "mode"); - * - * @param obj object to test which has not nullable attribute - * @param attributeName attribute name. - */ -function check_not_nullable(obj, attributeName) -{ var old_value = obj[attributeName]; - obj[attributeName] = null; - assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null."); - obj[attributeName] = old_value; -} - -/** - * Method to check NoInterfaceObject - * Example usage: - * check_no_interface_object("BluetoothAdapter") - * - * @param interfaceName interface name - */ -function check_no_interface_object(interfaceName) { - assert_throws({name: "TypeError"}, function () { - tizen[interfaceName](); - },"Wrong call as a function"); - assert_throws({name: "TypeError"}, function () { - new tizen[interfaceName](); - },"Wrong call as a new function"); - assert_throws({name: "TypeError"}, function () { - ({}) instanceof tizen[interfaceName]; - },"instanceof exception"); - assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined."); -} - - -/** - * Method to check Constructors - * Example usage: - * check_constructor("BluetoothAdapter") - * - * @param constructorName constructor name - */ - -function check_constructor(constructorName) { - assert_true(constructorName in tizen, "No " + constructorName + " in tizen."); - assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName); - assert_throws({ - name: "TypeError" - }, function () { - tizen[constructorName](); - }, "Constructor called as function."); -} - -/** - * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED). - * That method also checks if given method exists in a given object. - * Example usage: - * check_method_exists(tizen.notification, "get"); - * - * @param obj object with method - * @param methodName name of the method to check. - */ -function check_method_exists(obj, methodName) { - assert_type(obj[methodName], 'function', "Method does not exist."); -} - -/** - * Method to check extensibility of given object. - * Method checks if new attribute and method can be added. - * Example usage: - * check_extensibility(tizen.notification); - * - * @param obj object to check - */ -function check_extensibility(obj) { - var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue"; - obj.newDummyMethod = function() { - return dummyMethodResult; - } - assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method."); - - obj.newDummyAttribute = dummyAttribute; - assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute."); -} - -/** - * Method to check if attribute can be modify. - * Example usage: - * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html"); - * - * @param obj object to test which has not readonly attribute - * @param attributeName attribute name. - * @param expectedValue expected value of provided attribute name - * @param expectedType expected type of provided attribute name - * @param valueToAssign value to assign in order to check if attribute value can be modified - */ -function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) { - if (expectedValue === valueToAssign) { - assert_unreached("Fix your test. The same values given for " + attributeName + - " in 'value' and 'valueToSet' arguments."); - } - if (typeof (attributeName) === "string") { - assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object."); - assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent."); - if (typeof (expectedType) !== "undefined") { - if (expectedValue === null) { - assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different."); - } else { - assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different."); - } - } else { - assert_unreached("Fix your test. Wrong type " + expectedType); - } - obj[attributeName] = valueToAssign; - assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified."); - } else { - assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName)); - } -} - -/** - * Method to check if whole array can be overwritten with an invalid value. - * Sample usage: - * check_invalid_array_assignments(message, "to", false); - * - * @param obj object which has the array as its property - * @param array name of the array to check - * @param isNullable indicates if the array can be null - */ -function check_invalid_array_assignments(obj, array, isNullable) { - var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}], - val = obj[array], i; - - if (!isNullable) { - obj[array] = null; - assert_not_equals(obj[array], null, "Non-nullable array was set to null"); - assert_type(obj[array], "array", "Non-nullable array type changed after assigning null"); - assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null"); - } - - for (i = 0 ; i < args.length ; i++) { - obj[array] = args[i]; - assert_type(obj[array], "array", "Array type changed after assigning an invalid value"); - assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value"); - } -} - -/** - * Method to check if an object can be overwritten with an invalid value. - * Sample usage: - * check_invalid_object_assignments(message, "body", false); - * - * @param parentObj object which has the 'obj' object as its property - * @param obj name of the object to check - * @param isNullable indicates if the object can be null - */ -function check_invalid_obj_assignments(parentObj, obj, isNullable) { - var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}], - val = parentObj[obj], i; - - if (!isNullable) { - parentObj[obj] = null; - assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null"); - } - - for (i = 0 ; i < args.length ; i++) { - parentObj[obj] = args[i]; - assert_equals(parentObj[obj], val, "The object was set to " + args[i]); - } -} - -/** - * Method to validate conversion for listeners. - * Example usage: - * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]); - * for(i = 0; i < incorrectListeners.length; i++) { - * packageInformationEventCallback = incorrectListeners[i][0]; - * exceptionName = incorrectListeners[i][1]; - * assert_throws({name : exceptionName}, - * function () { - * tizen.package.setPackageInfoEventListener(packageInformationEventCallback); - * }, exceptionName + " should be thrown - given incorrect successCallback."); - * } - * - * - * @param callbackNames Array with names - * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1) - * - */ -function getListenerConversionExceptions(callbackNames) { - var result = [], conversionTable, i, j, listenerName; - conversionTable = getTypeConversionExceptions("functionObject", false); - - for (i = 0; i < callbackNames.length; i++) { - for (j = 0; j < conversionTable.length; j++) { - listenerName = {}; - listenerName[callbackNames[i]] = conversionTable[j][0]; - result.push([listenerName, conversionTable[j][1]]); - } - } - - return result; -} diff --git a/tct-contact-tizen-tests/tests.full.xml b/tct-contact-tizen-tests/tests.full.xml index f639d2eb3..b9e158846 100644 --- a/tct-contact-tizen-tests/tests.full.xml +++ b/tct-contact-tizen-tests/tests.full.xml @@ -279,7 +279,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_add_remove_get.html @@ -291,7 +291,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_add_get_remove.html @@ -423,7 +423,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_missarg.html @@ -435,7 +435,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_addGroup_missarg.html @@ -447,7 +447,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_add_missarg.html @@ -459,7 +459,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_add_contact_TypeMismatch.html @@ -471,7 +471,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_add_contact_invalid_obj.html @@ -483,7 +483,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_find_missarg.html @@ -495,7 +495,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_getGroup_constructor.html @@ -507,7 +507,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_get_check_fields.html @@ -519,7 +519,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_removeBatch_missarg.html @@ -531,7 +531,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_removeBatch_without_successCallback.html @@ -543,7 +543,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_updateBatch_without_successCallback.html @@ -555,7 +555,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_updateGroup_missarg.html @@ -567,7 +567,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_updateGroup_ringtoneURI.html @@ -579,7 +579,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_update_missarg.html @@ -591,7 +591,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactAddress_constructor.html @@ -603,7 +603,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactEmailAddress_constructor.html @@ -615,7 +615,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactGroup_constructor.html @@ -627,7 +627,7 @@ - + /opt/tct-contact-tizen-tests/contact/Contact_constructor_ContactInit.html @@ -639,7 +639,7 @@ - + /opt/tct-contact-tizen-tests/contact/Contact_constructor_VCARD.html @@ -651,7 +651,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactManager_check_types.html @@ -663,7 +663,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_missarg.html @@ -675,7 +675,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactManager_find_missarg.html @@ -687,7 +687,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_missarg.html @@ -699,7 +699,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_with_errorCallback_null.html @@ -711,7 +711,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_without_errorCallback.html @@ -723,7 +723,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactManager_removeBatch_missarg.html @@ -735,7 +735,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactOrganization_constructor.html @@ -747,7 +747,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactPhoneNumber_constructor.html @@ -759,7 +759,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactWebSite_constructor.html @@ -771,7 +771,7 @@ - + /opt/tct-contact-tizen-tests/contact/Contact_convertToString_with_one.html @@ -783,7 +783,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactRef_exist.html @@ -807,7 +807,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactAnniversary_extend.html @@ -819,7 +819,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactManager_update_missarg.html @@ -831,7 +831,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactAnniversary_constructor_minargs.html @@ -867,7 +867,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactRef_constructor.html @@ -879,7 +879,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactRef_extend.html @@ -915,7 +915,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactAnniversary_constructor.html @@ -927,7 +927,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactName_constructor.html @@ -951,7 +951,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactName_exist.html @@ -963,7 +963,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactName_extend.html @@ -1071,7 +1071,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactPhoneNumber_constructor_minargs.html @@ -1083,7 +1083,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactPhoneNumber_exist.html @@ -1131,7 +1131,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactPhoneNumber_extend.html @@ -1143,7 +1143,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactGroup_connstructor_minarg.html @@ -1167,7 +1167,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactGroup_extend.html @@ -1227,7 +1227,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactOrganization_constructor_minarg.html @@ -1251,7 +1251,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactOrganization_exist.html @@ -1263,7 +1263,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactOrganization_extend.html @@ -1323,7 +1323,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_notexist.html @@ -1335,7 +1335,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_extend.html @@ -3183,7 +3183,7 @@ - + /opt/tct-contact-tizen-tests/contact/AddressBook_find_sortMode_invalid_obj.html @@ -3267,7 +3267,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactManager_in_tizen.html @@ -3279,7 +3279,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactManager_extend.html @@ -3291,7 +3291,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactManager_updateBatch_missarg.html @@ -3303,7 +3303,7 @@ - + /opt/tct-contact-tizen-tests/contact/Person_extend.html @@ -3699,7 +3699,7 @@ - + /opt/tct-contact-tizen-tests/contact/Contact_extend.html @@ -3735,7 +3735,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactAddress_extend.html @@ -3747,7 +3747,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactWebSite_extend.html @@ -3759,7 +3759,7 @@ - + /opt/tct-contact-tizen-tests/contact/ContactEmailAddress_extend.html @@ -3826,12 +3826,12 @@ - https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/contact.html + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html TBD - + /opt/tct-contact-tizen-tests/contact/AddressBook_removeGroup.html diff --git a/tct-contact-tizen-tests/tests.xml b/tct-contact-tizen-tests/tests.xml index 23f80c7d2..b388b1de4 100644 --- a/tct-contact-tizen-tests/tests.xml +++ b/tct-contact-tizen-tests/tests.xml @@ -118,12 +118,12 @@ /opt/tct-contact-tizen-tests/contact/ContactTextFormat_enum_invalid.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_add_remove_get.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_add_get_remove.html @@ -178,157 +178,157 @@ /opt/tct-contact-tizen-tests/contact/AddressBook_addBatch_with_errorCallback.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_addChangeListener_missarg.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_addGroup_missarg.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_add_missarg.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_add_contact_TypeMismatch.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_add_contact_invalid_obj.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_find_missarg.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_getGroup_constructor.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_get_check_fields.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_removeBatch_missarg.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_removeBatch_without_successCallback.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_updateBatch_without_successCallback.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_updateGroup_missarg.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_updateGroup_ringtoneURI.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_update_missarg.html - + /opt/tct-contact-tizen-tests/contact/ContactAddress_constructor.html - + /opt/tct-contact-tizen-tests/contact/ContactEmailAddress_constructor.html - + /opt/tct-contact-tizen-tests/contact/ContactGroup_constructor.html - + /opt/tct-contact-tizen-tests/contact/Contact_constructor_ContactInit.html - + /opt/tct-contact-tizen-tests/contact/Contact_constructor_VCARD.html - + /opt/tct-contact-tizen-tests/contact/ContactManager_check_types.html - + /opt/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_missarg.html - + /opt/tct-contact-tizen-tests/contact/ContactManager_find_missarg.html - + /opt/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_missarg.html - + /opt/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_with_errorCallback_null.html - + /opt/tct-contact-tizen-tests/contact/ContactManager_getAddressBooks_without_errorCallback.html - + /opt/tct-contact-tizen-tests/contact/ContactManager_removeBatch_missarg.html - + /opt/tct-contact-tizen-tests/contact/ContactOrganization_constructor.html - + /opt/tct-contact-tizen-tests/contact/ContactPhoneNumber_constructor.html - + /opt/tct-contact-tizen-tests/contact/ContactWebSite_constructor.html - + /opt/tct-contact-tizen-tests/contact/Contact_convertToString_with_one.html - + /opt/tct-contact-tizen-tests/contact/ContactRef_exist.html @@ -338,17 +338,17 @@ /opt/tct-contact-tizen-tests/contact/ContactAnniversary_exist.html - + /opt/tct-contact-tizen-tests/contact/ContactAnniversary_extend.html - + /opt/tct-contact-tizen-tests/contact/ContactManager_update_missarg.html - + /opt/tct-contact-tizen-tests/contact/ContactAnniversary_constructor_minargs.html @@ -363,12 +363,12 @@ /opt/tct-contact-tizen-tests/contact/ContactAnniversary_label_attribute.html - + /opt/tct-contact-tizen-tests/contact/ContactRef_constructor.html - + /opt/tct-contact-tizen-tests/contact/ContactRef_extend.html @@ -383,12 +383,12 @@ /opt/tct-contact-tizen-tests/contact/ContactRef_contactId_attribute.html - + /opt/tct-contact-tizen-tests/contact/ContactAnniversary_constructor.html - + /opt/tct-contact-tizen-tests/contact/ContactName_constructor.html @@ -398,12 +398,12 @@ /opt/tct-contact-tizen-tests/contact/ContactName_displayName_attribute.html - + /opt/tct-contact-tizen-tests/contact/ContactName_exist.html - + /opt/tct-contact-tizen-tests/contact/ContactName_extend.html @@ -448,12 +448,12 @@ /opt/tct-contact-tizen-tests/contact/ContactName_suffix_attribute.html - + /opt/tct-contact-tizen-tests/contact/ContactPhoneNumber_constructor_minargs.html - + /opt/tct-contact-tizen-tests/contact/ContactPhoneNumber_exist.html @@ -473,12 +473,12 @@ /opt/tct-contact-tizen-tests/contact/ContactPhoneNumber_types_attribute.html - + /opt/tct-contact-tizen-tests/contact/ContactPhoneNumber_extend.html - + /opt/tct-contact-tizen-tests/contact/ContactGroup_connstructor_minarg.html @@ -488,7 +488,7 @@ /opt/tct-contact-tizen-tests/contact/ContactGroup_exist.html - + /opt/tct-contact-tizen-tests/contact/ContactGroup_extend.html @@ -513,7 +513,7 @@ /opt/tct-contact-tizen-tests/contact/ContactGroup_readOnly_attribute.html - + /opt/tct-contact-tizen-tests/contact/ContactOrganization_constructor_minarg.html @@ -523,12 +523,12 @@ /opt/tct-contact-tizen-tests/contact/ContactOrganization_department_attribute.html - + /opt/tct-contact-tizen-tests/contact/ContactOrganization_exist.html - + /opt/tct-contact-tizen-tests/contact/ContactOrganization_extend.html @@ -553,12 +553,12 @@ /opt/tct-contact-tizen-tests/contact/ContactOrganization_title_attribute.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_notexist.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_extend.html @@ -1328,7 +1328,7 @@ /opt/tct-contact-tizen-tests/contact/AddressBook_find_successCallback_invalid_cb.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_find_sortMode_invalid_obj.html @@ -1363,22 +1363,22 @@ /opt/tct-contact-tizen-tests/contact/ContactArraySuccessCallback_onsuccess.html - + /opt/tct-contact-tizen-tests/contact/ContactManager_in_tizen.html - + /opt/tct-contact-tizen-tests/contact/ContactManager_extend.html - + /opt/tct-contact-tizen-tests/contact/ContactManager_updateBatch_missarg.html - + /opt/tct-contact-tizen-tests/contact/Person_extend.html @@ -1543,7 +1543,7 @@ /opt/tct-contact-tizen-tests/contact/ContactManager_addChangeListener_successCallback_invalid_cb.html - + /opt/tct-contact-tizen-tests/contact/Contact_extend.html @@ -1558,17 +1558,17 @@ /opt/tct-contact-tizen-tests/contact/Contact_convertToString_with_format.html - + /opt/tct-contact-tizen-tests/contact/ContactAddress_extend.html - + /opt/tct-contact-tizen-tests/contact/ContactWebSite_extend.html - + /opt/tct-contact-tizen-tests/contact/ContactEmailAddress_extend.html @@ -1598,7 +1598,7 @@ /opt/tct-contact-tizen-tests/contact/AddressBookArraySuccessCallback_onsuccess.html - + /opt/tct-contact-tizen-tests/contact/AddressBook_removeGroup.html