From: Andrzej Krolikowski Date: Fri, 4 Oct 2013 08:41:58 +0000 (+0200) Subject: [Datacontrol] various fixes X-Git-Tag: 2.2.1_release~105^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=668e45ac626e7d87e51008eaa8bf1ca5d53f9bd2;p=test%2Ftct%2Fweb%2Fapi.git [Datacontrol] various fixes Change-Id: I85c0716c33b195383050068a82eeb27baaa18b1d --- diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_dataId_attribute.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_dataId_attribute.html index 2f11e93c9..ac6ff16ef 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_dataId_attribute.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_dataId_attribute.html @@ -23,7 +23,7 @@ Authors: DataControlConsumerObject_dataId_attribute - + @@ -41,7 +41,7 @@ test(function () { assert_own_property(globalDataControl, "dataId" , "DataControlConsumerObject does not own dataId property."); check_readonly(globalDataControl, "dataId", DATA_ID, "String", DATA_ID + "Tizen"); -}, "DataControlConsumerObject_dataId_attribute"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_extend.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_extend.html index 7d32f1368..d3d526f10 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_extend.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_extend.html @@ -23,7 +23,7 @@ Authors: DataControlConsumerObject_extend - + @@ -40,7 +40,7 @@ Authors: test(function () { var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL); check_extensibility(globalDataControl); -}, "DataControlConsumerObject_extend"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_notexist.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_notexist.html index 78a005321..e97a1ea70 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_notexist.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_notexist.html @@ -23,7 +23,7 @@ Authors: DataControlConsumerObject_notexist - + @@ -38,7 +38,7 @@ Authors: test(function () { check_no_interface_object("DataControlConsumerObject"); -}, "DataControlConsumerObject_notexist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_providerId_attribute.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_providerId_attribute.html index 6a9634516..956e5273e 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_providerId_attribute.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_providerId_attribute.html @@ -23,7 +23,7 @@ Authors: DataControlConsumerObject_providerId_attribute - + @@ -41,7 +41,7 @@ test(function () { assert_own_property(globalDataControl, "providerId" , "DataControlConsumerObject does not own providerId property."); check_readonly(globalDataControl, "providerId", PROVIDER_ID, "String", PROVIDER_ID + "Tizen"); -}, "DataControlConsumerObject_providerId_attribute"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_type_attribute.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_type_attribute.html index 6f75ce69f..f1885e5ca 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_type_attribute.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_type_attribute.html @@ -23,7 +23,7 @@ Authors: DataControlConsumerObject_type_attribute - + @@ -41,7 +41,7 @@ test(function () { assert_own_property(globalDataControl, "type" , "DataControlConsumerObject does not own type property."); check_readonly(globalDataControl, "type", TYPE_SQL, "String", TYPE_SQL + "Tizen"); -}, "DataControlConsumerObject_type_attribute"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlErrorCallback_notexist.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlErrorCallback_notexist.html index 2302cb424..3ceb972f5 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlErrorCallback_notexist.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlErrorCallback_notexist.html @@ -23,7 +23,7 @@ Authors: DataControlErrorCallback_notexist - + @@ -38,7 +38,7 @@ Authors: test(function () { check_no_interface_object("DataControlErrorCallback"); -}, "DataControlErrorCallback_notexist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlGetValueSuccessCallback_notexist.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlGetValueSuccessCallback_notexist.html index 4f90be352..bc37a92be 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlGetValueSuccessCallback_notexist.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlGetValueSuccessCallback_notexist.html @@ -23,7 +23,7 @@ Authors: DataControlGetValueSuccessCallback_notexist - + @@ -38,7 +38,7 @@ Authors: test(function () { check_no_interface_object("DataControlGetValueSuccessCallback"); -}, "DataControlGetValueSuccessCallback_notexist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlGetValueSuccessCallback_onsuccess.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlGetValueSuccessCallback_onsuccess.html index e5dae2451..cf1692fbd 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlGetValueSuccessCallback_onsuccess.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlGetValueSuccessCallback_onsuccess.html @@ -23,7 +23,7 @@ Authors: DataControlGetValueSuccessCallback_onsuccess - + @@ -40,7 +40,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("DataControlGetValueSuccessCallback_onsuccess", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value", getSuccess, getError, addSuccess, addError; diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlInsertSuccessCallback_notexist.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlInsertSuccessCallback_notexist.html index 69d520243..f78fe032f 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlInsertSuccessCallback_notexist.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlInsertSuccessCallback_notexist.html @@ -23,7 +23,7 @@ Authors: DataControlInsertSuccessCallback_notexist - + @@ -38,7 +38,7 @@ Authors: test(function () { check_no_interface_object("DataControlInsertSuccessCallback"); -}, "DataControlInsertSuccessCallback_notexist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlInsertSuccessCallback_onsuccess.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlInsertSuccessCallback_onsuccess.html index 0dda8d887..338017207 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlInsertSuccessCallback_onsuccess.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlInsertSuccessCallback_onsuccess.html @@ -23,7 +23,7 @@ Authors: DataControlInsertSuccessCallback_onsuccess - + @@ -40,7 +40,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("DataControlInsertSuccessCallback_onsuccess", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), insertError, insertSuccess, rowData; t.step(function () { @@ -51,7 +51,8 @@ t.step(function () { insertSuccess = t.step_func(function (reqId, insertRowId) { assert_equals(reqId, globalReqId, "Incorrect request id"); - assert_type(insertRowId, "number", "insertRowId is not a number."); + assert_type(reqId, "unsigned long", "reqId is not unsigned long"); + assert_type(insertRowId, "long", "insertRowId is not long."); t.done(); }); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlManagerObject_notexist.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlManagerObject_notexist.html index 32c2afddf..b31fa6427 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlManagerObject_notexist.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlManagerObject_notexist.html @@ -23,7 +23,7 @@ Authors: DataControlManagerObject_notexist - + @@ -38,7 +38,7 @@ Authors: test(function () { check_no_interface_object("DataControlManagerObject"); -}, "DataControlManagerObject_notexist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_extend.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_extend.html index 104224534..871bc4631 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_extend.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_extend.html @@ -23,7 +23,7 @@ Authors: DataControlManager_extend - + @@ -38,7 +38,7 @@ Authors: test(function () { check_extensibility(tizen.datacontrol); -}, "DataControlManager_extend"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_MAP.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_MAP.html index 13b4aa246..a3aaeebdd 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_MAP.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_MAP.html @@ -23,7 +23,7 @@ Authors: DataControlManager_getDataControlConsumer_MAP - + @@ -49,7 +49,7 @@ test(function () { assert_type(globalDataControl.getValue, "function", "getValue is not a function"); assert_type(globalDataControl.updateValue, "function", "updateValue is not a function"); -}, "DataControlManager_getDataControlConsumer_MAP"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_SQL.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_SQL.html index fda3dc4aa..b6d18bd07 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_SQL.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_SQL.html @@ -23,7 +23,7 @@ Authors: DataControlManager_getDataControlConsumer_SQL - + @@ -50,7 +50,7 @@ test(function () { assert_type(globalDataControl.remove, "function", "remove is not a function"); assert_type(globalDataControl.select, "function", "select is not a function"); -}, "DataControlManager_getDataControlConsumer_SQL"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_exist.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_exist.html index a2ebf51a4..614ba5729 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_exist.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_exist.html @@ -23,7 +23,7 @@ Authors: DataControlManager_getDataControlConsumer_exist - + @@ -38,7 +38,7 @@ Authors: test(function () { assert_true("getDataControlConsumer" in tizen.datacontrol, "No getDataControlConsumer method in tizen.datacontrol"); check_method_exists(tizen.datacontrol, "getDataControlConsumer"); -}, "DataControlManager_getDataControlConsumer_exist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_missarg.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_missarg.html index 5a0a4cec7..9ab0f99b9 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_missarg.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_missarg.html @@ -23,7 +23,7 @@ Authors: DataControlManager_getDataControlConsumer_missarg - + @@ -39,11 +39,11 @@ Authors: test(function () { var exceptionName = "TypeMismatchError"; - assert_throws({name : exceptionName}, function () { + assert_throws({name: exceptionName}, function () { tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID); }, exceptionName + " should be thrown - missing type"); -}, "DataControlManager_getDataControlConsumer_missarg"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_type_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_type_TypeMismatch.html index 69f914f7c..ad21d11f1 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_type_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_type_TypeMismatch.html @@ -23,7 +23,7 @@ Authors: DataControlManager_getDataControlConsumer_type_TypeMismatch - + @@ -46,12 +46,12 @@ test(function () { invalidType = conversionTable[i][0]; exceptionName = conversionTable[i][1]; - assert_throws({name : exceptionName}, function () { + assert_throws({name: exceptionName}, function () { tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, invalidType); }, exceptionName + " should be thrown - missing success callback"); } -}, "DataControlManager_getDataControlConsumer_type_TypeMismatch"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_in_tizen.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_in_tizen.html index 33ac88c26..66099ce59 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_in_tizen.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_in_tizen.html @@ -23,7 +23,7 @@ Authors: DataControlManager_in_tizen - + @@ -39,7 +39,7 @@ Authors: test(function () { assert_true("datacontrol" in tizen, "No datacontrol in tizen."); check_readonly(tizen, "datacontrol", tizen.datacontrol, "object", "dummyValue"); -}, "DataControlManager_in_tizen"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_notexist.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_notexist.html index fa5dda730..4d21833c1 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_notexist.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_notexist.html @@ -23,7 +23,7 @@ Authors: DataControlManager_notexist - + @@ -38,7 +38,7 @@ Authors: test(function () { check_no_interface_object("DataControlManager"); -}, "DataControlManager_notexist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlSelectSuccessCallback_notexist.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlSelectSuccessCallback_notexist.html index 6113a4eb3..437084099 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlSelectSuccessCallback_notexist.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlSelectSuccessCallback_notexist.html @@ -23,7 +23,7 @@ Authors: DataControlSelectSuccessCallback_notexist - + @@ -38,7 +38,7 @@ Authors: test(function () { check_no_interface_object("DataControlSelectSuccessCallback"); -}, "DataControlSelectSuccessCallback_notexist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlSelectSuccessCallback_onsuccess.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlSelectSuccessCallback_onsuccess.html index cf7e01605..70a4acf28 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlSelectSuccessCallback_onsuccess.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlSelectSuccessCallback_onsuccess.html @@ -23,7 +23,7 @@ Authors: DataControlSelectSuccessCallback_onsuccess - + @@ -40,7 +40,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("DataControlSelectSuccessCallback_onsuccess", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, i, insertedData = {}, rowData, description = currentDate + "_desc", descriptionToSet = "'" + description + "'", columnsToSet = ["WORD", "WORD_DESC"], numberOfElements = 5, key, wordColumnValue, wordDescColumnValue, insertCounter = 0; @@ -67,6 +67,7 @@ t.step(function () { insertSuccess = t.step_func(function (reqId, insertRowId) { globalReqId++; insertCounter++; + //check to execute appropriate number of inserts before selecting if (insertCounter <= numberOfElements) { rowData = {}; rowData.columns = columnsToSet; diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlSuccessCallback_notexist.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlSuccessCallback_notexist.html index 6d766cb82..39e4ead44 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlSuccessCallback_notexist.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlSuccessCallback_notexist.html @@ -23,7 +23,7 @@ Authors: DataControlSuccessCallback_notexist - + @@ -38,7 +38,7 @@ Authors: test(function () { check_no_interface_object("DataControlSuccessCallback"); -}, "DataControlSuccessCallback_notexist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlSuccessCallback_onsuccess_MAP.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlSuccessCallback_onsuccess_MAP.html index 94da3077d..9bfa58d95 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlSuccessCallback_onsuccess_MAP.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlSuccessCallback_onsuccess_MAP.html @@ -23,7 +23,7 @@ Authors: DataControlSuccessCallback_onsuccess_MAP - + @@ -40,7 +40,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("DataControlSuccessCallback_onsuccess_MAP", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value", addSuccess, addError; diff --git a/tct-datacontrol-tizen-tests/datacontrol/DataControlSuccessCallback_onsuccess_SQL.html b/tct-datacontrol-tizen-tests/datacontrol/DataControlSuccessCallback_onsuccess_SQL.html index 620e42c05..02996558b 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/DataControlSuccessCallback_onsuccess_SQL.html +++ b/tct-datacontrol-tizen-tests/datacontrol/DataControlSuccessCallback_onsuccess_SQL.html @@ -23,7 +23,7 @@ Authors: DataControlSuccessCallback_onsuccess_SQL - + @@ -40,7 +40,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("DataControlSuccessCallback_onsuccess_SQL", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), insertSuccess, insertError, rowData, removeSuccess, removeError; t.step(function () { diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue.html index 2410a8ce7..0ccb64d32 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue.html @@ -22,7 +22,7 @@ Authors: MappedDataControlConsumer_addValue - + @@ -43,7 +43,7 @@ test(function () { returnedValue = dataConsumer.addValue(globalReqId, currentDate, value); assert_equals(returnedValue, undefined, "Incorrect returned value"); -}); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_errorCallback_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_errorCallback_TypeMismatch.html index 7d96c4c84..3de8b3f0c 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_errorCallback_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_errorCallback_TypeMismatch.html @@ -22,7 +22,7 @@ Authors: MappedDataControlConsumer_addValue_errorCallback_TypeMismatch - + @@ -39,7 +39,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_addValue_errorCallback_TypeMismatch", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), conversionTable, successCallback, errorCallback, exceptionName, i, globalReqId = generateGlobalReqId(), dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP), currentDate = new Date().getTime().toString(), value = "samsung"; diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_errorCallback_invalid_cb.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_errorCallback_invalid_cb.html index 0474241c1..ae5be6c0c 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_errorCallback_invalid_cb.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_errorCallback_invalid_cb.html @@ -22,7 +22,7 @@ Authors: MappedDataControlConsumer_addValue_errorCallback_invalid_cb - + @@ -39,7 +39,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_addValue_errorCallback_invalid_cb", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), successCallback, invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(), dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP), currentDate = new Date().getTime().toString(), value = "samsung"; diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_exist.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_exist.html index dcf4865a2..7ccdb1320 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_exist.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_exist.html @@ -23,7 +23,7 @@ Authors: MappedDataControlConsumer_addValue_exist - + @@ -40,7 +40,7 @@ test(function () { var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP); assert_true("addValue" in globalDataControl, "No addValue method in globalDataControl"); check_method_exists(globalDataControl, "addValue"); -}, "MappedDataControlConsumer_addValue_exist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_successCallback_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_successCallback_TypeMismatch.html index 486022275..4aa60edac 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_successCallback_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_successCallback_TypeMismatch.html @@ -22,7 +22,7 @@ Authors: MappedDataControlConsumer_addValue_successCallback_TypeMismatch - + @@ -52,7 +52,7 @@ test(function () { dataConsumer.addValue(globalReqId, currentDate, value, successCallback); }, exceptionName + " should be thrown. Given - " + successCallback); } -}, "MappedDataControlConsumer_addValue_successCallback_TypeMismatch"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_successCallback_invalid_cb.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_successCallback_invalid_cb.html index 41b73dd02..a1d43b976 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_successCallback_invalid_cb.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_successCallback_invalid_cb.html @@ -22,7 +22,7 @@ Authors: MappedDataControlConsumer_addValue_successCallback_invalid_cb - + @@ -39,7 +39,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_addValue_successCallback_invalid_cb", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(), dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP), currentDate = new Date().getTime().toString(), value = "samsung"; diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_with_errorCallback.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_with_errorCallback.html index 3063e74ac..8fc8f5e4a 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_with_errorCallback.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_with_errorCallback.html @@ -22,7 +22,7 @@ Authors: MappedDataControlConsumer_addValue_with_errorCallback - + @@ -37,7 +37,7 @@ Authors: //==== TEST_CRITERIA MR MOA MAST setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_addValue_with_errorCallback", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), getSuccessCallback, getErrorCallback, dataConsumer, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), value = "samsung", returnedValue = null, addSuccessCallback, addErrorCallback; diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_with_successCallback.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_with_successCallback.html index 772627c34..de7c15e74 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_with_successCallback.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_with_successCallback.html @@ -22,7 +22,7 @@ Authors: MappedDataControlConsumer_addValue_with_successCallback - + @@ -37,7 +37,7 @@ Authors: //==== TEST_CRITERIA MR MOA MAST setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_addValue_with_successCallback", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), addSuccessCallback, getSuccessCallback, getErrorCallback, dataConsumer, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), value = "samsung", returnedValue = null; diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_extend.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_extend.html index c6657b8b7..7c55726cc 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_extend.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_extend.html @@ -23,7 +23,7 @@ Authors: MappedDataControlConsumer_extend - + @@ -40,7 +40,7 @@ Authors: test(function () { var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP); check_extensibility(globalDataControl); -}, "MappedDataControlConsumer_extend"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue.html index 1c89b015e..87cd57d01 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue.html @@ -23,7 +23,7 @@ Authors: MappedDataControlConsumer_getValue - + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MOA MR setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_getValue", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value", getSuccess, getError, addSuccess, addError, returnedValue = null; diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_errorCallback_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_errorCallback_TypeMismatch.html index afdf9d61d..82399de3a 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_errorCallback_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_errorCallback_TypeMismatch.html @@ -22,7 +22,7 @@ Authors: MappedDataControlConsumer_getValue_errorCallback_TypeMismatch - + @@ -39,7 +39,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_getValue_errorCallback_TypeMismatch", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), conversionTable, successCallback, errorCallback, exceptionName, i, globalReqId = generateGlobalReqId(), dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP), currentDate = new Date().getTime().toString(); diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_errorCallback_invalid_cb.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_errorCallback_invalid_cb.html index b9c64260d..b99f0c6d2 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_errorCallback_invalid_cb.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_errorCallback_invalid_cb.html @@ -22,7 +22,7 @@ Authors: MappedDataControlConsumer_getValue_errorCallback_invalid_cb - + @@ -39,7 +39,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_getValue_errorCallback_invalid_cb", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), successCallback, invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(), dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP), currentDate = new Date().getTime().toString(); diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_exist.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_exist.html index c10c8e8b2..44aa72024 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_exist.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_exist.html @@ -23,7 +23,7 @@ Authors: MappedDataControlConsumer_getValue_exist - + @@ -40,7 +40,7 @@ test(function () { var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP); assert_true("getValue" in globalDataControl, "No getValue method in globalDataControl"); check_method_exists(globalDataControl, "getValue"); -}, "MappedDataControlConsumer_getValue_exist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_missarg.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_missarg.html index 6db5a0955..02b838b6e 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_missarg.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_missarg.html @@ -23,7 +23,7 @@ Authors: MappedDataControlConsumer_getValue_missarg - + @@ -39,7 +39,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_getValue_missarg", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value", addSuccess, addError, exceptionName = "TypeMismatchError"; @@ -49,7 +49,7 @@ t.step(function () { addSuccess = t.step_func(function (reqId) { assert_equals(reqId, globalReqId, "incorrect request id"); globalReqId++; - assert_throws({name : exceptionName}, function () { + assert_throws({name: exceptionName}, function () { globalDataControl.getValue(globalReqId, key); }, exceptionName + " should be thrown - missing success callback"); t.done(); diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_successCallback_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_successCallback_TypeMismatch.html index 3f2079f91..92c70d67b 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_successCallback_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_successCallback_TypeMismatch.html @@ -22,7 +22,7 @@ Authors: MappedDataControlConsumer_getValue_successCallback_TypeMismatch - + @@ -51,7 +51,7 @@ test(function () { dataConsumer.getValue(globalReqId, currentDate, successCallback); }, exceptionName + " should be thrown. Given - " + successCallback); } -}, "MappedDataControlConsumer_getValue_successCallback_TypeMismatch"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_successCallback_invalid_cb.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_successCallback_invalid_cb.html index 21c0cfb7a..ade80a706 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_successCallback_invalid_cb.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_successCallback_invalid_cb.html @@ -22,7 +22,7 @@ Authors: MappedDataControlConsumer_getValue_successCallback_invalid_cb - + @@ -39,7 +39,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_getValue_successCallback_invalid_cb", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(), dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP), currentDate = new Date().getTime().toString(); diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_without_errorCallback.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_without_errorCallback.html index 61bbb60d7..264608a85 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_without_errorCallback.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_without_errorCallback.html @@ -23,7 +23,7 @@ Authors: MappedDataControlConsumer_getValue_without_errorCallback - + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MMINA MR setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_getValue_without_errorCallback", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value", getSuccess, addSuccess, addError, returnedValue = null; diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_notexist.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_notexist.html index a7a6b0cac..bdb55fd14 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_notexist.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_notexist.html @@ -23,7 +23,7 @@ Authors: MappedDataControlConsumer_notexist - + @@ -38,7 +38,7 @@ Authors: test(function () { check_no_interface_object("MappedDataControlConsumer"); -}, "MappedDataControlConsumer_notexist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue.html index 65c91d5e3..87581f969 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue.html @@ -23,7 +23,7 @@ Authors: MappedDataControlConsumer_removeValue - + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MR MOA MAST setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_removeValue", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value", getSuccess, getError, addSuccess, addError, removeSuccess, removeError, returnedValue = null; diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_errorCallback_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_errorCallback_TypeMismatch.html index c6acfa8ea..a624f52d5 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_errorCallback_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_errorCallback_TypeMismatch.html @@ -22,7 +22,7 @@ Authors: MappedDataControlConsumer_removeValue_errorCallback_TypeMismatch - + @@ -39,7 +39,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_removeValue_errorCallback_TypeMismatch", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), conversionTable, successCallback, errorCallback, exceptionName, i, globalReqId = generateGlobalReqId(), dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP), currentDate = new Date().getTime().toString(), value = "samsung"; diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_errorCallback_invalid_cb.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_errorCallback_invalid_cb.html index d8b73a800..ea2ec1f85 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_errorCallback_invalid_cb.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_errorCallback_invalid_cb.html @@ -22,7 +22,7 @@ Authors: MappedDataControlConsumer_removeValue_errorCallback_invalid_cb - + @@ -39,7 +39,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_removeValue_errorCallback_invalid_cb", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), successCallback, invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(), dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP), currentDate = new Date().getTime().toString(), value = "samsung"; diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_exist.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_exist.html index 4504f71f4..81ff4c123 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_exist.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_exist.html @@ -23,7 +23,7 @@ Authors: MappedDataControlConsumer_removeValue_exist - + @@ -40,7 +40,7 @@ test(function () { var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP); assert_true("removeValue" in globalDataControl, "No removeValue method in globalDataControl"); check_method_exists(globalDataControl, "removeValue"); -}, "MappedDataControlConsumer_removeValue_exist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_missarg.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_missarg.html index d5d258e45..baa9a2cc2 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_missarg.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_missarg.html @@ -23,7 +23,7 @@ Authors: MappedDataControlConsumer_removeValue_missarg - + @@ -39,7 +39,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_removeValue_missarg", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value", exceptionName = "TypeMismatchError", addSuccess, addError; @@ -49,7 +49,7 @@ t.step(function () { addSuccess = t.step_func(function (reqId) { assert_equals(reqId, globalReqId, "incorrect request id"); globalReqId++; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { globalDataControl.removeValue(globalReqId, key, value); }, exceptionName + " should be thrown - missing success callback."); diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_successCallback_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_successCallback_TypeMismatch.html index 5a1259bdc..834d77b63 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_successCallback_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_successCallback_TypeMismatch.html @@ -22,7 +22,7 @@ Authors: MappedDataControlConsumer_removeValue_successCallback_TypeMismatch - + @@ -52,7 +52,7 @@ test(function () { dataConsumer.removeValue(globalReqId, currentDate, value, successCallback); }, exceptionName + " should be thrown. Given - " + successCallback); } -}, "MappedDataControlConsumer_removeValue_successCallback_TypeMismatch"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_successCallback_invalid_cb.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_successCallback_invalid_cb.html index a2797ff3b..50304aa13 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_successCallback_invalid_cb.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_successCallback_invalid_cb.html @@ -22,7 +22,7 @@ Authors: MappedDataControlConsumer_removeValue_successCallback_invalid_cb - + @@ -39,7 +39,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_removeValue_successCallback_invalid_cb", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(), dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP), currentDate = new Date().getTime().toString(), value = "samsung"; diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_without_errorCallback.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_without_errorCallback.html index 3dc7c1578..2af5e3190 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_without_errorCallback.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_without_errorCallback.html @@ -23,7 +23,7 @@ Authors: MappedDataControlConsumer_removeValue_without_errorCallback - + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MR MMINA MAST setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_removeValue_without_errorCallback", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value", getSuccess, getError, addSuccess, addError, removeSuccess, returnedValue = null; diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue.html index 6d3e3088e..baf2a6163 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue.html @@ -23,7 +23,7 @@ Authors: MappedDataControlConsumer_updateValue - + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MR MAST MOA setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_updateValue", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value", getSuccess, getError, addSuccess, addError, updatedValue = currentDate + "updatedValue", diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch.html index 0ad5c7fdb..3accd448c 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch.html @@ -29,7 +29,7 @@ Authors: MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch - + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: + @@ -40,7 +40,7 @@ test(function () { var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP); assert_true("updateValue" in globalDataControl, "No updateValue method in globalDataControl"); check_method_exists(globalDataControl, "updateValue"); -}, "MappedDataControlConsumer_updateValue_exist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_missarg.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_missarg.html index fe56004bf..286c64996 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_missarg.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_missarg.html @@ -23,7 +23,7 @@ Authors: MappedDataControlConsumer_updateValue_missarg - + @@ -39,7 +39,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_updateValue_without_errorCallback"), +var t = async_test(document.title), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value", addSuccess, addError, updatedValue = currentDate + "updatedValue", exceptionName = "TypeMismatchError"; @@ -49,7 +49,7 @@ t.step(function () { addSuccess = t.step_func(function (reqId) { assert_equals(reqId, globalReqId, "incorrect request id"); globalReqId++; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { globalDataControl.updateValue(globalReqId, key, value, updatedValue); }, exceptionName + " should be thrown - missing success callback"); diff --git a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_TypeMismatch.html index a86446f41..7260b9cca 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_TypeMismatch.html @@ -29,7 +29,7 @@ Authors: MappedDataControlConsumer_updateValue_successCallback_TypeMismatch - + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MR MAST MMINA setup({timeout: 30000}); -var t = async_test("MappedDataControlConsumer_updateValue_without_errorCallback", {timeout: 30000}), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value", getSuccess, getError, addSuccess, addError, updatedValue = currentDate + "updatedValue", diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_extend.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_extend.html index 903aea47d..20e4e7117 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_extend.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_extend.html @@ -23,7 +23,7 @@ Authors: SQLDataControlConsumer_extend - + @@ -40,7 +40,7 @@ Authors: test(function () { var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL); check_extensibility(globalDataControl); -}, "SQLDataControlConsumer_extend"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert.html index a3759b7cc..e0d8584e1 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert.html @@ -23,7 +23,7 @@ Authors: SQLDataControlConsumer_insert - + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MR MOA MAST setup({timeout: 30000}); -var t = async_test("SQLDataControlConsumer_insert", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, rowData, returnedValue = null, descriptionToSet = currentDate + "_desc"; t.step(function () { @@ -62,7 +62,8 @@ t.step(function () { insertSuccess = t.step_func(function (reqId, insertRowId) { assert_equals(returnedValue, undefined, "Incorrect returned value"); assert_equals(reqId, globalReqId, "incorrect request id"); - assert_type(insertRowId, "number", "insertRowId is not a number."); + assert_type(reqId, "unsigned long", "reqId is not unsigned long"); + assert_type(insertRowId, "long", "insertRowId is not long."); globalReqId++; globalDataControl.select(globalReqId, rowData.columns, diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_TypeMismatch.html index ab51ca0c8..a6cd303f1 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_TypeMismatch.html @@ -29,7 +29,7 @@ Authors: SQLDataControlConsumer_insert_errorCallback_TypeMismatch - + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: + @@ -40,7 +40,7 @@ test(function () { var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL); assert_true("insert" in globalDataControl, "No insert method in globalDataControl"); check_method_exists(globalDataControl, "insert"); -}, "SQLDataControlConsumer_insert_exist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_insertionData_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_insertionData_TypeMismatch.html index b8f795ed3..36b208ff5 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_insertionData_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_insertionData_TypeMismatch.html @@ -29,7 +29,7 @@ Authors: SQLDataControlConsumer_insert_insertionData_TypeMismatch - + @@ -38,7 +38,7 @@ Authors: + @@ -41,12 +41,12 @@ test(function () { globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL); - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { globalDataControl.insert(globalReqId); }, exceptionName + " should be thrown - missing RowData object."); -}, "SQLDataControlConsumer_insert_missarg"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_TypeMismatch.html index 342501518..ce3b2c5fe 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_TypeMismatch.html @@ -29,7 +29,7 @@ Authors: SQLDataControlConsumer_insert_successCallback_TypeMismatch - + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MR MOA MAST setup({timeout: 30000}); -var t = async_test("SQLDataControlConsumer_insert_without_errorCallback", {timeout: 30000}), globalDataControl, +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess, selectSuccess, rowData, returnedValue = null, descriptionToSet = currentDate + "_desc"; t.step(function () { @@ -62,7 +62,8 @@ t.step(function () { insertSuccess = t.step_func(function (reqId, insertRowId) { assert_equals(returnedValue, undefined, "Incorrect returned value"); assert_equals(reqId, globalReqId, "incorrect request id"); - assert_type(insertRowId, "number", "insertRowId is not a number."); + assert_type(reqId, "unsigned long", "reqId is not unsigned long"); + assert_type(insertRowId, "long", "insertRowId is not long."); globalReqId++; globalDataControl.select(globalReqId, rowData.columns, diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_without_successCallback.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_without_successCallback.html index e42a2f52e..a0e49cd24 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_without_successCallback.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_without_successCallback.html @@ -23,7 +23,7 @@ Authors: SQLDataControlConsumer_insert_without_successCallback - + @@ -48,7 +48,7 @@ test(function () { returnedValue = globalDataControl.insert(globalReqId, rowData); assert_equals(returnedValue, undefined, "Incorrect returned value"); -}, "SQLDataControlConsumer_insert_without_successCallback"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_notexist.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_notexist.html index 496896a81..98d246447 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_notexist.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_notexist.html @@ -23,7 +23,7 @@ Authors: SQLDataControlConsumer_notexist - + @@ -38,7 +38,7 @@ Authors: test(function () { check_no_interface_object("SQLDataControlConsumer"); -}, "SQLDataControlConsumer_notexist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove.html index c7ce0a05e..61002088c 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove.html @@ -23,7 +23,7 @@ Authors: SQLDataControlConsumer_remove - + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MR MAST MOA setup({timeout: 30000}); -var t = async_test("SQLDataControlConsumer_remove", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, rowData, removeSuccess, removeError, returnedValue = null, columnsToSet = ["WORD", "WORD_DESC"], description = currentDate + "_desc", descriptionToSet = "'" + description + "'", rowDataToRemove = {}, rowDataToSelect = {}, keyToRemove = currentDate + 1, @@ -78,6 +78,7 @@ t.step(function () { insertSuccess = t.step_func(function (reqId, insertRowId) { globalReqId++; insertCounter++; + //check to execute appropriate number of inserts before removing if (insertCounter <= 2) { rowDataToSelect.columns = columnsToSet; rowDataToSelect.values = ["'" + keyToSelect + "'", descriptionToSet]; diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_TypeMismatch.html index f5439962d..d7da94b3a 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_TypeMismatch.html @@ -29,7 +29,7 @@ Authors: SQLDataControlConsumer_remove_errorCallback_TypeMismatch - + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: + @@ -40,7 +40,7 @@ test(function () { var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL); assert_true("remove" in globalDataControl, "No remove method in globalDataControl"); check_method_exists(globalDataControl, "remove"); -}, "SQLDataControlConsumer_remove_exist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_TypeMismatch.html index b9a5f3dd0..0f4131552 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_TypeMismatch.html @@ -29,7 +29,7 @@ Authors: SQLDataControlConsumer_remove_successCallback_TypeMismatch - + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MR MAST MOA setup({timeout: 30000}); -var t = async_test("SQLDataControlConsumer_remove_without_errorCallback", {timeout: 30000}), globalDataControl, +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, rowData, removeSuccess, returnedValue = null, columnsToSet = ["WORD", "WORD_DESC"], description = currentDate + "_desc", @@ -75,6 +75,7 @@ t.step(function () { insertSuccess = t.step_func(function (reqId, insertRowId) { globalReqId++; insertCounter++; + //check to execute appropriate number of inserts before removing if (insertCounter <= 2) { rowDataToSelect.columns = columnsToSet; rowDataToSelect.values = ["'" + keyToSelect + "'", descriptionToSet]; diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_without_successCallback.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_without_successCallback.html index 8fdb09bf2..395f4ae77 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_without_successCallback.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_without_successCallback.html @@ -23,7 +23,7 @@ Authors: SQLDataControlConsumer_remove_without_successCallback - + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MR MMINA setup({timeout: 30000}); -var t = async_test("SQLDataControlConsumer_remove_without_successCallback", {timeout: 30000}), globalDataControl, +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), insertSuccess, insertError, rowData, returnedValue = null; t.step(function () { diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select.html index 2b3ba2230..88338fa7d 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select.html @@ -23,7 +23,7 @@ Authors: SQLDataControlConsumer_select - + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MR MOA setup({timeout: 30000}); -var t = async_test("SQLDataControlConsumer_select", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, i, returnedValue = null, insertedData = {}, rowData, description = currentDate + "_desc", descriptionToSet = "'" + description + "'", columnsToSet = ["WORD", "WORD_DESC"], numberOfElements = 5, @@ -67,6 +67,7 @@ t.step(function () { insertSuccess = t.step_func(function (reqId, insertRowId) { globalReqId++; insertCounter++; + //check to execute appropriate number of inserts before selecting if (insertCounter <= numberOfElements) { rowData = {}; rowData.columns = columnsToSet; diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_columns_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_columns_TypeMismatch.html index 0b8f30f93..4f7f47c82 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_columns_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_columns_TypeMismatch.html @@ -29,7 +29,7 @@ Authors: SQLDataControlConsumer_select_columns_TypeMismatch - + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: + @@ -40,7 +40,7 @@ test(function () { var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL); assert_true("select" in globalDataControl, "No select method in globalDataControl"); check_method_exists(globalDataControl, "select"); -}, "SQLDataControlConsumer_select_exist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_missarg.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_missarg.html index d66d8813b..808c8b518 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_missarg.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_missarg.html @@ -23,7 +23,7 @@ Authors: SQLDataControlConsumer_select_missarg - + @@ -39,7 +39,7 @@ Authors: setup({timeout: 30000}); -var t = async_test("SQLDataControlConsumer_select_missarg", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), insertSuccess, insertError, rowData, exceptionName = "TypeMismatchError"; t.step(function () { @@ -50,7 +50,7 @@ t.step(function () { insertSuccess = t.step_func(function (reqId, insertRowId) { globalReqId++; - assert_throws({name : exceptionName}, + assert_throws({name: exceptionName}, function () { globalDataControl.select(globalReqId); }, exceptionName + " should be thrown - missing columns"); diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_TypeMismatch.html index 8773dde26..1d8c9537a 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_TypeMismatch.html @@ -29,7 +29,7 @@ Authors: SQLDataControlConsumer_select_successCallback_TypeMismatch - + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MR MMINA setup({timeout: 30000}); -var t = async_test("SQLDataControlConsumer_select_without_errorCallback", {timeout: 30000}), globalDataControl, +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), insertSuccess, insertError, selectSuccess, i, returnedValue = null, insertedData = {}, rowData, description = currentDate + "_desc", descriptionToSet = "'" + description + "'", columnsToSet = ["WORD", "WORD_DESC"], numberOfElements = 5, @@ -63,6 +63,7 @@ t.step(function () { insertSuccess = t.step_func(function (reqId, insertRowId) { globalReqId++; insertCounter++; + //check to execute appropriate number of inserts before selecting if (insertCounter <= numberOfElements) { rowData = {}; rowData.columns = columnsToSet; diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_without_maxNumberPerPage.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_without_maxNumberPerPage.html index 1f0f232bd..a080c7f54 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_without_maxNumberPerPage.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_without_maxNumberPerPage.html @@ -23,7 +23,7 @@ Authors: SQLDataControlConsumer_select_without_maxNumberPerPage - + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MR MOA setup({timeout: 30000}); -var t = async_test("SQLDataControlConsumer_select_without_maxNumberPerPage", {timeout: 30000}), globalDataControl, +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, i, returnedValue = null, insertedData = {}, rowData, description = currentDate + "_desc", descriptionToSet = "'" + description + "'", columnsToSet = ["WORD", "WORD_DESC"], numberOfElements = 5, key, @@ -68,6 +68,7 @@ t.step(function () { insertSuccess = t.step_func(function (reqId, insertRowId) { globalReqId++; insertCounter++; + //check to execute appropriate number of inserts before selecting if (insertCounter <= numberOfElements) { rowData = {}; rowData.columns = columnsToSet; diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_without_page.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_without_page.html index c71bdeaf4..796518005 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_without_page.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_without_page.html @@ -23,7 +23,7 @@ Authors: SQLDataControlConsumer_select_without_page - + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MR MOA setup({timeout: 30000}); -var t = async_test("SQLDataControlConsumer_select_without_page", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, i, returnedValue = null, insertedData = {}, rowData, description = currentDate + "_desc", descriptionToSet = "'" + description + "'", columnsToSet = ["WORD", "WORD_DESC"], numberOfElements = 5, key, wordColumnValue, wordDescColumnValue, insertCounter = 0; @@ -66,6 +66,7 @@ t.step(function () { insertSuccess = t.step_func(function (reqId, insertRowId) { globalReqId++; insertCounter++; + //check to execute appropriate number of inserts before selecting if (insertCounter <= numberOfElements) { rowData = {}; rowData.columns = columnsToSet; diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update.html index 1fbeb2d3f..bf75dd807 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update.html @@ -23,7 +23,7 @@ Authors: SQLDataControlConsumer_update - + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MR MAST MOA setup({timeout: 30000}); -var t = async_test("SQLDataControlConsumer_update", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, rowData, rowDataUpdate, updateSuccess, updateError, returnedValue = null, descriptionUpdated = currentDate + "_desc_update", keyUpdated = currentDate + "_update"; diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_TypeMismatch.html index 73d33e22e..fd2b041ac 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_TypeMismatch.html @@ -29,7 +29,7 @@ Authors: SQLDataControlConsumer_update_errorCallback_TypeMismatch - + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: + @@ -40,7 +40,7 @@ test(function () { var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL); assert_true("update" in globalDataControl, "No update method in globalDataControl"); check_method_exists(globalDataControl, "update"); -}, "SQLDataControlConsumer_update_exist"); +}, document.title); diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_missarg.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_missarg.html index 52b2d63ad..861c15737 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_missarg.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_missarg.html @@ -23,7 +23,7 @@ Authors: SQLDataControlConsumer_update_missarg - + @@ -37,7 +37,7 @@ Authors: //==== ONLOAD_DELAY 30 //==== TEST_CRITERIA MMA setup({timeout: 30000}); -var t = async_test("SQLDataControlConsumer_update_missarg", {timeout:30000}), globalDataControl, globalReqId = generateGlobalReqId(), +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), insertSuccess, insertError, rowData, exceptionName = "TypeMismatchError"; t.step(function () { @@ -48,7 +48,7 @@ t.step(function () { insertSuccess = t.step_func(function (reqId, insertRowId) { globalReqId++; - assert_throws({name : exceptionName}, function () { + assert_throws({name: exceptionName}, function () { globalDataControl.update(globalReqId); }, exceptionName + " should be thrown - missing RowData object"); diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_TypeMismatch.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_TypeMismatch.html index aed636b11..62cdc328f 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_TypeMismatch.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_TypeMismatch.html @@ -29,7 +29,7 @@ Authors: SQLDataControlConsumer_update_successCallback_TypeMismatch - + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MR MAST MOA setup({timeout: 30000}); -var t = async_test("SQLDataControlConsumer_update_without_errorCallback", {timeout: 30000}), globalDataControl, +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, rowData, rowDataUpdate, updateSuccess, returnedValue = null, descriptionUpdated = currentDate + "_desc_update", keyUpdated = currentDate + "_update"; diff --git a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_without_successCallback.html b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_without_successCallback.html index 7cfac14ba..7384ec806 100644 --- a/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_without_successCallback.html +++ b/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_without_successCallback.html @@ -23,7 +23,7 @@ Authors: SQLDataControlConsumer_update_without_successCallback - + @@ -38,7 +38,7 @@ Authors: //==== TEST_CRITERIA MR MMINA setup({timeout: 30000}); -var t = async_test("SQLDataControlConsumer_update_without_successCallback", {timeout: 30000}), globalDataControl, +var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), insertSuccess, insertError, rowData, rowDataUpdate, returnedValue = null; t.step(function () { diff --git a/tct-datacontrol-tizen-tests/datacontrol/support/unitcommon.js b/tct-datacontrol-tizen-tests/datacontrol/support/unitcommon.js new file mode 100644 index 000000000..9f972c1eb --- /dev/null +++ b/tct-datacontrol-tizen-tests/datacontrol/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-datacontrol-tizen-tests/resources/unitcommon.js b/tct-datacontrol-tizen-tests/resources/unitcommon.js deleted file mode 100644 index 9f972c1eb..000000000 --- a/tct-datacontrol-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-datacontrol-tizen-tests/tests.full.xml b/tct-datacontrol-tizen-tests/tests.full.xml index 490e1a542..1490ce3dd 100644 --- a/tct-datacontrol-tizen-tests/tests.full.xml +++ b/tct-datacontrol-tizen-tests/tests.full.xml @@ -783,7 +783,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_insertionData_TypeMismatch.html @@ -795,7 +795,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_TypeMismatch.html @@ -807,7 +807,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_TypeMismatch.html @@ -819,7 +819,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_updateData_TypeMismatch.html @@ -831,7 +831,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_TypeMismatch.html @@ -843,7 +843,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_TypeMismatch.html @@ -855,7 +855,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_TypeMismatch.html @@ -867,7 +867,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_TypeMismatch.html @@ -879,7 +879,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_columns_TypeMismatch.html @@ -891,7 +891,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_TypeMismatch.html @@ -903,7 +903,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_errorCallback_TypeMismatch.html @@ -915,7 +915,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_invalid_cb.html @@ -927,7 +927,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_invalid_cb.html @@ -939,7 +939,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_invalid_cb.html @@ -951,7 +951,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_invalid_cb.html @@ -1095,7 +1095,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch.html @@ -1107,7 +1107,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_invalid_cb.html @@ -1119,7 +1119,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_TypeMismatch.html @@ -1131,7 +1131,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_invalid_cb.html @@ -1143,7 +1143,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_invalid_cb.html @@ -1155,7 +1155,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_invalid_cb.html @@ -1167,7 +1167,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_errorCallback_invalid_cb.html @@ -1179,7 +1179,7 @@ - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_invalid_cb.html diff --git a/tct-datacontrol-tizen-tests/tests.xml b/tct-datacontrol-tizen-tests/tests.xml index e154ae2a3..4deb72960 100644 --- a/tct-datacontrol-tizen-tests/tests.xml +++ b/tct-datacontrol-tizen-tests/tests.xml @@ -328,77 +328,77 @@ /opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_missarg.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_insertionData_TypeMismatch.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_TypeMismatch.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_TypeMismatch.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_updateData_TypeMismatch.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_TypeMismatch.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_TypeMismatch.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_TypeMismatch.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_TypeMismatch.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_columns_TypeMismatch.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_TypeMismatch.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_errorCallback_TypeMismatch.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_invalid_cb.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_invalid_cb.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_invalid_cb.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_invalid_cb.html @@ -458,42 +458,42 @@ /opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_successCallback_invalid_cb.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_invalid_cb.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_TypeMismatch.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_invalid_cb.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_invalid_cb.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_invalid_cb.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_errorCallback_invalid_cb.html - + /opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_invalid_cb.html