var t = async_test("AddressBook_removeBatch_with_errorCallback");
t.step(function () {
- var contact_1, contact_2, addressbook, removeBatchError, removeBatchSuccess, returnedValue;
+ var contact_1, contact_2, addressbook, removeBatchError, removeBatchSuccess, returnedValue = null;
addressbook = tizen.contact.getDefaultAddressBook();
contact_1 = new tizen.Contact({
name: new tizen.ContactName({
});
removeBatchSuccess = t.step_func(function () {
+ assert_equals(returnedValue, undefined, "Incorrect value returned.");
t.done();
});
removeBatchError = t.step_func(function (error) {
addressbook.add(contact_2);
returnedValue = addressbook.removeBatch([contact_1.id, contact_2.id], removeBatchSuccess, removeBatchError);
- assert_equals(returnedValue, undefined, "Incorrect value returned.");
});
</script>
var t = async_test("AddressBook_removeBatch_with_successCallback");
t.step(function () {
- var contact_1, contact_2, addressbook, removeBatchSuccess, returnedValue;
+ var contact_1, contact_2, addressbook, removeBatchSuccess, returnedValue = null;
addressbook = tizen.contact.getDefaultAddressBook();
contact_1 = new tizen.Contact({
name: new tizen.ContactName({
});
removeBatchSuccess = t.step_func(function () {
+ assert_equals(returnedValue, undefined, "Incorrect value returned.");
t.done();
});
addressbook.add(contact_2);
returnedValue = addressbook.removeBatch([contact_1.id, contact_2.id], removeBatchSuccess);
- assert_equals(returnedValue, undefined, "Incorrect value returned.");
});
</script>