[Datacontrol] various fixes
authorAndrzej Krolikowski <a.krolikowsk@samsung.com>
Fri, 4 Oct 2013 08:41:58 +0000 (10:41 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 8 Oct 2013 07:01:31 +0000 (07:01 +0000)
Change-Id: I85c0716c33b195383050068a82eeb27baaa18b1d

103 files changed:
tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_dataId_attribute.html
tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_extend.html
tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_notexist.html
tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_providerId_attribute.html
tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_type_attribute.html
tct-datacontrol-tizen-tests/datacontrol/DataControlErrorCallback_notexist.html
tct-datacontrol-tizen-tests/datacontrol/DataControlGetValueSuccessCallback_notexist.html
tct-datacontrol-tizen-tests/datacontrol/DataControlGetValueSuccessCallback_onsuccess.html
tct-datacontrol-tizen-tests/datacontrol/DataControlInsertSuccessCallback_notexist.html
tct-datacontrol-tizen-tests/datacontrol/DataControlInsertSuccessCallback_onsuccess.html
tct-datacontrol-tizen-tests/datacontrol/DataControlManagerObject_notexist.html
tct-datacontrol-tizen-tests/datacontrol/DataControlManager_extend.html
tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_MAP.html
tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_SQL.html
tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_exist.html
tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_missarg.html
tct-datacontrol-tizen-tests/datacontrol/DataControlManager_getDataControlConsumer_type_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/DataControlManager_in_tizen.html
tct-datacontrol-tizen-tests/datacontrol/DataControlManager_notexist.html
tct-datacontrol-tizen-tests/datacontrol/DataControlSelectSuccessCallback_notexist.html
tct-datacontrol-tizen-tests/datacontrol/DataControlSelectSuccessCallback_onsuccess.html
tct-datacontrol-tizen-tests/datacontrol/DataControlSuccessCallback_notexist.html
tct-datacontrol-tizen-tests/datacontrol/DataControlSuccessCallback_onsuccess_MAP.html
tct-datacontrol-tizen-tests/datacontrol/DataControlSuccessCallback_onsuccess_SQL.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_errorCallback_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_errorCallback_invalid_cb.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_exist.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_successCallback_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_successCallback_invalid_cb.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_with_errorCallback.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_addValue_with_successCallback.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_extend.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_errorCallback_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_errorCallback_invalid_cb.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_exist.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_missarg.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_successCallback_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_successCallback_invalid_cb.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_getValue_without_errorCallback.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_notexist.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_errorCallback_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_errorCallback_invalid_cb.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_exist.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_missarg.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_successCallback_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_successCallback_invalid_cb.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_without_errorCallback.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_invalid_cb.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_exist.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_missarg.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_invalid_cb.html
tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_without_errorCallback.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_extend.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_invalid_cb.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_exist.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_insertionData_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_missarg.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_invalid_cb.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_without_errorCallback.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_without_successCallback.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_notexist.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_invalid_cb.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_exist.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_invalid_cb.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_without_errorCallback.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_without_successCallback.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_columns_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_errorCallback_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_errorCallback_invalid_cb.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_exist.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_missarg.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_invalid_cb.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_without_errorCallback.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_without_maxNumberPerPage.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_without_page.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_invalid_cb.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_exist.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_missarg.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_invalid_cb.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_updateData_TypeMismatch.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_without_errorCallback.html
tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_without_successCallback.html
tct-datacontrol-tizen-tests/datacontrol/support/unitcommon.js [new file with mode: 0644]
tct-datacontrol-tizen-tests/resources/unitcommon.js [deleted file]
tct-datacontrol-tizen-tests/tests.full.xml
tct-datacontrol-tizen-tests/tests.xml

index 2f11e93c911d3be5813df5ee0bf5e1b90d3b2d79..ac6ff16ef58db4c7d9ece286bdbb5a981749a25e 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlConsumerObject_dataId_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index 7d32f13680fd863f386674e2c7e7812684fcf630..d3d526f10504c86d4ecbe0d86d93668bb4cec493 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlConsumerObject_extend</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index 78a005321148266aafbc29beb7ac15290310b325..e97a1ea70d6881b2f9bd497798cd66ef2b729747 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlConsumerObject_notexist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("DataControlConsumerObject");
-}, "DataControlConsumerObject_notexist");
+}, document.title);
 
 </script>
 </body>
index 6a963451697d3dc026f989f4f22a0f0be53affda..956e5273ef4ce3ac47b4cfc8b604a49f9b14c253 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlConsumerObject_providerId_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index 6f75ce69faed2f42b02895189c9624182392bd1c..f1885e5ca9b4349be7dd1c162c706d5154217eec 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlConsumerObject_type_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index 2302cb4243547c0d5af0a2982c4138139116aec6..3ceb972f5fe0cef68a02a7b66027eb878e7cb044 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlErrorCallback_notexist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("DataControlErrorCallback");
-}, "DataControlErrorCallback_notexist");
+}, document.title);
 
 </script>
 </body>
index 4f90be352f676ea89a81d9b00490147a136f6060..bc37a92be46e93008637a637ba9f8dbb55ddcc9c 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlGetValueSuccessCallback_notexist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("DataControlGetValueSuccessCallback");
-}, "DataControlGetValueSuccessCallback_notexist");
+}, document.title);
 
 </script>
 </body>
index e5dae2451b974bc2f32744c4989594b2c2a511dc..cf1692fbd96acbb71f0fb27f19ca6abad18b9daf 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlGetValueSuccessCallback_onsuccess</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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;
index 69d52024319b295cfbedf26222ab03a922ad4ec9..f78fe032fde3f9c77c170ea429ddfea53720f74a 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlInsertSuccessCallback_notexist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("DataControlInsertSuccessCallback");
-}, "DataControlInsertSuccessCallback_notexist");
+}, document.title);
 
 </script>
 </body>
index 0dda8d88777e8f03b1c822fcac3b74f0938a7a64..33801720761234eeff4ca2e14922d3006ff37942 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlInsertSuccessCallback_onsuccess</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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();
     });
 
index 32c2afddffc4f45249023f98658437f376ed2d14..b31fa6427c0cff032270797268b2dba6ca1d5ef5 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlManagerObject_notexist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("DataControlManagerObject");
-}, "DataControlManagerObject_notexist");
+}, document.title);
 
 </script>
 </body>
index 104224534d3dd80f053d49aa0894e9f499e00c5c..871bc46317dcd0e342500de934a5b1465b2ee352 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlManager_extend</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_extensibility(tizen.datacontrol);
-}, "DataControlManager_extend");
+}, document.title);
 
 </script>
 </body>
index 13b4aa246f3d361160f82abd497fd9f5c40b6e3d..a3aaeebdda0116d4f868c86d8e906e757b71ba3f 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlManager_getDataControlConsumer_MAP</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index fda3dc4aa898bb056d2a89e530638fa1e94294a9..b6d18bd07a1a32c880ca117ea2b72cb4f05c140f 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlManager_getDataControlConsumer_SQL</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index a2ebf51a4780a596e60f2c57860bf1053499311c..614ba5729d1c8bc0a49cb7e8a0fad37a82b55a44 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlManager_getDataControlConsumer_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -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);
 
 </script>
 </body>
index 5a0a4cec721944c664bcffa64b27dc596a3b2713..9ab0f99b94219269571831c4415990dcaeb117ac 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlManager_getDataControlConsumer_missarg</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index 69f914f7c7ac0686b66f3430e4a865eb73ccb398..ad21d11f1afb671f92a2b127846e2f7463081352 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlManager_getDataControlConsumer_type_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index 33ac88c2662267860beb1b743271bcd113ef9b30..66099ce59d23749409f7f8758f042718fc78f7c9 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlManager_in_tizen</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -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);
 
 </script>
 </body>
index fa5dda730377f8668dd9209fdb2ae58b0485840f..4d21833c1e87fe647a78a10afe29a1fe4d181d81 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlManager_notexist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("DataControlManager");
-}, "DataControlManager_notexist");
+}, document.title);
 
 </script>
 </body>
index 6113a4eb300671c5f96ea5866232d0c42d8117d2..437084099978b7d1c07a7e8f03ec88b59ddc790f 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlSelectSuccessCallback_notexist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("DataControlSelectSuccessCallback");
-}, "DataControlSelectSuccessCallback_notexist");
+}, document.title);
 
 </script>
 </body>
index cf7e01605a466c75d7676212322d1666205f6c00..70a4acf281e5f0d75afa447cbd3fde1a869ae46c 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlSelectSuccessCallback_onsuccess</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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;
index 6d766cb82d5ed39039e9d0c26a5e33c50acee2c6..39e4ead44865990c46e2cc9fcbba85181b9a082c 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlSuccessCallback_notexist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("DataControlSuccessCallback");
-}, "DataControlSuccessCallback_notexist");
+}, document.title);
 
 </script>
 </body>
index 94da3077d039d8ab58410fa4200e966869e2c661..9bfa58d95f26b8b086b3a7b69726dc7393a035d8 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlSuccessCallback_onsuccess_MAP</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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;
index 620e42c059581c3400964ddaa74afec77a6f4357..02996558bbbaa0f66717a301c456f67aa7b5222a 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataControlSuccessCallback_onsuccess_SQL</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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 () {
 
index 2410a8ce7c917374deaa9a1a47ec2c3a9ecd24c4..0ccb64d320090563a0cfaf8437255b13f336d63f 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MappedDataControlConsumer_addValue</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -43,7 +43,7 @@ test(function () {
     returnedValue = dataConsumer.addValue(globalReqId, currentDate, value);
     assert_equals(returnedValue, undefined, "Incorrect returned value");
 
-});
+}, document.title);
 
 </script>
 </body>
index 7d96c4c84c26b656b0b4a8128cd046384075ba27..3de8b3f0c12655a1a07b0b0a9dd19c3b90feddea 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MappedDataControlConsumer_addValue_errorCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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";
index 0474241c10873ac6f6ca7586d9b2f90a8ac561e7..ae5be6c0cbe1e4041849750f12f9597b9c2da891 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MappedDataControlConsumer_addValue_errorCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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";
index dcf4865a284922b28378d2f90f85ac16d254403f..7ccdb13206feaa17ce4e67645ce9c34ff80f5c60 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_addValue_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index 4860222755d51a26300e2aff713d3b03c7d55419..4aa60edac25730348b06b3dd5be14fc0820b9386 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MappedDataControlConsumer_addValue_successCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -52,7 +52,7 @@ test(function () {
                 dataConsumer.addValue(globalReqId, currentDate, value, successCallback);
             }, exceptionName + " should be thrown. Given - " + successCallback);
     }
-}, "MappedDataControlConsumer_addValue_successCallback_TypeMismatch");
+}, document.title);
 
 </script>
 </body>
index 41b73dd020edc3cb502a59f54bea96ec3cbfd939..a1d43b976f901f6e0bd2aaeaa56ac6cd66eec98c 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MappedDataControlConsumer_addValue_successCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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";
index 3063e74ace5d38ab97c7505f4b4981f6e95dff92..8fc8f5e4a07c646d73b8ee8cd413d344793e1dc1 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MappedDataControlConsumer_addValue_with_errorCallback</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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;
index 772627c34a2713573d74ab199c81e2f7cd72b338..de7c15e74e002f6990b8a4499b8099d68fdfa2ca 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MappedDataControlConsumer_addValue_with_successCallback</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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;
 
index c6657b8b7a839c1143971a68f9cce9db67e411ff..7c55726cccca3b46d370d9f67da9ad6611713035 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_extend</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index 1c89b015e975067fe66e024ea9a06aa17f73a394..87cd57d019699b34a5e9f45b6bb9cb1c6eb51b9a 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_getValue</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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;
index afdf9d61de7750a3dca67f5e835f94746017fd85..82399de3afbe40ae13a45c1f03c0ad10698584b4 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MappedDataControlConsumer_getValue_errorCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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();
index b9c64260ddaccf0f43aa1247a971a7fdc5bec79d..b99f0c6d232af574600fafa8c52af3a007ed6d9b 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MappedDataControlConsumer_getValue_errorCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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();
index c10c8e8b2fc070637f74a9489679eefa38149fbb..44aa72024059d7f4bfc21ea02763a1612d8a5fbd 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_getValue_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index 6db5a0955429417e8f91ab80b5221f53d2221b39..02b838b6e8bbb32d7d1ebb9163077e0a2ba548e1 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_getValue_missarg</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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();
index 3f2079f91312320741751121796ee8c7d24e9554..92c70d67b2a54bfa3bde3b150017f0602ce48638 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MappedDataControlConsumer_getValue_successCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -51,7 +51,7 @@ test(function () {
                 dataConsumer.getValue(globalReqId, currentDate, successCallback);
             }, exceptionName + " should be thrown. Given - " + successCallback);
     }
-}, "MappedDataControlConsumer_getValue_successCallback_TypeMismatch");
+}, document.title);
 
 </script>
 </body>
index 21c0cfb7a517754782160b2caddb7544b1745927..ade80a70632db8bdb4658e7877676ff5ae0ae0f6 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MappedDataControlConsumer_getValue_successCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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();
index 61bbb60d7d8638eea604d18546ff7aaee3b79ff6..264608a85ad8b55a619c6f64645547bd513a554e 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_getValue_without_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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;
index a7a6b0caca3489a951a4e4798590ed87b2ae4be5..bdb55fd14939b433ab68b215af5ae553b8abb2ef 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_notexist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("MappedDataControlConsumer");
-}, "MappedDataControlConsumer_notexist");
+}, document.title);
 
 </script>
 </body>
index 65c91d5e35d14cf952c05f7a41153fb2d577fe7d..87581f969aa207e859240af39c665d98ec586e67 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_removeValue</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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;
index c6acfa8ea7153f89ef79a6fdccd85a3bcd6f2953..a624f52d545fc4ecc50d03ac3673ac6d93858502 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MappedDataControlConsumer_removeValue_errorCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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";
index d8b73a80054bdca7f10d4be7ad4723012586af9c..ea2ec1f859bfc50ef61566442f8d55da6b265e6b 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MappedDataControlConsumer_removeValue_errorCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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";
index 4504f71f4f0fbb7555491cd5056d2359e9fca50e..81ff4c123bad9f21c1d61c31469f652a06caf441 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_removeValue_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index d5d258e45d98e9f2ca1040e76a1b07b92a3cff44..baa9a2cc2bc71d41444307251bf906892092698d 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_removeValue_missarg</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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.");
index 5a1259bdc0f7cc242d266159c68ff69b3938e968..834d77b63db70b13e851fbc4f6c16a0ee89a0bbd 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MappedDataControlConsumer_removeValue_successCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -52,7 +52,7 @@ test(function () {
                 dataConsumer.removeValue(globalReqId, currentDate, value, successCallback);
             }, exceptionName + " should be thrown. Given - " + successCallback);
     }
-}, "MappedDataControlConsumer_removeValue_successCallback_TypeMismatch");
+}, document.title);
 
 </script>
 </body>
index a2797ff3bc7c9ec055790cc2d09890674bfe158e..50304aa134d6c14d18303d7a3dbbb0ab2664f546 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MappedDataControlConsumer_removeValue_successCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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";
index 3dc7c157862e78dc13c7739881b2d0aaabf4bd8b..2af5e31901bdaa9ea95f243e11e52915d36ddc5b 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_removeValue_without_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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;
index 6d3e3088e4360f8785cec2d05d2a4526521b13b5..baf2a61636b0e3a2f79543c8b7325299da8490fc 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_updateValue</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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",
index 0ad5c7fdb0de9f629172e300edb23c92124546b4..3accd448c3c3777d0eade3bf1910a8c102d80b00 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch
-//==== LABEL check optional argument errorCallback (updateValue method) type conversion
+//==== LABEL Check optional argument errorCallback (updateValue method) type conversion
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:updateValue M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), updateSuccess, updatedValue = currentDate + "updatedValue",
     key =  currentDate, value = currentDate + "value", addSuccess, addError, conversionTable = getTypeConversionExceptions("functionObject",
     true);
index 541dfc9750bcff825a0213bb8a2269d071cd83d3..b0799053d035619b0052fbf53aac3ac6435d93c1 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_updateValue_errorCallback_invalid_cb</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: MappedDataControlConsumer_updateValue_errorCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onerror) was passed into updateValue method
+//==== LABEL Check if an exception was thrown when a fake callback (onerror) was passed into updateValue method
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:updateValue M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("MappedDataControlConsumer_updateValue_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), updateSuccess, updatedValue = currentDate + "updatedValue",
     key =  currentDate, value = currentDate + "value", addSuccess, addError, invalidCallback;
 t.step(function () {
@@ -63,7 +63,7 @@ t.step(function () {
     });
 
     addSuccess = t.step_func(function () {
-        assert_throws({name: "TypeMismatchError"}, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             globalDataControl.updateValue(globalReqId, key, value, updatedValue, updateSuccess, invalidCallback);
         }, "exception should be thrown");
         t.done();
index d49262229aa4a0c7fc71e0fe25fe99f8fa568349..8223adcea579f0924fe85f9da68e3f45f8f6bd15 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_updateValue_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index fe56004bf9987e69f247ad66d01afea38d1834ed..286c649960efa2a52fc89a0f56d2f321e43b3871 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_updateValue_missarg</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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");
index a86446f41d6903cfedcec6f4b995633ea4c24200..7260b9ccad748ae71e0ee8211120b5118a034036 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_updateValue_successCallback_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: MappedDataControlConsumer_updateValue_successCallback_TypeMismatch
-//==== LABEL check non-optional argument successCallback (updateValue method) type conversion
+//==== LABEL Check non-optional argument successCallback (updateValue method) type conversion
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:updateValue M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("MappedDataControlConsumer_updateValue_successCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), updatedValue = currentDate + "updatedValue",
     key =  currentDate, value = currentDate + "value", addSuccess, addError, conversionTable = getTypeConversionExceptions("functionObject");
 t.step(function () {
index 0949cb19e4c38d8004be007e81ec437adc9b9e42..b52b94335246fca2f5152e35439bb8c5889cbf48 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_updateValue_successCallback_invalid_cb</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: MappedDataControlConsumer_updateValue_successCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onsuccess) was passed into updateValue method
+//==== LABEL Check if an exception was thrown when a fake callback (onsuccess) was passed into updateValue method
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:updateValue M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("MappedDataControlConsumer_updateValue_successCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), updatedValue = currentDate + "updatedValue",
     key =  currentDate, value = currentDate + "value", addSuccess, addError, invalidCallback;
 t.step(function () {
@@ -59,7 +59,7 @@ t.step(function () {
     };
 
     addSuccess = t.step_func(function () {
-        assert_throws({name: "TypeMismatchError"}, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             globalDataControl.updateValue(globalReqId, key, value, updatedValue, invalidCallback);
         }, "exception should be thrown");
         t.done();
index ddcdd75bf9a5866f8599db9067dcbb1b598455c7..27b498993fa9d2028abd1506d04219e96701fd0c 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MappedDataControlConsumer_updateValue_without_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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",
index 903aea47de945cde606432c966618a5cd8b8a218..20e4e71172b00008cf8c45f05e1a2884448592a0 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_extend</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index a3759b7ccf2b61f4c359be97da90f11efb0ab39f..e0d8584e190387227f26d9a8fdd08f550e3226d7 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_insert</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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,
index ab51ca0c8a23e670d2cbc4e632e09762b24085fc..a6cd303f1ebcab8dd252a096736f8d41b7031f11 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_insert_errorCallback_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_insert_errorCallback_TypeMismatch
-//==== LABEL check optional argument errorCallback (insert method) type conversion
+//==== LABEL Check optional argument errorCallback (insert method) type conversion
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:insert M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_insert_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
     conversionTable = getTypeConversionExceptions("functionObject", true);
 t.step(function () {
index 1bc04fe179a53fa68f578f7da27118e3fff50e21..0a45ce5eff8f7bbaabfc787b3365d6bba30741c3 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_insert_errorCallback_invalid_cb</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_insert_errorCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onerror) was passed into insert method
+//==== LABEL Check if an exception was thrown when a fake callback (onerror) was passed into insert method
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:insert M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_insert_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
     invalidCallback;
 t.step(function () {
@@ -69,7 +69,7 @@ t.step(function () {
 
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
 
-    assert_throws({name: "TypeMismatchError"}, function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         globalDataControl.insert(globalReqId, rowData, insertSuccess, invalidCallback);
     }, "exception should be thrown");
 
index 88e0bcba7db161a995593743600f7ab7a7d94e0c..9c48f78466618a8f843dd271db418dc73feebf56 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_insert_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index b8f795ed38889ec12306170637c456f3cf51f156..36b208ff50a36ae103784a83e2110f9aa6f8f3f7 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_insert_insertionData_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_insert_insertionData_TypeMismatch
-//==== LABEL check non-optional argument insertionData (insert method) type conversion
+//==== LABEL Check non-optional argument insertionData (insert method) type conversion
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:insert M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_insert_insertionData_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), insertSuccess, conversionTable = getTypeConversionExceptions("dictionary", false);
 t.step(function () {
 
index 5f7091a02f60e7f6b2ccab6364f6c70c8f5acdc0..2cb97f30ae14879e17facf1a2f1f2de1c09635df 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_insert_missarg</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index 342501518d22b61c0948c69c85254e6c2138e605..ce3b2c5fed96cc00b69e6951e190315b6115cbce 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_insert_successCallback_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_insert_successCallback_TypeMismatch
-//==== LABEL check optional argument successCallback (insert method) type conversion
+//==== LABEL Check optional argument successCallback (insert method) type conversion
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:insert M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_insert_successCallback_TypeMismatch", {timeout: 30000}), i, rowData, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, rowData, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(),
     conversionTable = getTypeConversionExceptions("functionObject", true);
 t.step(function () {
index 87ddf8547f5750077eee4c6b66099442251a5279..e2c4fbc502e78c718a083ac4314269f3d3313a12 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_insert_successCallback_invalid_cb</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_insert_successCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onsuccess) was passed into insert method
+//==== LABEL Check if an exception was thrown when a fake callback (onsuccess) was passed into insert method
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:insert M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_insert_successCallback_invalid_cb", {timeout: 30000}), rowData, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), rowData, globalDataControl,
     globalReqId = generateGlobalReqId(), invalidCallback, currentDate = new Date().getTime().toString();
 t.step(function () {
 
@@ -64,7 +64,7 @@ t.step(function () {
 
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
 
-    assert_throws({name: "TypeMismatchError"}, function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         globalDataControl.insert(globalReqId, rowData, invalidCallback);
     }, "exception should be thrown");
 
index f58518380cb2c6978f8bd69fd7b2be13c71afa16..93a8fb11153aace062e7b4a17b77fad0a86895a2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_insert_without_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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,
index e42a2f52e919079c834b3e44b174852973912916..a0e49cd24fe408739402c83a0efe36939e507b18 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_insert_without_successCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -48,7 +48,7 @@ test(function () {
     returnedValue = globalDataControl.insert(globalReqId, rowData);
     assert_equals(returnedValue, undefined, "Incorrect returned value");
 
-}, "SQLDataControlConsumer_insert_without_successCallback");
+}, document.title);
 
 </script>
 </body>
index 496896a81a079c0ca47df5649dc0e84a4103ee6b..98d246447d8a9fa3e83c0ef4e283a6a493145eaf 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_notexist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("SQLDataControlConsumer");
-}, "SQLDataControlConsumer_notexist");
+}, document.title);
 
 </script>
 </body>
index c7ce0a05e8d98e27329e06bcc0475bf182aedbe3..61002088c00ce3b8c07569e83bc16e7288c25750 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_remove</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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];
index f5439962dd1398ad3cdaab9a24bb5415bd1f10ee..d7da94b3a27edc249dd2404a47e72a901ce6c40e 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_remove_errorCallback_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_remove_errorCallback_TypeMismatch
-//==== LABEL check optional argument errorCallback (remove method) type conversion
+//==== LABEL Check optional argument errorCallback (remove method) type conversion
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:remove M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_remove_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), removeSuccess, rowData,
     insertSuccess, insertError, conversionTable = getTypeConversionExceptions("functionObject", true);
 t.step(function () {
index f5caab8b68c3106df1c2ebb246981968a1ed0f89..cb58644235ba3419fbcc437567792642d917c4f5 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_remove_errorCallback_invalid_cb</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_remove_errorCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onerror) was passed into remove method
+//==== LABEL Check if an exception was thrown when a fake callback (onerror) was passed into remove method
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:remove M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_remove_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
     insertError, removeSuccess, invalidCallback;
 t.step(function () {
@@ -68,7 +68,7 @@ t.step(function () {
     });
 
     insertSuccess = t.step_func(function () {
-        assert_throws({name: "TypeMismatchError"}, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             globalDataControl.remove(globalReqId,
                 rowData.columns[0] + "=" + rowData.values[0], removeSuccess, invalidCallback);
         }, "exception should be thrown");
index ddeda8e324a6b2de1c5c6103b5075ccea2fb399e..14d7a8f5793217558cb0d878573d7bcb28867383 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_remove_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index b9a5f3dd0ecdf8b2bbd78af6fd9ab009b03370c6..0f413155203e2666d0cbad7f9353d748b0809f89 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_remove_successCallback_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_remove_successCallback_TypeMismatch
-//==== LABEL check optional argument successCallback (remove method) type conversion
+//==== LABEL Check optional argument successCallback (remove method) type conversion
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:remove M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_remove_successCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
     insertError, conversionTable = getTypeConversionExceptions("functionObject", true);
 t.step(function () {
index cf8bd9e484237949bdab8645cac80af4137a04be..a6a9d74952b4f1aa3a2b46bc360910d284b9b7b5 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_remove_successCallback_invalid_cb</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_remove_successCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onsuccess) was passed into remove method
+//==== LABEL Check if an exception was thrown when a fake callback (onsuccess) was passed into remove method
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:remove M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_remove_successCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
     insertError, invalidCallback;
 t.step(function () {
@@ -64,7 +64,7 @@ t.step(function () {
     };
 
     insertSuccess = t.step_func(function () {
-        assert_throws({name: "TypeMismatchError"}, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             globalDataControl.remove(globalReqId,
                 rowData.columns[0] + "=" + rowData.values[0], invalidCallback);
         }, "exception should be thrown");
index 23f46f51ed5c79eac1dbcd8feac2d75cb5cbca43..fce58de4a5a2ddfc479241c2ab6d1fecbc23cbff 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_remove_without_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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];
index 8fdb09bf289f0e377dd24a1ff54dfc04f39cca3a..395f4ae7702fbda76fce88be1034ba2724e2f23f 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_remove_without_successCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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 () {
index 2b3ba22305618c050666875427bf0c78c8a5dac6..88338fa7ddcb2d152e4c06342e20fdd4ea328b50 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_select</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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;
index 0b8f30f938d74f636c231079318bc9fbb3ef07fa..4f7f47c82a6cf2e632fb5ab07cdf833a63afbcb7 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_select_columns_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_select_columns_TypeMismatch
-//==== LABEL check non-optional argument columns (select method) type conversion
+//==== LABEL Check non-optional argument columns (select method) type conversion
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:select M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_select_columns_TypeMismatch", {timeout: 30000}), i, globalDataControl, globalReqId = generateGlobalReqId(),
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl, globalReqId = generateGlobalReqId(),
     currentDate = new Date().getTime().toString(), rowData, insertSuccess, selectSuccess, insertError,
     conversionTable = getTypeConversionExceptions("array", false);
 t.step(function () {
index e7066926c72b38f3ff8b069b9bd3ee9c782c1b34..6f6b966172c659aaa54e95909a54385356350564 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_select_errorCallback_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_select_errorCallback_TypeMismatch
-//==== LABEL check optional argument errorCallback (select method) type conversion
+//==== LABEL Check optional argument errorCallback (select method) type conversion
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:select M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_select_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, selectSuccess,
     insertSuccess, insertError, conversionTable = getTypeConversionExceptions("functionObject", true);
 t.step(function () {
index db8546e9fe19e12d478c4a9ac308d64724219dc0..168e98188739a7eeb8cc2b4767a425acfef664c0 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_select_errorCallback_invalid_cb</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_select_errorCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onerror) was passed into select method
+//==== LABEL Check if an exception was thrown when a fake callback (onerror) was passed into select method
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:select M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_select_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
     insertError, selectSuccess, invalidCallback;
 t.step(function () {
@@ -68,7 +68,7 @@ t.step(function () {
     };
 
     insertSuccess = t.step_func(function () {
-        assert_throws({name: "TypeMismatchError"}, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             globalDataControl.select(globalReqId, rowData.columns,
                 rowData.columns[0] + "=" + rowData.values[0], selectSuccess, invalidCallback);
         }, "exception should be thrown");
index 504627276283d19bc2e0a5660c6f357cd682b56a..53997cf6f8f69fadec4889eccacb9d00681f28db 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_select_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index d66d8813bc5d886149327f3d976a311385a80dc1..808c8b518c7908f081ffbe49fffa54ed17b89d5a 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_select_missarg</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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");
index 8773dde26f0da9725d394f8e0877993df2121e39..1d8c9537ac7ab8fc0b89ca82bc4db7ab43a1d688 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_select_successCallback_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_select_successCallback_TypeMismatch
-//==== LABEL check non-optional argument successCallback (select method) type conversion
+//==== LABEL Check non-optional argument successCallback (select method) type conversion
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:select M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_select_successCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
     insertError, conversionTable = getTypeConversionExceptions("functionObject");
 t.step(function () {
index 1162fd742a0e18cb751c7fe1aed4c988c13edb5a..e9dbab51c028fe746bc6aa7f5f826ec118858c7b 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_select_successCallback_invalid_cb</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_select_successCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onsuccess) was passed into select method
+//==== LABEL Check if an exception was thrown when a fake callback (onsuccess) was passed into select method
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:select M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
@@ -46,7 +46,7 @@ Authors:
 //==== TEST_CRITERIA MTCB
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_select_successCallback_invalid_cb", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
     globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData,
     insertSuccess, insertError, invalidCallback;
 t.step(function () {
@@ -63,7 +63,7 @@ t.step(function () {
     };
 
     insertSuccess = t.step_func(function () {
-        assert_throws({name: "TypeMismatchError"}, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             globalDataControl.select(globalReqId, rowData.columns,
                 rowData.columns[0] + "=" + rowData.values[0], invalidCallback);
         }, "exception should be thrown");
index 1a2902524a023b064ba77a05df26e972af243372..9448c2ec18353786aaa8a80410f2446dbcfa9bf0 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_select_without_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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;
index 1f0f232bd8696634ce0680d5934671b064ca4bd5..a080c7f54aae0775f128559563c36c5117f1a6b6 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_select_without_maxNumberPerPage</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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;
index c71bdeaf42590eee5d67c9f01285d24fbe71aa03..7965180056390c65adfe1518ca5c3f6d15b80c07 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_select_without_page</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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;
index 1fbeb2d3f73c164a638af386555cf22a75fdad18..bf75dd807a0ce949bf2e35652f9395263b9094f2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_update</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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";
index 73d33e22e17ec060dfe26efce6627190fa5ef567..fd2b041acc90a827b3e1d138103949e27b7cfb37 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_update_errorCallback_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_update_errorCallback_TypeMismatch
-//==== LABEL check optional argument errorCallback (update method) type conversion
+//==== LABEL Check optional argument errorCallback (update method) type conversion
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:update M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_update_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, rowDataUpdate,
     insertSuccess, updateSuccess, insertError, conversionTable = getTypeConversionExceptions("functionObject",
     true);
index 793424fb679909297de1b0e2249fb0b83ccfb393..a4b7a6a19a18edc7325e437cb991bc79a6e03af1 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_update_errorCallback_invalid_cb</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_update_errorCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onerror) was passed into update method
+//==== LABEL Check if an exception was thrown when a fake callback (onerror) was passed into update method
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:update M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_update_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, rowDataUpdate,
     insertSuccess, updateSuccess, insertError, invalidCallback;
 t.step(function () {
@@ -74,7 +74,7 @@ t.step(function () {
 
     insertSuccess = t.step_func(function (reqId, insertRowId) {
         globalReqId++;
-        assert_throws({name: "TypeMismatchError"}, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             globalDataControl.update(globalReqId, rowDataUpdate,
                 rowData.columns[0] + "=" + rowData.values[0], updateSuccess, invalidCallback);
         }, "exception should be thrown");
index 60f4ab0f29c3e952e4aa825e62ac234c50c5b2fe..7191c1e623aec70fe2d4c9fac40b538d5567d522 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_update_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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);
 
 </script>
 </body>
index 52b2d63adff4c93b09eae44fc031bbd7d4044469..861c15737496af3306ee1399daa9bbc5e54a7f7e 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_update_missarg</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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");
 
index aed636b1139f442c55361edf1171ef76f06070e6..62cdc328fd579059eb3946a14d02d4657ec94bb4 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_update_successCallback_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_update_successCallback_TypeMismatch
-//==== LABEL check optional argument successCallback (update method) type conversion
+//==== LABEL Check optional argument successCallback (update method) type conversion
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:update M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_update_successCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
     insertError, conversionTable = getTypeConversionExceptions("functionObject", true), rowDataUpdate;
 t.step(function () {
index ab5534dc4b359ac7800d3ffd02ee4ca4e85ffd4a..6feda9e3c89af7596347f466f75f2f361206f611 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_update_successCallback_invalid_cb</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_update_successCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onsuccess) was passed into update method
+//==== LABEL Check if an exception was thrown when a fake callback (onsuccess) was passed into update method
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:update M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_update_successCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, rowDataUpdate,
     insertSuccess, insertError, invalidCallback;
 t.step(function () {
@@ -69,7 +69,7 @@ t.step(function () {
     };
 
     insertSuccess = t.step_func(function (reqId, insertRowId) {
-        assert_throws({name: "TypeMismatchError"}, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             globalDataControl.update(globalReqId, rowDataUpdate,
                 rowData.columns[0] + "=" + rowData.values[0], invalidCallback);
         }, "exception should be thrown");
index 577dd4570b0f786194ed93fb7801c91ff0e287ff..2f257406e0bd5ea55b2e06168863873c06fc9852 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_update_updateData_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SQLDataControlConsumer_update_updateData_TypeMismatch
-//==== LABEL check non-optional argument updateData (update method) type conversion
+//==== LABEL Check non-optional argument updateData (update method) type conversion
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:update M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
@@ -47,7 +47,7 @@ Authors:
 
 setup({timeout: 30000});
 
-var t = async_test("SQLDataControlConsumer_update_updateData_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
     updateSuccess, insertError, conversionTable = getTypeConversionExceptions("dictionary", false);
 t.step(function () {
index 0255e87e58d29d9bdc33cab08e13efaaa3e1c268..fababeccc7ddfaa2af2799e880b8fcf4f8d814de 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_update_without_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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";
index 7cfac14baeeae04d6ceb6d418de1db264cb3d16e..7384ec806a8e20ab886fc7bb495302bc8465dcb0 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SQLDataControlConsumer_update_without_successCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
 </head>
 
@@ -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 (file)
index 0000000..9f972c1
--- /dev/null
@@ -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('<script language="javascript" src="../resources/testharness.js"></script>\n');
+   }
+   if (head_src.search(/\/testharnessreport.js\W/) === -1) {
+       document.write('<script language="javascript" src="../resources/testharnessreport.js"></script>\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 (file)
index 9f972c1..0000000
+++ /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('<script language="javascript" src="../resources/testharness.js"></script>\n');
-   }
-   if (head_src.search(/\/testharnessreport.js\W/) === -1) {
-       document.write('<script language="javascript" src="../resources/testharnessreport.js"></script>\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;
-}
index 490e1a54284036924fbbfa59cec259f5e9983f73..1490ce3dd49a006df8bd80d340a3ba787298a7ba 100644 (file)
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check non-optional argument insertionData (insert method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_insertionData_TypeMismatch">
+      <testcase purpose="Check non-optional argument insertionData (insert method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_insertionData_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_insertionData_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check optional argument successCallback (insert method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_successCallback_TypeMismatch">
+      <testcase purpose="Check optional argument successCallback (insert method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check optional argument errorCallback (insert method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_errorCallback_TypeMismatch">
+      <testcase purpose="Check optional argument errorCallback (insert method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check non-optional argument updateData (update method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_updateData_TypeMismatch">
+      <testcase purpose="Check non-optional argument updateData (update method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_updateData_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_updateData_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check optional argument successCallback (update method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_successCallback_TypeMismatch">
+      <testcase purpose="Check optional argument successCallback (update method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check optional argument errorCallback (update method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_errorCallback_TypeMismatch">
+      <testcase purpose="Check optional argument errorCallback (update method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check optional argument successCallback (remove method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_remove_successCallback_TypeMismatch">
+      <testcase purpose="Check optional argument successCallback (remove method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_remove_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check optional argument errorCallback (remove method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_remove_errorCallback_TypeMismatch">
+      <testcase purpose="Check optional argument errorCallback (remove method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_remove_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check non-optional argument columns (select method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_columns_TypeMismatch">
+      <testcase purpose="Check non-optional argument columns (select method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_columns_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_columns_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check non-optional argument successCallback (select method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_successCallback_TypeMismatch">
+      <testcase purpose="Check non-optional argument successCallback (select method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check optional argument errorCallback (select method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_errorCallback_TypeMismatch">
+      <testcase purpose="Check optional argument errorCallback (select method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into insert method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_successCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into insert method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into insert method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_errorCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into insert method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into update method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_successCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into update method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into update method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_errorCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into update method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check optional argument errorCallback (updateValue method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch">
+      <testcase purpose="Check optional argument errorCallback (updateValue method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into updateValue method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="MappedDataControlConsumer_updateValue_errorCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into updateValue method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="MappedDataControlConsumer_updateValue_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check non-optional argument successCallback (updateValue method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="MappedDataControlConsumer_updateValue_successCallback_TypeMismatch">
+      <testcase purpose="Check non-optional argument successCallback (updateValue method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="MappedDataControlConsumer_updateValue_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into updateValue method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="MappedDataControlConsumer_updateValue_successCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into updateValue method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="MappedDataControlConsumer_updateValue_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into remove method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_remove_errorCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into remove method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_remove_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into remove method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_remove_successCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into remove method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_remove_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into select method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_errorCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into select method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into select method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_successCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into select method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_invalid_cb.html</test_script_entry>
         </description>
index e154ae2a3af7a0c77903b2aa2b23bab5cede86b1..4deb729609718f4414df251ca1023c5676af8cbb 100644 (file)
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_missarg.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check non-optional argument insertionData (insert method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_insertionData_TypeMismatch">
+      <testcase purpose="Check non-optional argument insertionData (insert method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_insertionData_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_insertionData_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check optional argument successCallback (insert method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_successCallback_TypeMismatch">
+      <testcase purpose="Check optional argument successCallback (insert method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check optional argument errorCallback (insert method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_errorCallback_TypeMismatch">
+      <testcase purpose="Check optional argument errorCallback (insert method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check non-optional argument updateData (update method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_updateData_TypeMismatch">
+      <testcase purpose="Check non-optional argument updateData (update method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_updateData_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_updateData_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check optional argument successCallback (update method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_successCallback_TypeMismatch">
+      <testcase purpose="Check optional argument successCallback (update method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check optional argument errorCallback (update method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_errorCallback_TypeMismatch">
+      <testcase purpose="Check optional argument errorCallback (update method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check optional argument successCallback (remove method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_remove_successCallback_TypeMismatch">
+      <testcase purpose="Check optional argument successCallback (remove method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_remove_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check optional argument errorCallback (remove method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_remove_errorCallback_TypeMismatch">
+      <testcase purpose="Check optional argument errorCallback (remove method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_remove_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check non-optional argument columns (select method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_columns_TypeMismatch">
+      <testcase purpose="Check non-optional argument columns (select method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_columns_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_columns_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check non-optional argument successCallback (select method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_successCallback_TypeMismatch">
+      <testcase purpose="Check non-optional argument successCallback (select method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check optional argument errorCallback (select method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_errorCallback_TypeMismatch">
+      <testcase purpose="Check optional argument errorCallback (select method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into insert method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_successCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into insert method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into insert method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_errorCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into insert method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into update method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_successCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into update method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into update method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_errorCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into update method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_successCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check optional argument errorCallback (updateValue method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch">
+      <testcase purpose="Check optional argument errorCallback (updateValue method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into updateValue method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="MappedDataControlConsumer_updateValue_errorCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into updateValue method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="MappedDataControlConsumer_updateValue_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check non-optional argument successCallback (updateValue method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="MappedDataControlConsumer_updateValue_successCallback_TypeMismatch">
+      <testcase purpose="Check non-optional argument successCallback (updateValue method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="MappedDataControlConsumer_updateValue_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into updateValue method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="MappedDataControlConsumer_updateValue_successCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into updateValue method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="MappedDataControlConsumer_updateValue_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into remove method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_remove_errorCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into remove method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_remove_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into remove method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_remove_successCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into remove method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_remove_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into select method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_errorCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into select method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_errorCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into select method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_successCallback_invalid_cb">
+      <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into select method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_invalid_cb.html</test_script_entry>
         </description>