[Datacontrol] clean up
authorAndrzej Krolikowski <a.krolikowsk@samsung.com>
Thu, 19 Sep 2013 07:47:02 +0000 (09:47 +0200)
committerAndrzej Krolikowski <a.krolikowsk@samsung.com>
Thu, 19 Sep 2013 07:47:02 +0000 (09:47 +0200)
Change-Id: I08d9977259e42c6fdcb0a6615c6f73f63258d1a7

102 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/datacontrol_common.js
tct-datacontrol-tizen-tests/tests.full.xml
tct-datacontrol-tizen-tests/tests.xml

index cf5ed1d95f8dee12b28e381f3254442a16efac0b..2f11e93c911d3be5813df5ee0bf5e1b90d3b2d79 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlConsumerObject_dataId_attribute</title>
 <meta charset="utf-8"/>
@@ -33,7 +33,7 @@ Authors:
 //==== TEST: DataControlConsumerObject_dataId_attribute
 //==== LABEL Check if attribute dataId of DataControlConsumerObject exists, has type DOMString and is readonly
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlConsumerObject:dataId A
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA AE AT ARO
 
 test(function () {
@@ -42,6 +42,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");
+
 </script>
 </body>
 </html>
index f900cd4e342f223598848d955ec9b681b6cd87b9..7d32f13680fd863f386674e2c7e7812684fcf630 100644 (file)
@@ -16,14 +16,15 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlConsumerObject_extend</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script src="support/datacontrol_common.js"></script>
 </head>
 
 <body>
@@ -33,14 +34,14 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Test whether the object DataControlConsumerObject can have new properties added.
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlConsumerObject:DataControlConsumerObject U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA OBX
 
 test(function () {
-    var globalDataControl = tizen.datacontrol.getDataControlConsumer(
-        "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "SQL");
+    var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
     check_extensibility(globalDataControl);
 }, "DataControlConsumerObject_extend");
+
 </script>
 </body>
 </html>
index a2a4ce0b9e142523d9b6cbddf5841dddba993a6a..78a005321148266aafbc29beb7ac15290310b325 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlConsumerObject_notexist</title>
 <meta charset="utf-8"/>
@@ -33,13 +33,12 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Check if interface DataControlConsumerObject exists, it should not.
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlConsumerObject:DataControlConsumerObject U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA NIO
 
 test(function () {
     check_no_interface_object("DataControlConsumerObject");
 }, "DataControlConsumerObject_notexist");
-// Check if interface DataControlConsumerObject exists, it should not.
 
 </script>
 </body>
index c1df9db2a37f3e08c1e099135cca39d2d4e7f812..6a963451697d3dc026f989f4f22a0f0be53affda 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlConsumerObject_providerId_attribute</title>
 <meta charset="utf-8"/>
@@ -33,7 +33,7 @@ Authors:
 //==== TEST: DataControlConsumerObject_providerId_attribute
 //==== LABEL Check if attribute providerId of DataControlConsumerObject exists, has type DOMString and is readonly
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlConsumerObject:providerId A
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA AE AT ARO
 
 test(function () {
index d42c5e486d86dc3fb7e4d5eaed22e1cec4f2f0b1..6f75ce69faed2f42b02895189c9624182392bd1c 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlConsumerObject_type_attribute</title>
 <meta charset="utf-8"/>
@@ -33,7 +33,7 @@ Authors:
 //==== TEST: DataControlConsumerObject_type_attribute
 //==== LABEL Check if attribute type of DataControlConsumerObject exists, has type DataType and is readonly
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlConsumerObject:type A
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA AE AT ARO
 
 test(function () {
index 520c2f1b8c1eab7cc42de6f72e41f9c5fdc37753..2302cb4243547c0d5af0a2982c4138139116aec6 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlErrorCallback_notexist</title>
 <meta charset="utf-8"/>
@@ -33,13 +33,12 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Check if interface DataControlErrorCallback exists, it should not.
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlErrorCallback:DataControlErrorCallback U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA CBNIO
 
 test(function () {
     check_no_interface_object("DataControlErrorCallback");
 }, "DataControlErrorCallback_notexist");
-// Check if interface DataControlErrorCallback exists, it should not.
 
 </script>
 </body>
index b0fd396fb6837ffe15310d210912c83d7a85c13f..4f90be352f676ea89a81d9b00490147a136f6060 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlGetValueSuccessCallback_notexist</title>
 <meta charset="utf-8"/>
@@ -33,13 +33,12 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Check if interface DataControlGetValueSuccessCallback exists, it should not.
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlGetValueSuccessCallback:DataControlGetValueSuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA CBNIO
 
 test(function () {
     check_no_interface_object("DataControlGetValueSuccessCallback");
 }, "DataControlGetValueSuccessCallback_notexist");
-// Check if interface DataControlGetValueSuccessCallback exists, it should not.
 
 </script>
 </body>
index dee93fffd3c5a5c860dbaf6333e6fbf92871406c..e5dae2451b974bc2f32744c4989594b2c2a511dc 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlGetValueSuccessCallback_onsuccess</title>
 <meta charset="utf-8"/>
@@ -35,7 +35,7 @@ Authors:
 //==== LABEL Check if callback is called and if its arguments have proper type - DataControlGetValueSuccessCallback.onsuccess
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlGetValueSuccessCallback:onsuccess U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA CBOA CBT
 
 setup({timeout: 30000});
@@ -47,7 +47,7 @@ var t = async_test("DataControlGetValueSuccessCallback_onsuccess", {timeout: 300
 
 t.step(function () {
     getSuccess = t.step_func(function (values, reqId) {
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         assert_type(values, "array", "Not an array");
         assert_equals(values.length, 1, "Incorrect number of values");
         assert_equals(values[0], value, "Incorrect value");
@@ -59,7 +59,7 @@ t.step(function () {
     });
 
     addSuccess = t.step_func(function (reqId) {
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         globalReqId++;
         globalDataControl.getValue(globalReqId, key, getSuccess, getError);
     });
@@ -72,7 +72,6 @@ t.step(function () {
     globalDataControl.addValue(globalReqId, key, value, addSuccess, addError);
 });
 
-
 </script>
 </body>
 </html>
index 5dea331f5e9e8ea45b49401dc21f71179c4860da..69d52024319b295cfbedf26222ab03a922ad4ec9 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlInsertSuccessCallback_notexist</title>
 <meta charset="utf-8"/>
@@ -33,13 +33,12 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Check if interface DataControlInsertSuccessCallback exists, it should not.
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlInsertSuccessCallback:DataControlInsertSuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA CBNIO
 
 test(function () {
     check_no_interface_object("DataControlInsertSuccessCallback");
 }, "DataControlInsertSuccessCallback_notexist");
-// Check if interface DataControlInsertSuccessCallback exists, it should not.
 
 </script>
 </body>
index 44f93cde881b811fefee7ce607d5325a0f94d6ae..0dda8d88777e8f03b1c822fcac3b74f0938a7a64 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlInsertSuccessCallback_onsuccess</title>
 <meta charset="utf-8"/>
@@ -34,7 +34,7 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Check if callback is called and if its arguments have proper type - DataControlInsertSuccessCallback
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlInsertSuccessCallback:onsuccess U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA CBOA CBT
 
@@ -50,7 +50,7 @@ t.step(function () {
     };
 
     insertSuccess = t.step_func(function (reqId, insertRowId) {
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         assert_type(insertRowId, "number", "insertRowId is not a number.");
         t.done();
     });
index b26dd043ee198fc2fc5e0e11fd27100554e754df..32c2afddffc4f45249023f98658437f376ed2d14 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlManagerObject_notexist</title>
 <meta charset="utf-8"/>
@@ -33,13 +33,12 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Check if interface DataControlManagerObject exists, it should not.
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlManagerObject:DataControlManagerObject U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA NIO
 
 test(function () {
     check_no_interface_object("DataControlManagerObject");
 }, "DataControlManagerObject_notexist");
-// Check if interface DataControlManagerObject exists, it should not.
 
 </script>
 </body>
index 58443147ae12b0435a98d64c5c5d50974520dde6..104224534d3dd80f053d49aa0894e9f499e00c5c 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlManager_extend</title>
 <meta charset="utf-8"/>
@@ -33,13 +33,12 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Test whether the object DataControlManager can have new properties added.
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlManager:DataControlManager U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA OBX
 
 test(function () {
     check_extensibility(tizen.datacontrol);
 }, "DataControlManager_extend");
-// Test whether the object SQLDataControlConsumer can have new properties added.
 
 </script>
 </body>
index 20e88b1f4b03064364cbe3363bbd3a974f10eca9..13b4aa246f3d361160f82abd497fd9f5c40b6e3d 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlManager_getDataControlConsumer_MAP</title>
 <meta charset="utf-8"/>
@@ -33,22 +33,21 @@ Authors:
 //==== TEST: DataControlManager_getDataControlConsumer_MAP
 //==== LABEL Check DataControlManager.getDataControlConsumer returns valid object - MAP
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlManager:getDataControlConsumer M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA MMINA MR
 
 test(function () {
-    var globalDataControl;
-    globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
+    var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
 
     assert_type(globalDataControl, "object", "Not an object");
     assert_equals(globalDataControl.type, TYPE_MAP, "Incorrect type");
     assert_equals(globalDataControl.providerId, PROVIDER_ID, "Incorrect providerId");
     assert_equals(globalDataControl.dataId, DATA_ID, "Incorrect dataId");
 
-    assert_type(globalDataControl.addValue, "function", "addValue is a function");
-    assert_type(globalDataControl.removeValue, "function", "removeValue is a function");
-    assert_type(globalDataControl.getValue, "function", "getValue is a function");
-    assert_type(globalDataControl.updateValue, "function", "updateValue is a function");
+    assert_type(globalDataControl.addValue, "function", "addValue is not a function");
+    assert_type(globalDataControl.removeValue, "function", "removeValue is not a function");
+    assert_type(globalDataControl.getValue, "function", "getValue is not a function");
+    assert_type(globalDataControl.updateValue, "function", "updateValue is not a function");
 
 }, "DataControlManager_getDataControlConsumer_MAP");
 
index 50193458800425196078d345529233fb8bd2be6c..fda3dc4aa898bb056d2a89e530638fa1e94294a9 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlManager_getDataControlConsumer_SQL</title>
 <meta charset="utf-8"/>
@@ -33,7 +33,7 @@ Authors:
 //==== TEST: DataControlManager_getDataControlConsumer_SQL
 //==== LABEL Check DataControlManager.getDataControlConsumer returns valid object - SQL
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlManager:getDataControlConsumer M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA MMINA MR
 
 test(function () {
@@ -45,10 +45,10 @@ test(function () {
     assert_equals(globalDataControl.providerId, PROVIDER_ID, "Incorrect providerId");
     assert_equals(globalDataControl.dataId, DATA_ID, "Incorrect dataId");
 
-    assert_type(globalDataControl.insert, "function", "insert is a function");
-    assert_type(globalDataControl.update, "function", "update is a function");
-    assert_type(globalDataControl.remove, "function", "remove is a function");
-    assert_type(globalDataControl.select, "function", "select is a function");
+    assert_type(globalDataControl.insert, "function", "insert is not a function");
+    assert_type(globalDataControl.update, "function", "update is not a function");
+    assert_type(globalDataControl.remove, "function", "remove is not a function");
+    assert_type(globalDataControl.select, "function", "select is not a function");
 
 }, "DataControlManager_getDataControlConsumer_SQL");
 
index ca1ec0fdd75ac8e8e4cecfda748d4c71362465a3..a2ebf51a4780a596e60f2c57860bf1053499311c 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlManager_getDataControlConsumer_exist</title>
 <meta charset="utf-8"/>
@@ -32,7 +32,7 @@ Authors:
 //==== TEST: DataControlManager_getDataControlConsumer_exist
 //==== LABEL Check if method getDataControlConsumer of DataControlManager exists
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlManager:getDataControlConsumer M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA ME
 
 test(function () {
index 5b7cd95095f27c5087ba245cc2027250c7c38f7f..5a0a4cec721944c664bcffa64b27dc596a3b2713 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlManager_getDataControlConsumer_missarg</title>
 <meta charset="utf-8"/>
@@ -33,20 +33,18 @@ Authors:
 //==== TEST: DataControlManager_getDataControlConsumer_missarg
 //==== LABEL Check with missing non-optional argument - getDataControlConsumer
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlManager:getDataControlConsumer M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA MMA
 
 test(function () {
     var exceptionName = "TypeMismatchError";
 
-    assert_throws({name : exceptionName},
-            function () {
-                tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID);
-            }, exceptionName + " should be thrown - missing type .");
+    assert_throws({name : exceptionName}, function () {
+        tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID);
+    }, exceptionName + " should be thrown - missing type");
 
 }, "DataControlManager_getDataControlConsumer_missarg");
 
-
 </script>
 </body>
 </html>
index d49ba95c4e4012fa3bd5cf9f3f566bfe984f8b65..69f914f7c7ac0686b66f3430e4a865eb73ccb398 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlManager_getDataControlConsumer_type_TypeMismatch</title>
 <meta charset="utf-8"/>
@@ -34,7 +34,7 @@ Authors:
 //==== LABEL Check argument type conversions exception - getDataControlConsumer
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlManager:getDataControlConsumer M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA MC
 
 test(function () {
@@ -46,15 +46,13 @@ test(function () {
         invalidType  = conversionTable[i][0];
         exceptionName = conversionTable[i][1];
 
-        assert_throws({name : exceptionName},
-            function () {
-                tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, invalidType);
-            }, exceptionName + " should be thrown - missing success callback .");
+        assert_throws({name : exceptionName}, function () {
+            tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, invalidType);
+        }, exceptionName + " should be thrown - missing success callback");
     }
 
 }, "DataControlManager_getDataControlConsumer_type_TypeMismatch");
 
-
 </script>
 </body>
 </html>
index 1a4da51d3fd3cf39bcdf9bf5b043170fd487537b..33ac88c2662267860beb1b743271bcd113ef9b30 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlManager_in_tizen</title>
 <meta charset="utf-8"/>
@@ -31,15 +31,16 @@ Authors:
 <script>
 //==== TEST: DataControlManager_in_tizen
 //==== PRIORITY P3
-//==== LABEL Check if package exists in tizen.
+//==== LABEL Check if datacontrol exists in tizen.
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlManager:DataControlManager U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA OBME
 
-test(function() {
+test(function () {
     assert_true("datacontrol" in tizen, "No datacontrol in tizen.");
     check_readonly(tizen, "datacontrol", tizen.datacontrol, "object", "dummyValue");
 }, "DataControlManager_in_tizen");
+
 </script>
 </body>
 </html>
index 6b20148b098d3020baacd331341d13035242b066..fa5dda730377f8668dd9209fdb2ae58b0485840f 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlManager_notexist</title>
 <meta charset="utf-8"/>
@@ -33,13 +33,12 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Check if interface DataControlManager exists, it should not.
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlManager:DataControlManager U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA NIO
 
 test(function () {
     check_no_interface_object("DataControlManager");
 }, "DataControlManager_notexist");
-// Check if interface DataControlManager exists, it should not.
 
 </script>
 </body>
index 5d1f64375b2301c88c981f0d9e8f1c1fd3e5629c..6113a4eb300671c5f96ea5866232d0c42d8117d2 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlSelectSuccessCallback_notexist</title>
 <meta charset="utf-8"/>
@@ -33,13 +33,12 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Check if interface DataControlSelectSuccessCallback exists, it should not.
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlSelectSuccessCallback:DataControlSelectSuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA CBNIO
 
 test(function () {
     check_no_interface_object("DataControlSelectSuccessCallback");
 }, "DataControlSelectSuccessCallback_notexist");
-// Check if interface DataControlSelectSuccessCallback exists, it should not.
 
 </script>
 </body>
index f839f26539e9e8f2b3f651bdc63d0bd50c0d1c5e..cf7e01605a466c75d7676212322d1666205f6c00 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlSelectSuccessCallback_onsuccess</title>
 <meta charset="utf-8"/>
@@ -34,7 +34,7 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Check if callback is called and if its arguments have proper type - DataControlSelectSuccessCallback
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlSelectSuccessCallback:onsuccess U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA CBOA CBT
 
index 3c882f0a36b84f9fae6a14832ac62a6347f259fa..6d766cb82d5ed39039e9d0c26a5e33c50acee2c6 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlSuccessCallback_notexist</title>
 <meta charset="utf-8"/>
@@ -33,13 +33,12 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Check if interface DataControlSuccessCallback exists, it should not.
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlSuccessCallback:DataControlSuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA CBNIO
 
 test(function () {
     check_no_interface_object("DataControlSuccessCallback");
 }, "DataControlSuccessCallback_notexist");
-// Check if interface DataControlSuccessCallback exists, it should not.
 
 </script>
 </body>
index 8489dd63dc49c5305ef317fc31b20e767ad977e2..94da3077d039d8ab58410fa4200e966869e2c661 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlSuccessCallback_onsuccess_MAP</title>
 <meta charset="utf-8"/>
@@ -34,7 +34,7 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Check if callback is called and if its arguments have proper type - MAP
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlSuccessCallback:onsuccess U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA CBOA CBT
 
@@ -48,7 +48,7 @@ var t = async_test("DataControlSuccessCallback_onsuccess_MAP", {timeout: 30000})
 t.step(function () {
 
     addSuccess = t.step_func(function (reqId) {
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         t.done();
     });
 
index 46f785906f03b319cfd4747a64d6cc25eaaad265..620e42c059581c3400964ddaa74afec77a6f4357 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>DataControlSuccessCallback_onsuccess_SQL</title>
 <meta charset="utf-8"/>
@@ -34,7 +34,7 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Check if callback is called and if its arguments have proper type - SQL
 //==== SPEC Tizen Web API:TBD:Datacontrol:DataControlSuccessCallback:onsuccess U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA CBOA CBT
 
@@ -45,9 +45,9 @@ var t = async_test("DataControlSuccessCallback_onsuccess_SQL", {timeout: 30000})
 t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
 
     removeSuccess = t.step_func(function (reqId) {
index 73f93c012b72b2aacc60cb4cfe322939b2f8d8ca..2410a8ce7c917374deaa9a1a47ec2c3a9ecd24c4 100644 (file)
@@ -44,6 +44,7 @@ test(function () {
     assert_equals(returnedValue, undefined, "Incorrect returned value");
 
 });
+
 </script>
 </body>
 </html>
index a5401e919afddad7004be97aab921364194fbb53..7d96c4c84c26b656b0b4a8128cd046384075ba27 100644 (file)
@@ -46,7 +46,7 @@ var t = async_test("MappedDataControlConsumer_addValue_errorCallback_TypeMismatc
 
 t.step(function () {
     successCallback = t.step_func(function (reqId) {
-        assert_unreached("should not be here");
+        assert_unreached("addValue() success callback invoked");
     });
 
     conversionTable = getTypeConversionExceptions("functionObject", true);
@@ -55,14 +55,14 @@ t.step(function () {
         errorCallback = conversionTable[i][0];
         exceptionName = conversionTable[i][1];
 
-        assert_throws({name: exceptionName},
-            function () {
-                dataConsumer.addValue(globalReqId, currentDate, value, errorCallback);
-            }, exceptionName + " should be thrown. Given - " + errorCallback);
+        assert_throws({name: exceptionName}, function () {
+            dataConsumer.addValue(globalReqId, currentDate, value, errorCallback);
+        }, exceptionName + " should be thrown. Given - " + errorCallback);
     }
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index 2f91740bfbe1f1fb1595a03855b8b73618917bee..0474241c10873ac6f6ca7586d9b2f90a8ac561e7 100644 (file)
@@ -40,28 +40,28 @@ Authors:
 setup({timeout: 30000});
 
 var t = async_test("MappedDataControlConsumer_addValue_errorCallback_invalid_cb", {timeout: 30000}),
-    successCallback, errorCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
+    successCallback, invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
     dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP),
     currentDate = new Date().getTime().toString(), value = "samsung";
 
 t.step(function () {
     successCallback = t.step_func(function (reqId) {
-        assert_unreached("should not be here");
+        assert_unreached("addValue() success callback invoked");
     });
 
-    errorCallback = {
+    invalidCallback = {
         onerror: t.step_func(function (reqId, error) {
-            assert_unreached("should not be here");
+            assert_unreached("addValue() invalid error callback invoked");
         })
     };
 
-    assert_throws({name: exceptionName},
-        function () {
-            dataConsumer.addValue(globalReqId, currentDate, value, errorCallback);
-        }, exceptionName + " should be thrown.");
+    assert_throws({name: exceptionName}, function () {
+        dataConsumer.addValue(globalReqId, currentDate, value, successCallback, invalidCallback);
+    }, exceptionName + " should be thrown");
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index 83299ae57d5cf58e40f602adcbb361fdfa466016..dcf4865a284922b28378d2f90f85ac16d254403f 100644 (file)
@@ -16,14 +16,15 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>MappedDataControlConsumer_addValue_exist</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script src="support/datacontrol_common.js"></script>
 </head>
 
 <body>
@@ -32,12 +33,11 @@ Authors:
 //==== TEST: MappedDataControlConsumer_addValue_exist
 //==== LABEL Check if method addValue of MappedDataControlConsumer exists
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:addValue M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA ME
 
 test(function () {
-    var globalDataControl = tizen.datacontrol.getDataControlConsumer(
-        "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "MAP");
+    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");
index b6f710ab0c841355a8622e756c3a2e5c0aff3316..4860222755d51a26300e2aff713d3b03c7d55419 100644 (file)
@@ -53,6 +53,7 @@ test(function () {
             }, exceptionName + " should be thrown. Given - " + successCallback);
     }
 }, "MappedDataControlConsumer_addValue_successCallback_TypeMismatch");
+
 </script>
 </body>
 </html>
index 993673fc529018f459320f26c56de40b841ec956..41b73dd020edc3cb502a59f54bea96ec3cbfd939 100644 (file)
@@ -40,24 +40,25 @@ Authors:
 setup({timeout: 30000});
 
 var t = async_test("MappedDataControlConsumer_addValue_successCallback_invalid_cb", {timeout: 30000}),
-    successCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
+    invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
     dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP),
     currentDate = new Date().getTime().toString(), value = "samsung";
 
 t.step(function () {
-    successCallback = {
+    invalidCallback = {
         onsuccess: t.step_func(function (reqId) {
-            assert_unreached("should not be here");
+            assert_unreached("addValue() invalid success callback invoked");
         })
     };
 
     assert_throws({name: exceptionName},
         function () {
-            dataConsumer.addValue(globalReqId, currentDate, value, successCallback);
-        }, exceptionName + " should be thrown.");
+            dataConsumer.addValue(globalReqId, currentDate, value, invalidCallback);
+        }, exceptionName + " should be thrown");
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index c6ec89c9743cdf53a1668bd21fabf3c75aebd6b3..3063e74ace5d38ab97c7505f4b4981f6e95dff92 100644 (file)
@@ -39,14 +39,14 @@ setup({timeout: 30000});
 
 var t = async_test("MappedDataControlConsumer_addValue_with_errorCallback", {timeout: 30000}),
     getSuccessCallback, getErrorCallback, dataConsumer, globalReqId = generateGlobalReqId(),
-    currentDate = new Date().getTime().toString(), value = "samsung", returnedValue,
+    currentDate = new Date().getTime().toString(), value = "samsung", returnedValue = null,
     addSuccessCallback, addErrorCallback;
 
 t.step(function () {
     dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
 
     getSuccessCallback = t.step_func(function (values, reqId) {
-        assert_equals(values.length, 1, "value is not set");
+        assert_equals(values.length, 1, "Length is incorrect");
         assert_equals(values[0], value, "value is not set");
         t.done();
     });
@@ -68,6 +68,7 @@ t.step(function () {
 
     returnedValue = dataConsumer.addValue(globalReqId, currentDate, value, addSuccessCallback, addErrorCallback);
 });
+
 </script>
 </body>
 </html>
index af31b710896d8d51a37cd8f97fbd9c588075c839..772627c34a2713573d74ab199c81e2f7cd72b338 100644 (file)
@@ -39,13 +39,13 @@ setup({timeout: 30000});
 
 var t = async_test("MappedDataControlConsumer_addValue_with_successCallback", {timeout: 30000}),
     addSuccessCallback, getSuccessCallback, getErrorCallback, dataConsumer, globalReqId = generateGlobalReqId(),
-    currentDate = new Date().getTime().toString(), value = "samsung", returnedValue;
+    currentDate = new Date().getTime().toString(), value = "samsung", returnedValue = null;
 
 t.step(function () {
     dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
 
     getSuccessCallback = t.step_func(function (values, reqId) {
-        assert_equals(values.length, 1, "value is not set");
+        assert_equals(values.length, 1, "Length is incorrect");
         assert_equals(values[0], value, "value is not set");
         t.done();
     });
@@ -62,6 +62,7 @@ t.step(function () {
     });
     returnedValue = dataConsumer.addValue(globalReqId, currentDate, value, addSuccessCallback);
 });
+
 </script>
 </body>
 </html>
index d008c56423f44806f0765ee16e1ebfee3a39ec69..c6657b8b7a839c1143971a68f9cce9db67e411ff 100644 (file)
@@ -16,14 +16,15 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
-<title>SQLDataControlConsumer_extend</title>
+<title>MappedDataControlConsumer_extend</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script src="support/datacontrol_common.js"></script>
 </head>
 
 <body>
@@ -33,15 +34,13 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Test whether the object MappedDataControlConsumer can have new properties added.
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:MappedDataControlConsumer U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA OBX
 
 test(function () {
-    var globalDataControl = tizen.datacontrol.getDataControlConsumer(
-        "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "MAP");
+    var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
     check_extensibility(globalDataControl);
 }, "MappedDataControlConsumer_extend");
-// Test whether the object SQLDataControlConsumer can have new properties added.
 
 </script>
 </body>
index caaa994a59305911f65a8ca13a904e77671cb518..1c89b015e975067fe66e024ea9a06aa17f73a394 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>MappedDataControlConsumer_getValue</title>
 <meta charset="utf-8"/>
@@ -33,7 +33,7 @@ Authors:
 //==== TEST: MappedDataControlConsumer_getValue
 //==== LABEL Check MappedDataControlConsumer.getValue method
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:getValue M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MOA MR
 setup({timeout: 30000});
@@ -41,12 +41,12 @@ setup({timeout: 30000});
 var t = async_test("MappedDataControlConsumer_getValue", {timeout: 30000}),
     globalDataControl, globalReqId = generateGlobalReqId(),
     currentDate = new Date().getTime().toString(), key =  currentDate, value = currentDate + "value",
-    getSuccess, getError, addSuccess, addError, returnedValue;
+    getSuccess, getError, addSuccess, addError, returnedValue = null;
 
 t.step(function () {
     getSuccess = t.step_func(function (values, reqId) {
         assert_equals(returnedValue, undefined, "Incorrect returned value");
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         assert_type(values, "array", "Not an array");
         assert_equals(values.length, 1, "Incorrect number of values");
         assert_equals(values[0], value, "Incorrect value");
@@ -58,7 +58,7 @@ t.step(function () {
     });
 
     addSuccess = t.step_func(function (reqId) {
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         globalReqId++;
         returnedValue = globalDataControl.getValue(globalReqId, key, getSuccess, getError);
     });
@@ -70,6 +70,7 @@ t.step(function () {
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
     globalDataControl.addValue(globalReqId, key, value, addSuccess, addError);
 });
+
 </script>
 </body>
 </html>
index a25a5b8d97b0e2334ce06fbd0a07d38ceffd6c7c..afdf9d61de7750a3dca67f5e835f94746017fd85 100644 (file)
@@ -46,7 +46,7 @@ var t = async_test("MappedDataControlConsumer_getValue_errorCallback_TypeMismatc
 
 t.step(function () {
     successCallback = t.step_func(function (values, reqId) {
-        assert_unreached("should not be here");
+        assert_unreached("getValue() success callback invoked");
     });
 
     conversionTable = getTypeConversionExceptions("functionObject", true);
@@ -57,12 +57,13 @@ t.step(function () {
 
         assert_throws({name: exceptionName},
             function () {
-                dataConsumer.getValue(globalReqId, currentDate, errorCallback);
+                dataConsumer.getValue(globalReqId, currentDate, successCallback, errorCallback);
             }, exceptionName + " should be thrown. Given - " + errorCallback);
     }
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index f4a5938799b56278fd080cf3b05782f7a141fb2d..b9c64260ddaccf0f43aa1247a971a7fdc5bec79d 100644 (file)
@@ -40,28 +40,29 @@ Authors:
 setup({timeout: 30000});
 
 var t = async_test("MappedDataControlConsumer_getValue_errorCallback_invalid_cb", {timeout: 30000}),
-    successCallback, errorCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
+    successCallback, invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
     dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP),
-    currentDate = new Date().getTime().toString(), value = "samsung";
+    currentDate = new Date().getTime().toString();
 
 t.step(function () {
     successCallback = t.step_func(function (values, reqId) {
-        assert_unreached("should not be here");
+        assert_unreached("getValue() success callback invoked");
     });
 
-    errorCallback = {
+    invalidCallback = {
         onerror: t.step_func(function (reqId, error) {
-            assert_unreached("should not be here");
+            assert_unreached("getValue() invalid error callback invoked");
         })
     };
 
     assert_throws({name: exceptionName},
         function () {
-            dataConsumer.getValue(globalReqId, currentDate, value, errorCallback);
+            dataConsumer.getValue(globalReqId, currentDate, successCallback, invalidCallback);
         }, exceptionName + " should be thrown.");
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index 38bd9467f96f0679cce3838ac755f6bccc947268..c10c8e8b2fc070637f74a9489679eefa38149fbb 100644 (file)
@@ -16,14 +16,15 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>MappedDataControlConsumer_getValue_exist</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script src="support/datacontrol_common.js"></script>
 </head>
 
 <body>
@@ -32,12 +33,11 @@ Authors:
 //==== TEST: MappedDataControlConsumer_getValue_exist
 //==== LABEL Check if method getValue of MappedDataControlConsumer exists
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:getValue M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA ME
 
 test(function () {
-    var globalDataControl = tizen.datacontrol.getDataControlConsumer(
-        "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "MAP");
+    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");
index b5f441d2d196ddd649b3e1685165433162f97d1d..6db5a0955429417e8f91ab80b5221f53d2221b39 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>MappedDataControlConsumer_getValue_missarg</title>
 <meta charset="utf-8"/>
@@ -34,7 +34,7 @@ Authors:
 //==== LABEL Check with missing non-optional argument - MappedDataControlConsumer.getValue
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:getValue M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA MMA
 
 setup({timeout: 30000});
@@ -49,10 +49,9 @@ t.step(function () {
     addSuccess = t.step_func(function (reqId) {
         assert_equals(reqId, globalReqId, "incorrect request id");
         globalReqId++;
-            assert_throws({name : exceptionName},
-            function () {
-                globalDataControl.getValue(globalReqId, key);
-            }, exceptionName + " should be thrown - missing success callback");
+        assert_throws({name : exceptionName}, function () {
+            globalDataControl.getValue(globalReqId, key);
+        }, exceptionName + " should be thrown - missing success callback");
         t.done();
     });
 
index c583192c6873815febb04dd2ad54075b41d58d1e..3f2079f91312320741751121796ee8c7d24e9554 100644 (file)
@@ -52,6 +52,7 @@ test(function () {
             }, exceptionName + " should be thrown. Given - " + successCallback);
     }
 }, "MappedDataControlConsumer_getValue_successCallback_TypeMismatch");
+
 </script>
 </body>
 </html>
index 00dc387aafe1cdba4cb605b6deae1196912dddee..21c0cfb7a517754782160b2caddb7544b1745927 100644 (file)
@@ -40,24 +40,24 @@ Authors:
 setup({timeout: 30000});
 
 var t = async_test("MappedDataControlConsumer_getValue_successCallback_invalid_cb", {timeout: 30000}),
-    successCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
+    invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
     dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP),
     currentDate = new Date().getTime().toString();
 
 t.step(function () {
-    successCallback = {
+    invalidCallback = {
         onsuccess: t.step_func(function (values, reqId) {
-            assert_unreached("should not be here");
+            assert_unreached("getValue() invalid success callback invoked");
         })
     };
 
-    assert_throws({name: exceptionName},
-        function () {
-            dataConsumer.getValue(globalReqId, currentDate, successCallback);
-        }, exceptionName + " should be thrown.");
+    assert_throws({name: exceptionName}, function () {
+        dataConsumer.getValue(globalReqId, currentDate, invalidCallback);
+    }, exceptionName + " should be thrown");
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index 8c3b17368da7f3f9295befcbf205708b99ff4901..61bbb60d7d8638eea604d18546ff7aaee3b79ff6 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>MappedDataControlConsumer_getValue_without_errorCallback</title>
 <meta charset="utf-8"/>
@@ -33,7 +33,7 @@ Authors:
 //==== TEST: MappedDataControlConsumer_getValue_without_errorCallback
 //==== LABEL Check MappedDataControlConsumer.getValue method without errorCallback
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:getValue M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MMINA MR
 setup({timeout: 30000});
@@ -41,12 +41,12 @@ setup({timeout: 30000});
 var t = async_test("MappedDataControlConsumer_getValue_without_errorCallback", {timeout: 30000}),
     globalDataControl, globalReqId = generateGlobalReqId(),
     currentDate = new Date().getTime().toString(), key =  currentDate, value = currentDate + "value",
-    getSuccess, addSuccess, addError, returnedValue;
+    getSuccess, addSuccess, addError, returnedValue = null;
 
 t.step(function () {
     getSuccess = t.step_func(function (values, reqId) {
         assert_equals(returnedValue, undefined, "Incorrect returned value");
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         assert_type(values, "array", "Not an array");
         assert_equals(values.length, 1, "Incorrect number of values");
         assert_equals(values[0], value, "Incorrect value");
@@ -54,7 +54,7 @@ t.step(function () {
     });
 
     addSuccess = t.step_func(function (reqId) {
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         globalReqId++;
         returnedValue = globalDataControl.getValue(globalReqId, key, getSuccess);
     });
@@ -66,6 +66,7 @@ t.step(function () {
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
     globalDataControl.addValue(globalReqId, key, value, addSuccess, addError);
 });
+
 </script>
 </body>
 </html>
index c2bfc0d51da4cd8312b6929d787c384cabce6f06..a7a6b0caca3489a951a4e4798590ed87b2ae4be5 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>MappedDataControlConsumer_notexist</title>
 <meta charset="utf-8"/>
@@ -33,13 +33,12 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Check if interface MappedDataControlConsumer exists, it should not.
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:MappedDataControlConsumer U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA NIO
 
 test(function () {
     check_no_interface_object("MappedDataControlConsumer");
 }, "MappedDataControlConsumer_notexist");
-// Check if interface MappedDataControlConsumer exists, it should not.
 
 </script>
 </body>
index 5a78fa62c1605d3e62b6b9aa804de1364023563d..65c91d5e35d14cf952c05f7a41153fb2d577fe7d 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>MappedDataControlConsumer_removeValue</title>
 <meta charset="utf-8"/>
@@ -33,7 +33,7 @@ Authors:
 //==== TEST: MappedDataControlConsumer_removeValue
 //==== LABEL Check MappedDataControlConsumer.removeValue method
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:removeValue M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MR MOA MAST
 setup({timeout: 30000});
@@ -41,7 +41,7 @@ setup({timeout: 30000});
 var t = async_test("MappedDataControlConsumer_removeValue", {timeout: 30000}),
     globalDataControl, globalReqId = generateGlobalReqId(),
     currentDate = new Date().getTime().toString(), key =  currentDate, value = currentDate + "value",
-    getSuccess, getError, addSuccess, addError, removeSuccess, removeError, returnedValue;
+    getSuccess, getError, addSuccess, addError, removeSuccess, removeError, returnedValue = null;
 
 t.step(function () {
     getSuccess = t.step_func(function (values, reqId) {
@@ -49,14 +49,14 @@ t.step(function () {
     });
 
     getError = t.step_func(function (reqId, error) {
-        assert_equals(reqId, globalReqId, "incorrect request id.");
+        assert_equals(reqId, globalReqId, "Incorrect request id.");
         assert_equals(error.name, "NotFoundError", "incorrect exception name.");
         t.done();
     });
 
     removeSuccess = t.step_func(function (reqId) {
         assert_equals(returnedValue, undefined, "Incorrect returned value");
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         globalReqId++;
         globalDataControl.getValue(globalReqId, key, getSuccess, getError);
     });
@@ -66,7 +66,7 @@ t.step(function () {
     });
 
     addSuccess = t.step_func(function (reqId) {
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         globalReqId++;
         returnedValue = globalDataControl.removeValue(globalReqId, key, value, removeSuccess, removeError);
     });
index 672617b6d8fb175b480055111fe76895e8d1daaf..d8b73a80054bdca7f10d4be7ad4723012586af9c 100644 (file)
@@ -40,7 +40,7 @@ Authors:
 setup({timeout: 30000});
 
 var t = async_test("MappedDataControlConsumer_removeValue_errorCallback_invalid_cb", {timeout: 30000}),
-    successCallback, incorrectCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
+    successCallback, invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
     dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP),
     currentDate = new Date().getTime().toString(), value = "samsung";
 
@@ -49,19 +49,20 @@ t.step(function () {
         assert_unreached("removeValue() success callback invoked with reqId = " + reqId);
     });
 
-    incorrectCallback = {
-        onerror: t.step_func(function (reqId, error) {
-            assert_unreached("removeValue() error callback invoked: " + error.name + ": " + error.message);
+    invalidCallback = {
+        onerror: t.step_func(function () {
+            assert_unreached("removeValue() invalid error callback invoked");
         })
     };
 
     assert_throws({name: exceptionName},
         function () {
-            dataConsumer.removeValue(globalReqId, currentDate, value, successCallback, incorrectCallback);
+            dataConsumer.removeValue(globalReqId, currentDate, value, successCallback, invalidCallback);
         }, exceptionName + " should be thrown.");
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index 9a9a3167684ec504e1c709961d2276e6aca20a1a..4504f71f4f0fbb7555491cd5056d2359e9fca50e 100644 (file)
@@ -16,14 +16,15 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>MappedDataControlConsumer_removeValue_exist</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script src="support/datacontrol_common.js"></script>
 </head>
 
 <body>
@@ -32,12 +33,11 @@ Authors:
 //==== TEST: MappedDataControlConsumer_removeValue_exist
 //==== LABEL Check if method removeValue of MappedDataControlConsumer exists
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:removeValue M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA ME
 
 test(function () {
-    var globalDataControl = tizen.datacontrol.getDataControlConsumer(
-        "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "MAP");
+    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");
index 1a17b710db7dcd1f78ccf4e80863fa8570786b7c..d5d258e45d98e9f2ca1040e76a1b07b92a3cff44 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>MappedDataControlConsumer_removeValue_missarg</title>
 <meta charset="utf-8"/>
@@ -34,7 +34,7 @@ Authors:
 //==== LABEL Check with missing non-optional argument - MappedDataControlConsumer.removeValue
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:removeValue M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA MMA
 
 setup({timeout: 30000});
index c904716c1aa58f259ec58a1e433020dd1a1af347..5a1259bdc0f7cc242d266159c68ff69b3938e968 100644 (file)
@@ -53,6 +53,7 @@ test(function () {
             }, exceptionName + " should be thrown. Given - " + successCallback);
     }
 }, "MappedDataControlConsumer_removeValue_successCallback_TypeMismatch");
+
 </script>
 </body>
 </html>
index e52ae2d7b41961f6b619615822a312db0d643dcc..a2797ff3bc7c9ec055790cc2d09890674bfe158e 100644 (file)
@@ -40,24 +40,25 @@ Authors:
 setup({timeout: 30000});
 
 var t = async_test("MappedDataControlConsumer_removeValue_successCallback_invalid_cb", {timeout: 30000}),
-    successCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
+    invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
     dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP),
     currentDate = new Date().getTime().toString(), value = "samsung";
 
 t.step(function () {
-    successCallback = {
+    invalidCallback = {
         onsuccess: t.step_func(function (reqId) {
-            assert_unreached("should not be here");
+            assert_unreached("removeValue() invalid success callback invoked");
         })
     };
 
     assert_throws({name: exceptionName},
         function () {
-            dataConsumer.removeValue(globalReqId, currentDate, value, successCallback);
+            dataConsumer.removeValue(globalReqId, currentDate, value, invalidCallback);
         }, exceptionName + " should be thrown.");
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index 42d9b885830028fadfd088301866a90105a07aa3..3dc7c157862e78dc13c7739881b2d0aaabf4bd8b 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>MappedDataControlConsumer_removeValue_without_errorCallback</title>
 <meta charset="utf-8"/>
@@ -33,7 +33,7 @@ Authors:
 //==== TEST: MappedDataControlConsumer_removeValue_without_errorCallback
 //==== LABEL Check MappedDataControlConsumer.removeValue method without errorCallback
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:removeValue M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MR MMINA MAST
 setup({timeout: 30000});
@@ -41,7 +41,7 @@ setup({timeout: 30000});
 var t = async_test("MappedDataControlConsumer_removeValue_without_errorCallback", {timeout: 30000}),
     globalDataControl, globalReqId = generateGlobalReqId(),
     currentDate = new Date().getTime().toString(), key =  currentDate, value = currentDate + "value",
-    getSuccess, getError, addSuccess, addError, removeSuccess, returnedValue;
+    getSuccess, getError, addSuccess, addError, removeSuccess, returnedValue = null;
 
 t.step(function () {
     getSuccess = t.step_func(function (values, reqId) {
@@ -56,13 +56,13 @@ t.step(function () {
 
     removeSuccess = t.step_func(function (reqId) {
         assert_equals(returnedValue, undefined, "Incorrect returned value");
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         globalReqId++;
         globalDataControl.getValue(globalReqId, key, getSuccess, getError);
     });
 
     addSuccess = t.step_func(function (reqId) {
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         globalReqId++;
         returnedValue = globalDataControl.removeValue(globalReqId, key, value, removeSuccess);
     });
@@ -74,6 +74,7 @@ t.step(function () {
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
     globalDataControl.addValue(globalReqId, key, value, addSuccess, addError);
 });
+
 </script>
 </body>
 </html>
index 0422d7aea0aa57d22bca1916ea500a55009ba91b..6d3e3088e4360f8785cec2d05d2a4526521b13b5 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>MappedDataControlConsumer_updateValue</title>
 <meta charset="utf-8"/>
@@ -33,7 +33,7 @@ Authors:
 //==== TEST: MappedDataControlConsumer_updateValue
 //==== LABEL Check MappedDataControlConsumer.updateValue method
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:updateValue M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MR MAST MOA
 setup({timeout: 30000});
@@ -42,11 +42,11 @@ var t = async_test("MappedDataControlConsumer_updateValue", {timeout: 30000}),
     globalDataControl, globalReqId = generateGlobalReqId(),
     currentDate = new Date().getTime().toString(), key =  currentDate, value = currentDate + "value",
     getSuccess, getError, addSuccess, addError, updatedValue = currentDate + "updatedValue",
-    updateSuccess, updateError, returnedValue;
+    updateSuccess, updateError, returnedValue = null;
 
 t.step(function () {
     getSuccess = t.step_func(function (values, reqId) {
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         assert_type(values, "array", "Not an array");
         assert_equals(values.length, 1, "Incorrect number of values");
         assert_equals(values[0], updatedValue, "Incorrect value");
@@ -59,7 +59,7 @@ t.step(function () {
 
     updateSuccess = t.step_func(function (reqId) {
         assert_equals(returnedValue, undefined, "Incorrect returned value");
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         globalReqId++;
         globalDataControl.getValue(globalReqId, key, getSuccess, getError);
     });
@@ -69,7 +69,7 @@ t.step(function () {
     });
 
     addSuccess = t.step_func(function (reqId) {
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         globalReqId++;
         returnedValue = globalDataControl.updateValue(globalReqId, key, value, updatedValue, updateSuccess, updateError);
     });
@@ -81,6 +81,7 @@ t.step(function () {
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
     globalDataControl.addValue(globalReqId, key, value, addSuccess, addError);
 });
+
 </script>
 </body>
 </html>
index b06c44c142e2b2c6d5be6bb34499b92fa095f5a3..0ad5c7fdb0de9f629172e300edb23c92124546b4 100644 (file)
@@ -24,10 +24,10 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
-<title>MappedDataControlConsumer_update_errorCallback_TypeMismatch</title>
+<title>MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch</title>
 <meta charset="utf-8">
 <script type="text/javascript" src="../resources/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
@@ -41,33 +41,33 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MC
 
 setup({timeout: 30000});
 
-var this_test = async_test("MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test("MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch", {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);
-this_test.step(function () {
+t.step(function () {
 
-    updateSuccess = this_test.step_func(function () {
-        assert_unreached("this function should not be used");
+    updateSuccess = t.step_func(function () {
+        assert_unreached("updateValue() success callback invoked");
     });
 
-    addSuccess = this_test.step_func(function () {
+    addSuccess = t.step_func(function () {
         for (i = 0; i < conversionTable.length; i++) {
             globalReqId++;
             assert_throws({name: conversionTable[i][1]}, function () {
                 globalDataControl.updateValue(globalReqId, key, value, updatedValue, updateSuccess, conversionTable[i][0]);
             }, "exception should be thrown. Given - " + conversionTable[i][0]);
         }
-        this_test.done();
+        t.done();
     });
 
-    addError = this_test.step_func(function (reqId, error) {
+    addError = t.step_func(function (reqId, error) {
         assert_unreached("addValue() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
index 291dd2c6cff3bf5e265619a3c55d1ac31efecc86..541dfc9750bcff825a0213bb8a2269d071cd83d3 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>MappedDataControlConsumer_updateValue_errorCallback_invalid_cb</title>
@@ -41,7 +41,7 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MTCB
 
@@ -49,22 +49,22 @@ setup({timeout: 30000});
 
 var t = async_test("MappedDataControlConsumer_updateValue_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), updateSuccess, updatedValue = currentDate + "updatedValue",
-    key =  currentDate, value = currentDate + "value", addSuccess, addError, updateError, updateErrorFunc;
+    key =  currentDate, value = currentDate + "value", addSuccess, addError, invalidCallback;
 t.step(function () {
 
-    updateError = t.step_func(function (reqId, error) {
-        assert_unreached("updateValue() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
-    });
-
-    updateError = {onerror: updateErrorFunc};
+    invalidCallback = {
+        onerror: t.step_func(function (reqId, error) {
+            assert_unreached("updateValue() invalid error callback invoked");
+        })
+    };
 
     updateSuccess = t.step_func(function () {
-        assert_unreached("this function should not be used");
+        assert_unreached("updateValue() success callback invoked");
     });
 
     addSuccess = t.step_func(function () {
         assert_throws({name: "TypeMismatchError"}, function () {
-            globalDataControl.updateValue(globalReqId, key, value, updatedValue, updateSuccess, updateError);
+            globalDataControl.updateValue(globalReqId, key, value, updatedValue, updateSuccess, invalidCallback);
         }, "exception should be thrown");
         t.done();
     });
index 12619364b945e2523fc1a7c5e971a9fa95830e8f..d49262229aa4a0c7fc71e0fe25fe99f8fa568349 100644 (file)
@@ -16,14 +16,15 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>MappedDataControlConsumer_updateValue_exist</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script src="support/datacontrol_common.js"></script>
 </head>
 
 <body>
@@ -32,12 +33,11 @@ Authors:
 //==== TEST: MappedDataControlConsumer_updateValue_exist
 //==== LABEL Check if method updateValue of MappedDataControlConsumer exists
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:updateValue M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA ME
 
 test(function () {
-    var globalDataControl = tizen.datacontrol.getDataControlConsumer(
-        "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "MAP");
+    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");
index b3d6a234026fbb941da30913474f4d57ac10181e..fe56004bf9987e69f247ad66d01afea38d1834ed 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>MappedDataControlConsumer_updateValue_missarg</title>
 <meta charset="utf-8"/>
@@ -34,7 +34,7 @@ Authors:
 //==== LABEL Check with missing non-optional argument - MappedDataControlConsumer_updateValue
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:updateValue M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA MMA
 
 setup({timeout: 30000});
@@ -52,7 +52,7 @@ t.step(function () {
         assert_throws({name : exceptionName},
             function () {
                 globalDataControl.updateValue(globalReqId, key, value, updatedValue);
-            }, exceptionName + " should be thrown - missing success callback.");
+            }, exceptionName + " should be thrown - missing success callback");
         t.done();
     });
 
index 5b6a7214c2d1a727592288f42299e7010431b68d..a86446f41d6903cfedcec6f4b995633ea4c24200 100644 (file)
@@ -24,10 +24,10 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
-<title>MappedDataControlConsumer_update_successCallback_TypeMismatch</title>
+<title>MappedDataControlConsumer_updateValue_successCallback_TypeMismatch</title>
 <meta charset="utf-8">
 <script type="text/javascript" src="../resources/unitcommon.js"></script>
 <script src="support/datacontrol_common.js"></script>
@@ -41,28 +41,28 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MC
 
 setup({timeout: 30000});
 
-var this_test = async_test("MappedDataControlConsumer_updateValue_successCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test("MappedDataControlConsumer_updateValue_successCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), updatedValue = currentDate + "updatedValue",
     key =  currentDate, value = currentDate + "value", addSuccess, addError, conversionTable = getTypeConversionExceptions("functionObject");
-this_test.step(function () {
+t.step(function () {
 
-    addSuccess = this_test.step_func(function () {
+    addSuccess = t.step_func(function () {
         for (i = 0; i < conversionTable.length; i++) {
             globalReqId++;
             assert_throws({name: conversionTable[i][1]}, function () {
                 globalDataControl.updateValue(globalReqId, key, value, updatedValue, conversionTable[i][0]);
             }, "exception should be thrown. Given - " + conversionTable[i][0]);
         }
-        this_test.done();
+        t.done();
     });
 
-    addError = this_test.step_func(function (reqId, error) {
+    addError = t.step_func(function (reqId, error) {
         assert_unreached("addValue() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
index 068545ac0d182c0ed3bf0e27d617fdea06c74bdf..0949cb19e4c38d8004be007e81ec437adc9b9e42 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>MappedDataControlConsumer_updateValue_successCallback_invalid_cb</title>
@@ -41,31 +41,31 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MTCB
 
 setup({timeout: 30000});
 
-var this_test = async_test("MappedDataControlConsumer_updateValue_successCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test("MappedDataControlConsumer_updateValue_successCallback_invalid_cb", {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), updatedValue = currentDate + "updatedValue",
-    key =  currentDate, value = currentDate + "value", addSuccess, addError, updateSuccess, updateSuccessFunc;
-this_test.step(function () {
+    key =  currentDate, value = currentDate + "value", addSuccess, addError, invalidCallback;
+t.step(function () {
 
-    updateSuccessFunc = this_test.step_func(function () {
-        assert_unreached("this function should not be used");
-    });
-
-    updateSuccess = {onsuccess: updateSuccessFunc};
+    invalidCallback = {
+        onsuccess: t.step_func(function () {
+            assert_unreached("Invalid success callback invoked");
+        })
+    };
 
-    addSuccess = this_test.step_func(function () {
+    addSuccess = t.step_func(function () {
         assert_throws({name: "TypeMismatchError"}, function () {
-            globalDataControl.updateValue(globalReqId, key, value, updatedValue, updateSuccess);
+            globalDataControl.updateValue(globalReqId, key, value, updatedValue, invalidCallback);
         }, "exception should be thrown");
-        this_test.done();
+        t.done();
     });
 
-    addError = this_test.step_func(function (reqId, error) {
+    addError = t.step_func(function (reqId, error) {
         assert_unreached("addValue() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
index f0e8883af7fd70ff84cb64f9061f6a30ff536064..ddcdd75bf9a5866f8599db9067dcbb1b598455c7 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>MappedDataControlConsumer_updateValue_without_errorCallback</title>
 <meta charset="utf-8"/>
@@ -33,7 +33,7 @@ Authors:
 //==== TEST: MappedDataControlConsumer_updateValue_without_errorCallback
 //==== LABEL Check MappedDataControlConsumer.updateValue method without errorCallback
 //==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:updateValue M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MR MAST MMINA
 setup({timeout: 30000});
@@ -42,11 +42,11 @@ var t = async_test("MappedDataControlConsumer_updateValue_without_errorCallback"
     globalDataControl, globalReqId = generateGlobalReqId(),
     currentDate = new Date().getTime().toString(), key =  currentDate, value = currentDate + "value",
     getSuccess, getError, addSuccess, addError, updatedValue = currentDate + "updatedValue",
-    updateSuccess, returnedValue;
+    updateSuccess, returnedValue = null;
 
 t.step(function () {
     getSuccess = t.step_func(function (values, reqId) {
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         assert_type(values, "array", "Not an array");
         assert_equals(values.length, 1, "Incorrect number of values");
         assert_equals(values[0], updatedValue, "Incorrect value");
@@ -59,13 +59,13 @@ t.step(function () {
 
     updateSuccess = t.step_func(function (reqId) {
         assert_equals(returnedValue, undefined, "Incorrect returned value");
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         globalReqId++;
         globalDataControl.getValue(globalReqId, key, getSuccess, getError);
     });
 
     addSuccess = t.step_func(function (reqId) {
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         globalReqId++;
         returnedValue = globalDataControl.updateValue(globalReqId, key, value, updatedValue, updateSuccess);
     });
@@ -77,6 +77,7 @@ t.step(function () {
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
     globalDataControl.addValue(globalReqId, key, value, addSuccess, addError);
 });
+
 </script>
 </body>
 </html>
index d357aec5b164da688403bae8ff10ac3caa812d5c..903aea47de945cde606432c966618a5cd8b8a218 100644 (file)
@@ -16,14 +16,15 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_extend</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script src="support/datacontrol_common.js"></script>
 </head>
 
 <body>
@@ -33,15 +34,13 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Test whether the object SQLDataControlConsumer can have new properties added.
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:SQLDataControlConsumer U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA OBX
 
 test(function () {
-    var globalDataControl = tizen.datacontrol.getDataControlConsumer(
-        "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "SQL");
+    var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
     check_extensibility(globalDataControl);
 }, "SQLDataControlConsumer_extend");
-// Test whether the object SQLDataControlConsumer can have new properties added.
 
 </script>
 </body>
index 44c820e3b1392bfc3a31a5d271ed4985dbb5bfa1..a3759b7ccf2b61f4c359be97da90f11efb0ab39f 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_insert</title>
 <meta charset="utf-8"/>
@@ -33,20 +33,20 @@ Authors:
 //==== TEST: SQLDataControlConsumer_insert
 //==== LABEL Check SQLDataControlConsumer.insert method
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:insert M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MR MOA MAST
 setup({timeout: 30000});
 
 var t = async_test("SQLDataControlConsumer_insert", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
     currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, rowData,
-    returnedValue, descriptionToSet = currentDate + "_desc";
+    returnedValue = null, descriptionToSet = currentDate + "_desc";
 t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + descriptionToSet + "'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + descriptionToSet + "'"]
+    };
 
     selectSuccess = t.step_func(function (rows, reqId) {
         assert_equals(rows.length, 1, "Incorrect number of rows.");
index c3e0a20dd9b31c9b672818fdb16c5ff31196ade9..ab51ca0c8a23e670d2cbc4e632e09762b24085fc 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_insert_errorCallback_TypeMismatch</title>
@@ -41,24 +41,24 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MC
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_insert_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test("SQLDataControlConsumer_insert_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
     conversionTable = getTypeConversionExceptions("functionObject", true);
-this_test.step(function () {
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
-    insertSuccess = this_test.step_func(function () {
-        assert_unreached("this function should be used");
+    insertSuccess = t.step_func(function () {
+        assert_unreached("insert() success callback invoked");
     });
 
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
@@ -70,7 +70,7 @@ this_test.step(function () {
         globalReqId++;
     }
 
-    this_test.done();
+    t.done();
 
 });
 
index 21dbb62b77799544cfb8c8915667dc999de64b55..1bc04fe179a53fa68f578f7da27118e3fff50e21 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_insert_errorCallback_invalid_cb</title>
@@ -41,39 +41,39 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MTCB
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_insert_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test("SQLDataControlConsumer_insert_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
-    insertError, insertErrorFunc;
-this_test.step(function () {
+    invalidCallback;
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
-    insertSuccess = this_test.step_func(function () {
-        assert_unreached("this function should be used");
+    insertSuccess = t.step_func(function () {
+        assert_unreached("insert() success callback invoked");
     });
 
-    insertErrorFunc = this_test.step_func(function (reqId, error) {
-        assert_unreached("insert() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
-    });
-
-    insertError = {onerror: insertErrorFunc};
+    invalidCallback = {
+        onerror: t.step_func(function (reqId, error) {
+            assert_unreached("insert() invalid error callback invoked");
+        })
+    };
 
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
 
     assert_throws({name: "TypeMismatchError"}, function () {
-        globalDataControl.insert(globalReqId, rowData, insertSuccess, insertError);
+        globalDataControl.insert(globalReqId, rowData, insertSuccess, invalidCallback);
     }, "exception should be thrown");
 
-    this_test.done();
+    t.done();
 
 });
 
index 384c395b4aab9045ae5dccf7fe7a5a80feb2bc85..88e0bcba7db161a995593743600f7ab7a7d94e0c 100644 (file)
@@ -16,14 +16,15 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_insert_exist</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script src="support/datacontrol_common.js"></script>
 </head>
 
 <body>
@@ -32,12 +33,11 @@ Authors:
 //==== TEST: SQLDataControlConsumer_insert_exist
 //==== LABEL Check if method insert of SQLDataControlConsumer exists
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:insert M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA ME
 
 test(function () {
-    var globalDataControl = tizen.datacontrol.getDataControlConsumer(
-        "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "SQL");
+    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");
index 61662fc9dbfe72f4f8bab801fac687fa71831560..b8f795ed38889ec12306170637c456f3cf51f156 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_insert_insertionData_TypeMismatch</title>
@@ -41,18 +41,18 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MC
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_insert_insertionData_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test("SQLDataControlConsumer_insert_insertionData_TypeMismatch", {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), insertSuccess, conversionTable = getTypeConversionExceptions("dictionary", false);
-this_test.step(function () {
+t.step(function () {
 
-    insertSuccess = this_test.step_func(function () {
-        assert_unreached("this function should be used");
+    insertSuccess = t.step_func(function () {
+        assert_unreached("insert() success callback invoked");
     });
 
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
@@ -64,7 +64,7 @@ this_test.step(function () {
         globalReqId++;
     }
 
-    this_test.done();
+    t.done();
 
 });
 
index c81f69d5bf6519d81a238fd7bbf16ea1c1162fd7..5f7091a02f60e7f6b2ccab6364f6c70c8f5acdc0 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_insert_missarg</title>
 <meta charset="utf-8"/>
@@ -33,7 +33,7 @@ Authors:
 //==== TEST: SQLDataControlConsumer_insert_missarg
 //==== LABEL Check with missing non-optional argument - SQLDataControlConsumer.insert
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:insert M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA MMA
 
 test(function () {
index 7d10628c57ae7bfb886354263034f08f86b113e4..342501518d22b61c0948c69c85254e6c2138e605 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_insert_successCallback_TypeMismatch</title>
@@ -41,21 +41,21 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MC
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_insert_successCallback_TypeMismatch", {timeout: 30000}), i, rowData, globalDataControl,
+var t = async_test("SQLDataControlConsumer_insert_successCallback_TypeMismatch", {timeout: 30000}), i, rowData, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(),
     conversionTable = getTypeConversionExceptions("functionObject", true);
-this_test.step(function () {
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
 
@@ -66,7 +66,7 @@ this_test.step(function () {
         globalReqId++;
     }
 
-    this_test.done();
+    t.done();
 
 });
 
index 650a611a96996471fde3f06ac938f059a5275d18..87ddf8547f5750077eee4c6b66099442251a5279 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_insert_successCallback_invalid_cb</title>
@@ -41,34 +41,34 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MTCB
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_insert_successCallback_invalid_cb", {timeout: 30000}), rowData, globalDataControl,
-    globalReqId = generateGlobalReqId(), insertSuccess, insertSuccessFunc, currentDate = new Date().getTime().toString();
-this_test.step(function () {
+var t = async_test("SQLDataControlConsumer_insert_successCallback_invalid_cb", {timeout: 30000}), rowData, globalDataControl,
+    globalReqId = generateGlobalReqId(), invalidCallback, currentDate = new Date().getTime().toString();
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
-    insertSuccessFunc = this_test.step_func(function () {
-        assert_unreached("this function should be used");
-    });
-
-    insertSuccess = {onsuccess: insertSuccessFunc};
+    invalidCallback = {
+        onsuccess: t.step_func(function () {
+            assert_unreached("insert() invalid success callback invoked");
+        })
+    };
 
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
 
     assert_throws({name: "TypeMismatchError"}, function () {
-        globalDataControl.insert(globalReqId, rowData, insertSuccess);
+        globalDataControl.insert(globalReqId, rowData, invalidCallback);
     }, "exception should be thrown");
 
-    this_test.done();
+    t.done();
 
 });
 
index 41011bae8403c91bd060f927718a0ede164dcdc0..f58518380cb2c6978f8bd69fd7b2be13c71afa16 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_insert_without_errorCallback</title>
 <meta charset="utf-8"/>
@@ -33,20 +33,20 @@ Authors:
 //==== TEST: SQLDataControlConsumer_insert_without_errorCallback
 //==== LABEL Check SQLDataControlConsumer.insert method without errorCallback
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:insert M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MR MOA MAST
 setup({timeout: 30000});
 
 var t = async_test("SQLDataControlConsumer_insert_without_errorCallback", {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess,
-    selectSuccess, rowData, returnedValue, descriptionToSet = currentDate + "_desc";
+    selectSuccess, rowData, returnedValue = null, descriptionToSet = currentDate + "_desc";
 t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + descriptionToSet + "'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + descriptionToSet + "'"]
+    };
 
     selectSuccess = t.step_func(function (rows, reqId) {
         assert_equals(rows.length, 1, "Incorrect number of rows.");
index 138b68329cdde81b411faf6da5c3a4c07e91e26a..e42a2f52e919079c834b3e44b174852973912916 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_insert_without_successCallback</title>
 <meta charset="utf-8"/>
@@ -33,22 +33,23 @@ Authors:
 //==== TEST: SQLDataControlConsumer_insert_without_successCallback
 //==== LABEL Check SQLDataControlConsumer.insert method without successCallback
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:insert M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA MR MMINA
 test(function () {
     var globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(),
         rowData, returnedValue;
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
     returnedValue = globalDataControl.insert(globalReqId, rowData);
     assert_equals(returnedValue, undefined, "Incorrect returned value");
 
 }, "SQLDataControlConsumer_insert_without_successCallback");
+
 </script>
 </body>
 </html>
index 695731733fbe98b72091e58a995c60721c9698bd..496896a81a079c0ca47df5649dc0e84a4103ee6b 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_notexist</title>
 <meta charset="utf-8"/>
@@ -33,13 +33,12 @@ Authors:
 //==== PRIORITY P3
 //==== LABEL Check if interface SQLDataControlConsumer exists, it should not.
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:SQLDataControlConsumer U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA NIO
 
 test(function () {
     check_no_interface_object("SQLDataControlConsumer");
 }, "SQLDataControlConsumer_notexist");
-// Check if interface SQLDataControlConsumer exists, it should not.
 
 </script>
 </body>
index 3e38b79688908654db52d47b72b0da6d34e3689d..c7ce0a05e8d98e27329e06bcc0475bf182aedbe3 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_remove</title>
 <meta charset="utf-8"/>
@@ -33,14 +33,14 @@ Authors:
 //==== TEST: SQLDataControlConsumer_remove
 //==== LABEL Check SQLDataControlConsumer.remove method
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:remove M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MR MAST MOA
 setup({timeout: 30000});
 
 var t = async_test("SQLDataControlConsumer_remove", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
     currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, rowData,
-    removeSuccess, removeError, returnedValue, columnsToSet = ["WORD", "WORD_DESC"], description = currentDate + "_desc",
+    removeSuccess, removeError, returnedValue = null, columnsToSet = ["WORD", "WORD_DESC"], description = currentDate + "_desc",
     descriptionToSet = "'" + description + "'", rowDataToRemove = {}, rowDataToSelect = {}, keyToRemove = currentDate + 1,
     keyToSelect = currentDate + 2, insertCounter = 1;
 t.step(function () {
index 571900ca54c3ec26401de375e00a65bbe88070e7..f5439962dd1398ad3cdaab9a24bb5415bd1f10ee 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_remove_errorCallback_TypeMismatch</title>
@@ -41,27 +41,27 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MC
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_remove_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test("SQLDataControlConsumer_remove_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), removeSuccess, rowData,
     insertSuccess, insertError, conversionTable = getTypeConversionExceptions("functionObject", true);
-this_test.step(function () {
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
-    removeSuccess = this_test.step_func(function (reqId) {
-        assert_unreached("this function should not be used");
+    removeSuccess = t.step_func(function (reqId) {
+        assert_unreached("remove() success callback invoked");
     });
 
-    insertSuccess = this_test.step_func(function (reqId, insertRowId) {
+    insertSuccess = t.step_func(function (reqId, insertRowId) {
         for (i = 0; i < conversionTable.length; i++) {
             globalReqId++;
             assert_throws({name: conversionTable[i][1]}, function () {
@@ -69,10 +69,10 @@ this_test.step(function () {
                     rowData.columns[0] + "=" + rowData.values[0], removeSuccess, conversionTable[i][0]);
             }, "exception should be thrown. Given - " + conversionTable[i][0]);
         }
-        this_test.done();
+        t.done();
     });
 
-    insertError = this_test.step_func(function (reqId, error) {
+    insertError = t.step_func(function (reqId, error) {
         assert_unreached("insert() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
index 666b2611fdef778b3dc8be022207f08c22fb4eaf..f5caab8b68c3106df1c2ebb246981968a1ed0f89 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_remove_errorCallback_invalid_cb</title>
@@ -41,41 +41,41 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MTCB
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_remove_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test("SQLDataControlConsumer_remove_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
-    insertError, removeSuccess, removeError, removeErrorFunc;
-this_test.step(function () {
+    insertError, removeSuccess, invalidCallback;
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
-
-    removeErrorFunc = this_test.step_func(function (reqId, error) {
-        assert_unreached("remove() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
-    });
-
-    removeError = {onsuccess: removeErrorFunc};
-
-    removeSuccess = this_test.step_func(function () {
-        assert_unreached("this function should not be used");
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
+
+    invalidCallback = {
+        onerror: t.step_func(function (reqId, error) {
+            assert_unreached("remove() invalid error callback invoked");
+        })
+    };
+
+    removeSuccess = t.step_func(function () {
+        assert_unreached("remove() success callback invoked");
     });
 
-    insertSuccess = this_test.step_func(function () {
+    insertSuccess = t.step_func(function () {
         assert_throws({name: "TypeMismatchError"}, function () {
             globalDataControl.remove(globalReqId,
-                rowData.columns[0] + "=" + rowData.values[0], removeSuccess, removeError);
+                rowData.columns[0] + "=" + rowData.values[0], removeSuccess, invalidCallback);
         }, "exception should be thrown");
-        this_test.done();
+        t.done();
     });
 
-    insertError = this_test.step_func(function (reqId, error) {
+    insertError = t.step_func(function (reqId, error) {
         assert_unreached("insert() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
@@ -83,9 +83,6 @@ this_test.step(function () {
     globalDataControl.insert(globalReqId, rowData, insertSuccess, insertError);
 });
 
-
-
-
 </script>
 </body>
 </html>
index 3d8b3d5014e2ffdd8f8a7ee187090ceee07b1287..ddeda8e324a6b2de1c5c6103b5075ccea2fb399e 100644 (file)
@@ -16,14 +16,15 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_remove_exist</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script src="support/datacontrol_common.js"></script>
 </head>
 
 <body>
@@ -32,12 +33,11 @@ Authors:
 //==== TEST: SQLDataControlConsumer_remove_exist
 //==== LABEL Check if method remove of SQLDataControlConsumer exists
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:remove M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA ME
 
 test(function () {
-    var globalDataControl = tizen.datacontrol.getDataControlConsumer(
-        "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "SQL");
+    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");
index 7359df7d748f57d6c0148d756cee3b17aada729e..b9a5f3dd0ecdf8b2bbd78af6fd9ab009b03370c6 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_remove_successCallback_TypeMismatch</title>
@@ -41,23 +41,23 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MC
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_remove_successCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test("SQLDataControlConsumer_remove_successCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
     insertError, conversionTable = getTypeConversionExceptions("functionObject", true);
-this_test.step(function () {
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
-    insertSuccess = this_test.step_func(function (reqId, insertRowId) {
+    insertSuccess = t.step_func(function (reqId, insertRowId) {
         for (i = 0; i < conversionTable.length; i++) {
             globalReqId++;
             assert_throws({name: conversionTable[i][1]}, function () {
@@ -65,10 +65,10 @@ this_test.step(function () {
                     rowData.columns[0] + "=" + rowData.values[0], conversionTable[i][0]);
             }, "exception should be thrown. Given - " + conversionTable[i][0]);
         }
-        this_test.done();
+        t.done();
     });
 
-    insertError = this_test.step_func(function (reqId, error) {
+    insertError = t.step_func(function (reqId, error) {
         assert_unreached("insert() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
index 606252317f4b0348122e777ee7868ef912adc2ad..cf8bd9e484237949bdab8645cac80af4137a04be 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_remove_successCallback_invalid_cb</title>
@@ -41,37 +41,37 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MTCB
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_remove_successCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test("SQLDataControlConsumer_remove_successCallback_invalid_cb", {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
-    insertError, removeSuccess, removeSuccessFunc;
-this_test.step(function () {
+    insertError, invalidCallback;
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
-    removeSuccessFunc = this_test.step_func(function () {
-        assert_unreached("this function should be used");
-    });
-
-    removeSuccess = {onsuccess: removeSuccessFunc};
+    invalidCallback = {
+        onsuccess: t.step_func(function () {
+            assert_unreached("remove() invalid success callback invoked");
+        })
+    };
 
-    insertSuccess = this_test.step_func(function () {
+    insertSuccess = t.step_func(function () {
         assert_throws({name: "TypeMismatchError"}, function () {
             globalDataControl.remove(globalReqId,
-                rowData.columns[0] + "=" + rowData.values[0], removeSuccess);
+                rowData.columns[0] + "=" + rowData.values[0], invalidCallback);
         }, "exception should be thrown");
-        this_test.done();
+        t.done();
     });
 
-    insertError = this_test.step_func(function (reqId, error) {
+    insertError = t.step_func(function (reqId, error) {
         assert_unreached("insert() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
@@ -79,9 +79,6 @@ this_test.step(function () {
     globalDataControl.insert(globalReqId, rowData, insertSuccess, insertError);
 });
 
-
-
-
 </script>
 </body>
 </html>
index 9faba7ab73050ff0dd65b2128d3b927426cca4e7..23f46f51ed5c79eac1dbcd8feac2d75cb5cbca43 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_remove_without_errorCallback</title>
 <meta charset="utf-8"/>
@@ -33,14 +33,15 @@ Authors:
 //==== TEST: SQLDataControlConsumer_remove_without_errorCallback
 //==== LABEL Check SQLDataControlConsumer.remove method without errorCallback
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:remove M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MR MAST MOA
 setup({timeout: 30000});
 
 var t = async_test("SQLDataControlConsumer_remove_without_errorCallback", {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess,
-    insertError, selectSuccess, rowData, removeSuccess, returnedValue, columnsToSet = ["WORD", "WORD_DESC"], description = currentDate + "_desc",
+    insertError, selectSuccess, rowData, removeSuccess, returnedValue = null,
+    columnsToSet = ["WORD", "WORD_DESC"], description = currentDate + "_desc",
     descriptionToSet = "'" + description + "'", rowDataToRemove = {}, rowDataToSelect = {}, keyToRemove = currentDate + 1,
     keyToSelect = currentDate + 2, insertCounter = 1;
 t.step(function () {
index c736331cede14d6756af825be6c3ed6ad011df72..8fdb09bf289f0e377dd24a1ff54dfc04f39cca3a 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_remove_without_successCallback</title>
 <meta charset="utf-8"/>
@@ -33,20 +33,20 @@ Authors:
 //==== TEST: SQLDataControlConsumer_remove_without_successCallback
 //==== LABEL Check SQLDataControlConsumer.remove method without successCallback
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:remove M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MR MMINA
 setup({timeout: 30000});
 
 var t = async_test("SQLDataControlConsumer_remove_without_successCallback", {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), insertSuccess, insertError,
-    rowData, returnedValue;
+    rowData, returnedValue = null;
 t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
     insertSuccess = t.step_func(function (reqId, insertRowId) {
         globalReqId++;
index 489bbeefd3e6724a2e377422fa232de02d510e33..2b3ba22305618c050666875427bf0c78c8a5dac6 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_select</title>
 <meta charset="utf-8"/>
@@ -33,20 +33,21 @@ Authors:
 //==== TEST: SQLDataControlConsumer_select
 //==== LABEL Check with non-optional arguments SQLDataControlConsumer.select method
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:select M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MR MOA
 setup({timeout: 30000});
 
 var t = async_test("SQLDataControlConsumer_select", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
-    currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, i, returnedValue,
-    insertedData = {}, rowData, description = currentDate + "_desc", descriptionToSet = "'" + description + "'",
-    columnsToSet = ["WORD", "WORD_DESC"], numberOfElements = 5, key, wordColumnValue, wordDescColumnValue, insertCounter = 0;
+    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;
 t.step(function () {
 
     selectSuccess = t.step_func(function (rows, reqId) {
         assert_equals(returnedValue, undefined, "Incorrect returned value");
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         assert_equals(rows.length, 2, "Incorrect number of rows.");
         for (i = 0; i < rows.length; i++) {
             assert_array_equals(rows[i].columns, columnsToSet, "Incorrect column names");
@@ -88,6 +89,7 @@ t.step(function () {
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
     insertSuccess();
 });
+
 </script>
 </body>
 </html>
index 44ee74ba77fdc25deccd92806d8cf89a2f405e62..0b8f30f938d74f636c231079318bc9fbb3ef07fa 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_select_columns_TypeMismatch</title>
@@ -41,27 +41,27 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MC
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_select_columns_TypeMismatch", {timeout: 30000}), i, globalDataControl, globalReqId = generateGlobalReqId(),
+var t = async_test("SQLDataControlConsumer_select_columns_TypeMismatch", {timeout: 30000}), i, globalDataControl, globalReqId = generateGlobalReqId(),
     currentDate = new Date().getTime().toString(), rowData, insertSuccess, selectSuccess, insertError,
     conversionTable = getTypeConversionExceptions("array", false);
-this_test.step(function () {
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
-    selectSuccess = this_test.step_func(function () {
-        assert_unreached("this function should not be used");
+    selectSuccess = t.step_func(function () {
+        assert_unreached("select() success callback invoked");
     });
 
-    insertSuccess = this_test.step_func(function (reqId, insertRowId) {
+    insertSuccess = t.step_func(function (reqId, insertRowId) {
         for (i = 0; i < conversionTable.length; i++) {
             globalReqId++;
             assert_throws({name: conversionTable[i][1]}, function () {
@@ -69,10 +69,10 @@ this_test.step(function () {
                     rowData.columns[0] + "=" + rowData.values[0], selectSuccess);
             }, "exception should be thrown");
         }
-        this_test.done();
+        t.done();
     });
 
-    insertError = this_test.step_func(function (reqId, error) {
+    insertError = t.step_func(function (reqId, error) {
         assert_unreached("insert() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
index 56a22ace0b825bcc7e510057284d7ce6c4fd08e2..e7066926c72b38f3ff8b069b9bd3ee9c782c1b34 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_select_errorCallback_TypeMismatch</title>
@@ -41,27 +41,27 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MC
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_select_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test("SQLDataControlConsumer_select_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, selectSuccess,
     insertSuccess, insertError, conversionTable = getTypeConversionExceptions("functionObject", true);
-this_test.step(function () {
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
-    selectSuccess = this_test.step_func(function () {
-        assert_unreached("this function should not be used");
+    selectSuccess = t.step_func(function () {
+        assert_unreached("select() success callback invoked");
     });
 
-    insertSuccess = this_test.step_func(function (reqId, insertRowId) {
+    insertSuccess = t.step_func(function (reqId, insertRowId) {
         for (i = 0; i < conversionTable.length; i++) {
             globalReqId++;
             assert_throws({name: conversionTable[i][1]}, function () {
@@ -69,10 +69,10 @@ this_test.step(function () {
                     rowData.columns[0] + "=" + rowData.values[0], selectSuccess, conversionTable[i][0]);
             }, "exception should be thrown. Given - " + conversionTable[i][0]);
         }
-        this_test.done();
+        t.done();
     });
 
-    insertError = this_test.step_func(function (reqId, error) {
+    insertError = t.step_func(function (reqId, error) {
         assert_unreached("insert() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
index d0796b859b9850c7123f2d73a6910880e5ce7cb4..db8546e9fe19e12d478c4a9ac308d64724219dc0 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_select_errorCallback_invalid_cb</title>
@@ -41,41 +41,41 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MTCB
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_select_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test("SQLDataControlConsumer_select_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
-    insertError, selectSuccess, selectError, selectErrorFunc;
-this_test.step(function () {
+    insertError, selectSuccess, invalidCallback;
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
-    selectSuccess = this_test.step_func(function () {
-        assert_unreached("this function should not be used");
+    selectSuccess = t.step_func(function () {
+        assert_unreached("select() success callback invoked");
     });
 
-    selectErrorFunc = this_test.step_func(function (reqId, error) {
-        assert_unreached("select() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
-    });
-
-    selectError = {onsuccess: selectErrorFunc};
+    invalidCallback = {
+        onerror: t.step_func(function (reqId, error) {
+            assert_unreached("select() invalid error callback invoked");
+        })
+    };
 
-    insertSuccess = this_test.step_func(function () {
+    insertSuccess = t.step_func(function () {
         assert_throws({name: "TypeMismatchError"}, function () {
             globalDataControl.select(globalReqId, rowData.columns,
-                rowData.columns[0] + "=" + rowData.values[0], selectSuccess, selectError);
+                rowData.columns[0] + "=" + rowData.values[0], selectSuccess, invalidCallback);
         }, "exception should be thrown");
-        this_test.done();
+        t.done();
     });
 
-    insertError = this_test.step_func(function (reqId, error) {
+    insertError = t.step_func(function (reqId, error) {
         assert_unreached("insert() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
index e7b0d7adb6648212e1ebd134171be78c440cde8f..504627276283d19bc2e0a5660c6f357cd682b56a 100644 (file)
@@ -16,14 +16,15 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_select_exist</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script src="support/datacontrol_common.js"></script>
 </head>
 
 <body>
@@ -32,12 +33,11 @@ Authors:
 //==== TEST: SQLDataControlConsumer_select_exist
 //==== LABEL Check if method select of SQLDataControlConsumer exists
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:select M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA ME
 
 test(function () {
-    var globalDataControl = tizen.datacontrol.getDataControlConsumer(
-        "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "SQL");
+    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");
index 466d9531553d8055e33eb57cc9f46692e2c30141..d66d8813bc5d886149327f3d976a311385a80dc1 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_select_missarg</title>
 <meta charset="utf-8"/>
@@ -34,7 +34,7 @@ Authors:
 //==== LABEL Check with missing non-optional argument - select
 //==== ONLOAD_DELAY 30
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:select M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA MMA
 
 setup({timeout: 30000});
@@ -44,16 +44,16 @@ var t = async_test("SQLDataControlConsumer_select_missarg", {timeout: 30000}), g
 t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
     insertSuccess = t.step_func(function (reqId, insertRowId) {
         globalReqId++;
         assert_throws({name : exceptionName},
             function () {
                 globalDataControl.select(globalReqId);
-            }, exceptionName + " should be thrown - missing columns.");
+            }, exceptionName + " should be thrown - missing columns");
         t.done();
     });
 
@@ -64,6 +64,7 @@ t.step(function () {
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
     globalDataControl.insert(globalReqId, rowData, insertSuccess, insertError);
 });
+
 </script>
 </body>
 </html>
index 74c257534a1c28b06bddccbb65ae0796a341cce2..8773dde26f0da9725d394f8e0877993df2121e39 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_select_successCallback_TypeMismatch</title>
@@ -41,23 +41,23 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MC
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_select_successCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test("SQLDataControlConsumer_select_successCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
     insertError, conversionTable = getTypeConversionExceptions("functionObject");
-this_test.step(function () {
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
-    insertSuccess = this_test.step_func(function (reqId, insertRowId) {
+    insertSuccess = t.step_func(function (reqId, insertRowId) {
         for (i = 0; i < conversionTable.length; i++) {
             globalReqId++;
             assert_throws({name: conversionTable[i][1]}, function () {
@@ -65,10 +65,10 @@ this_test.step(function () {
                     rowData.columns[0] + "=" + rowData.values[0], conversionTable[i][0]);
             }, "exception should be thrown. Given - " + conversionTable[i][0]);
         }
-        this_test.done();
+        t.done();
     });
 
-    insertError = this_test.step_func(function (reqId, error) {
+    insertError = t.step_func(function (reqId, error) {
         assert_unreached("insert() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
index 3a35ad8032a32769046318aef74b6142c5a6cb21..1162fd742a0e18cb751c7fe1aed4c988c13edb5a 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_select_successCallback_invalid_cb</title>
@@ -40,37 +40,37 @@ Authors:
 //==== TEST: SQLDataControlConsumer_select_successCallback_invalid_cb
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MTCB
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_select_successCallback_invalid_cb", {timeout: 30000}),
+var t = async_test("SQLDataControlConsumer_select_successCallback_invalid_cb", {timeout: 30000}),
     globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData,
-    insertSuccess, insertError, selectSuccess, selectSuccessFunc;
-this_test.step(function () {
+    insertSuccess, insertError, invalidCallback;
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
-    selectSuccessFunc = this_test.step_func(function () {
-        assert_unreached("this function should not be used");
-    });
-
-    selectSuccess = {onsuccess: selectSuccessFunc};
+    invalidCallback = {
+        onsuccess: t.step_func(function () {
+            assert_unreached("select() invalid success callback invoked");
+        })
+    };
 
-    insertSuccess = this_test.step_func(function () {
+    insertSuccess = t.step_func(function () {
         assert_throws({name: "TypeMismatchError"}, function () {
             globalDataControl.select(globalReqId, rowData.columns,
-                rowData.columns[0] + "=" + rowData.values[0], selectSuccess);
+                rowData.columns[0] + "=" + rowData.values[0], invalidCallback);
         }, "exception should be thrown");
-        this_test.done();
+        t.done();
     });
 
-    insertError = this_test.step_func(function (reqId, error) {
+    insertError = t.step_func(function (reqId, error) {
         assert_unreached("insert() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
index 46dc028572aa4c8dc6aba598f09d70f55e9cd58b..1a2902524a023b064ba77a05df26e972af243372 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_select_without_errorCallback</title>
 <meta charset="utf-8"/>
@@ -33,20 +33,21 @@ Authors:
 //==== TEST: SQLDataControlConsumer_select_without_errorCallback
 //==== LABEL Check with non-optional arguments SQLDataControlConsumer.select method without errorCallback
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:select M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MR MMINA
 setup({timeout: 30000});
 
 var t = async_test("SQLDataControlConsumer_select_without_errorCallback", {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), insertSuccess, insertError,
-    selectSuccess, i, returnedValue, insertedData = {}, rowData, description = currentDate + "_desc", descriptionToSet = "'" + description + "'",
-    columnsToSet = ["WORD", "WORD_DESC"], numberOfElements = 5, key, wordColumnValue, wordDescColumnValue, insertCounter = 0;
+    selectSuccess, i, returnedValue = null, insertedData = {}, rowData, description = currentDate + "_desc",
+    descriptionToSet = "'" + description + "'", columnsToSet = ["WORD", "WORD_DESC"], numberOfElements = 5,
+    key, wordColumnValue, wordDescColumnValue, insertCounter = 0;
 t.step(function () {
 
     selectSuccess = t.step_func(function (rows, reqId) {
         assert_equals(returnedValue, undefined, "Incorrect returned value");
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         assert_equals(rows.length, numberOfElements, "Incorrect number of rows.");
         for (i = 0; i < rows.length; i++) {
             assert_array_equals(rows[i].columns, columnsToSet, "Incorrect column names");
@@ -84,6 +85,7 @@ t.step(function () {
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
     insertSuccess();
 });
+
 </script>
 </body>
 </html>
index a1d286eb83d1bf0768c610bfd665fab4c23559c0..1f0f232bd8696634ce0680d5934671b064ca4bd5 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_select_without_maxNumberPerPage</title>
 <meta charset="utf-8"/>
@@ -33,14 +33,14 @@ Authors:
 //==== TEST: SQLDataControlConsumer_select_without_maxNumberPerPage
 //==== LABEL Check with non-optional arguments SQLDataControlConsumer.select method without maxNumberPerPage
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:select M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MR MOA
 setup({timeout: 30000});
 
 var t = async_test("SQLDataControlConsumer_select_without_maxNumberPerPage", {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess,
-    insertError, selectSuccess, i, returnedValue, insertedData = {}, rowData, description = currentDate + "_desc",
+    insertError, selectSuccess, i, returnedValue = null, insertedData = {}, rowData, description = currentDate + "_desc",
     descriptionToSet = "'" + description + "'", columnsToSet = ["WORD", "WORD_DESC"], numberOfElements = 5, key,
     wordColumnValue, wordDescColumnValue, insertCounter = 0;
 t.step(function () {
@@ -48,7 +48,7 @@ t.step(function () {
 
     selectSuccess = t.step_func(function (rows, reqId) {
         assert_equals(returnedValue, undefined, "Incorrect returned value");
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         assert_equals(rows.length, numberOfElements, "Incorrect number of rows.");
         for (i = 0; i < rows.length; i++) {
             assert_array_equals(rows[i].columns, columnsToSet, "Incorrect column names");
@@ -90,6 +90,7 @@ t.step(function () {
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
     insertSuccess();
 });
+
 </script>
 </body>
 </html>
index 0c7abf63ce9af400ff0eb1d3e387a688759ddb5c..c71bdeaf42590eee5d67c9f01285d24fbe71aa03 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_select_without_page</title>
 <meta charset="utf-8"/>
@@ -33,20 +33,20 @@ Authors:
 //==== TEST: SQLDataControlConsumer_select_without_page
 //==== LABEL Check with non-optional arguments SQLDataControlConsumer.select method without page
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:select M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MR MOA
 setup({timeout: 30000});
 
 var t = async_test("SQLDataControlConsumer_select_without_page", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
-    currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, i, returnedValue,
+    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;
 t.step(function () {
 
     selectSuccess = t.step_func(function (rows, reqId) {
         assert_equals(returnedValue, undefined, "Incorrect returned value");
-        assert_equals(reqId, globalReqId, "incorrect request id");
+        assert_equals(reqId, globalReqId, "Incorrect request id");
         assert_equals(rows.length, numberOfElements, "Incorrect number of rows.");
         for (i = 0; i < rows.length; i++) {
             assert_array_equals(rows[i].columns, columnsToSet, "Incorrect column names");
@@ -88,6 +88,7 @@ t.step(function () {
     globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
     insertSuccess();
 });
+
 </script>
 </body>
 </html>
index 7e74ab890f8d12c469b53081df9fee0e7a050e4e..1fbeb2d3f73c164a638af386555cf22a75fdad18 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_update</title>
 <meta charset="utf-8"/>
@@ -33,26 +33,26 @@ Authors:
 //==== TEST: SQLDataControlConsumer_update
 //==== LABEL Check SQLDataControlConsumer.update method
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:update M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MR MAST MOA
 setup({timeout: 30000});
 
 var t = async_test("SQLDataControlConsumer_update", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
     currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, rowData,
-    rowDataUpdate, updateSuccess, updateError, returnedValue, descriptionUpdated = currentDate + "_desc_update",
+    rowDataUpdate, updateSuccess, updateError, returnedValue = null, descriptionUpdated = currentDate + "_desc_update",
     keyUpdated = currentDate + "_update";
 t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
-
-     rowDataUpdate = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + keyUpdated + "'", "'" + descriptionUpdated + "'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
+
+    rowDataUpdate = {
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + keyUpdated + "'", "'" + descriptionUpdated + "'"]
+    };
 
     selectSuccess = t.step_func(function (rows, reqId) {
         assert_equals(rows.length, 1, "Incorrect number of rows.");
index 46c80aa00eb36eee8c743b9bb95acaa2fb2b0864..73d33e22e17ec060dfe26efce6627190fa5ef567 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_update_errorCallback_TypeMismatch</title>
@@ -41,33 +41,33 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MC
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_update_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test("SQLDataControlConsumer_update_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, rowDataUpdate,
     insertSuccess, updateSuccess, insertError, conversionTable = getTypeConversionExceptions("functionObject",
     true);
-this_test.step(function () {
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
     rowDataUpdate = {
         columns: ["WORD", "WORD_DESC"],
         values: ["'" + currentDate + "_update'", "'" + currentDate + "_desc_update'"]
     };
 
-    updateSuccess = this_test.step_func(function () {
-        assert_unreached("this function should not be used");
+    updateSuccess = t.step_func(function () {
+        assert_unreached("update() success callback invoked");
     });
 
-    insertSuccess = this_test.step_func(function (reqId, insertRowId) {
+    insertSuccess = t.step_func(function (reqId, insertRowId) {
         for (i = 0; i < conversionTable.length; i++) {
             globalReqId++;
             assert_throws({name: conversionTable[i][1]}, function () {
@@ -75,10 +75,10 @@ this_test.step(function () {
                     rowData.columns[0] + "=" + rowData.values[0], updateSuccess, conversionTable[i][0]);
             }, "exception should be thrown. Given - " + conversionTable[i][0]);
         }
-        this_test.done();
+        t.done();
     });
 
-    insertError = this_test.step_func(function (reqId, error) {
+    insertError = t.step_func(function (reqId, error) {
         assert_unreached("insert() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
index ed5d60f64a04d807933a1644fa87016e52767c66..793424fb679909297de1b0e2249fb0b83ccfb393 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_update_errorCallback_invalid_cb</title>
@@ -41,47 +41,47 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MTCB
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_update_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test("SQLDataControlConsumer_update_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, rowDataUpdate,
-    insertSuccess, updateSuccess, insertError, updateError, updateErrorFunc;
-this_test.step(function () {
+    insertSuccess, updateSuccess, insertError, invalidCallback;
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
     rowDataUpdate = {
         columns: ["WORD", "WORD_DESC"],
         values: ["'" + currentDate + "_update'", "'" + currentDate + "_desc_update'"]
     };
 
-    updateSuccess = this_test.step_func(function () {
-        assert_unreached("this function should not be used");
+    updateSuccess = t.step_func(function () {
+        assert_unreached("update() success callback invoked");
     });
 
-    updateErrorFunc = this_test.step_func(function (reqId, error) {
-        assert_unreached("update() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
-    });
-
-    updateError = {onerror: updateErrorFunc};
+    invalidCallback = {
+        onerror: t.step_func(function (reqId, error) {
+            assert_unreached("update() invalid error callback invoked");
+        })
+    };
 
-    insertSuccess = this_test.step_func(function (reqId, insertRowId) {
+    insertSuccess = t.step_func(function (reqId, insertRowId) {
         globalReqId++;
         assert_throws({name: "TypeMismatchError"}, function () {
             globalDataControl.update(globalReqId, rowDataUpdate,
-                rowData.columns[0] + "=" + rowData.values[0], updateSuccess, updateError);
+                rowData.columns[0] + "=" + rowData.values[0], updateSuccess, invalidCallback);
         }, "exception should be thrown");
-        this_test.done();
+        t.done();
     });
 
-    insertError = this_test.step_func(function (reqId, error) {
+    insertError = t.step_func(function (reqId, error) {
         assert_unreached("insert() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
index 2d98992c1ee66567c86caa7de2eb951a0387fe17..60f4ab0f29c3e952e4aa825e62ac234c50c5b2fe 100644 (file)
@@ -16,14 +16,15 @@ limitations under the License.
 
 
 Authors:
-    Lukasz Bardeli <l.bardeli@samsung.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_update_exist</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script src="support/datacontrol_common.js"></script>
 </head>
 
 <body>
@@ -32,12 +33,11 @@ Authors:
 //==== TEST: SQLDataControlConsumer_update_exist
 //==== LABEL Check if method update of SQLDataControlConsumer exists
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:update M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== TEST_CRITERIA ME
 
 test(function () {
-    var globalDataControl = tizen.datacontrol.getDataControlConsumer(
-        "http://tizen.org/datacontrol/provider/DictionaryDataControlProvider", "Dictionary", "SQL");
+    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");
index 574eb165abe72cea10e24af2ebda38c4c6765ac4..52b2d63adff4c93b09eae44fc031bbd7d4044469 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_update_missarg</title>
 <meta charset="utf-8"/>
@@ -33,7 +33,7 @@ Authors:
 //==== TEST: SQLDataControlConsumer_update_missarg
 //==== LABEL Check with missing non-optional argument - SQLDataControlConsumer.update
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:update M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MMA
 setup({timeout: 30000});
@@ -42,16 +42,15 @@ var t = async_test("SQLDataControlConsumer_update_missarg", {timeout:30000}), gl
 t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
     insertSuccess = t.step_func(function (reqId, insertRowId) {
         globalReqId++;
-         assert_throws({name : exceptionName},
-            function () {
-                globalDataControl.update(globalReqId);
-            }, exceptionName + " should be thrown - missing RowData object.");
+        assert_throws({name : exceptionName}, function () {
+            globalDataControl.update(globalReqId);
+        }, exceptionName + " should be thrown - missing RowData object");
 
         t.done();
     });
index 9bc5b56c668e1182cd7f34666f3354c2fcc3a96c..aed636b1139f442c55361edf1171ef76f06070e6 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_update_successCallback_TypeMismatch</title>
@@ -41,28 +41,28 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MC
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_update_successCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test("SQLDataControlConsumer_update_successCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
     insertError, conversionTable = getTypeConversionExceptions("functionObject", true), rowDataUpdate;
-this_test.step(function () {
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
     rowDataUpdate = {
         columns: ["WORD", "WORD_DESC"],
         values: ["'" + currentDate + "_update'", "'" + currentDate + "_desc_update'"]
     };
 
-    insertSuccess = this_test.step_func(function (reqId, insertRowId) {
+    insertSuccess = t.step_func(function (reqId, insertRowId) {
         for (i = 0; i < conversionTable.length; i++) {
             globalReqId++;
             assert_throws({name: conversionTable[i][1]}, function () {
@@ -70,10 +70,10 @@ this_test.step(function () {
                     rowData.columns[0] + "=" + rowData.values[0], conversionTable[i][0]);
             }, "exception should be thrown. Given - " + conversionTable[i][0]);
         }
-        this_test.done();
+        t.done();
     });
 
-    insertError = this_test.step_func(function (reqId, error) {
+    insertError = t.step_func(function (reqId, error) {
         assert_unreached("insert() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
index 76d20ec004ac95bf799a48fad5843c50ee344e00..ab5534dc4b359ac7800d3ffd02ee4ca4e85ffd4a 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_update_successCallback_invalid_cb</title>
@@ -41,42 +41,42 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MTCB
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_update_successCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test("SQLDataControlConsumer_update_successCallback_invalid_cb", {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, rowDataUpdate,
-    insertSuccess, insertError, updateSuccess, updateSuccessFunc;
-this_test.step(function () {
+    insertSuccess, insertError, invalidCallback;
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
     rowDataUpdate = {
         columns: ["WORD", "WORD_DESC"],
         values: ["'" + currentDate + "_update'", "'" + currentDate + "_desc_update'"]
     };
 
-    updateSuccessFunc = this_test.step_func(function () {
-        assert_unreached("this function should not be used");
-    });
-
-    updateSuccess = {onsuccess: updateSuccessFunc};
+    invalidCallback = {
+        onsuccess: t.step_func(function () {
+            assert_unreached("update() invalid success callback invoked");
+        })
+    };
 
-    insertSuccess = this_test.step_func(function (reqId, insertRowId) {
+    insertSuccess = t.step_func(function (reqId, insertRowId) {
         assert_throws({name: "TypeMismatchError"}, function () {
             globalDataControl.update(globalReqId, rowDataUpdate,
-                rowData.columns[0] + "=" + rowData.values[0], updateSuccess);
+                rowData.columns[0] + "=" + rowData.values[0], invalidCallback);
         }, "exception should be thrown");
-        this_test.done();
+        t.done();
     });
 
-    insertError = this_test.step_func(function (reqId, error) {
+    insertError = t.step_func(function (reqId, error) {
         assert_unreached("insert() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
index 034eef982e94b926da3a22b773422b59428ec42d..577dd4570b0f786194ed93fb7801c91ff0e287ff 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>SQLDataControlConsumer_update_updateData_TypeMismatch</title>
@@ -41,27 +41,27 @@ Authors:
 //==== 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/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== PRIORITY P2
 //==== TEST_CRITERIA MC
 
 setup({timeout: 30000});
 
-var this_test = async_test("SQLDataControlConsumer_update_updateData_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test("SQLDataControlConsumer_update_updateData_TypeMismatch", {timeout: 30000}), i, globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
     updateSuccess, insertError, conversionTable = getTypeConversionExceptions("dictionary", false);
-this_test.step(function () {
+t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
-    updateSuccess = this_test.step_func(function () {
-        assert_unreached("this function should not be used");
+    updateSuccess = t.step_func(function () {
+        assert_unreached("update() success callback invoked");
     });
 
-    insertSuccess = this_test.step_func(function (reqId, insertRowId) {
+    insertSuccess = t.step_func(function (reqId, insertRowId) {
         for (i = 0; i < conversionTable.length; i++) {
             globalReqId++;
             assert_throws({name: conversionTable[i][1]}, function () {
@@ -69,10 +69,10 @@ this_test.step(function () {
                     rowData.columns[0] + "=" + rowData.values[0], updateSuccess);
             }, "exception should be thrown");
         }
-        this_test.done();
+        t.done();
     });
 
-    insertError = this_test.step_func(function (reqId, error) {
+    insertError = t.step_func(function (reqId, error) {
         assert_unreached("insert() error callback: name:" + error.name + ", msg:" + error.message + " for reqId: " + reqId);
     });
 
index fcaa6f6d09b528110bca53a944b7b2c60170eb59..0255e87e58d29d9bdc33cab08e13efaaa3e1c268 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_update_without_errorCallback</title>
 <meta charset="utf-8"/>
@@ -33,26 +33,26 @@ Authors:
 //==== TEST: SQLDataControlConsumer_update_without_errorCallback
 //==== LABEL Check SQLDataControlConsumer.update method without errorCallback
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:update M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MR MAST MOA
 setup({timeout: 30000});
 
 var t = async_test("SQLDataControlConsumer_update_without_errorCallback", {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess,
-    insertError, selectSuccess, rowData, rowDataUpdate, updateSuccess, returnedValue, descriptionUpdated = currentDate + "_desc_update",
-    keyUpdated = currentDate + "_update";
+    insertError, selectSuccess, rowData, rowDataUpdate, updateSuccess, returnedValue = null,
+    descriptionUpdated = currentDate + "_desc_update", keyUpdated = currentDate + "_update";
 t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
-
-     rowDataUpdate = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + keyUpdated + "'", "'" + descriptionUpdated + "'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
+
+    rowDataUpdate = {
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + keyUpdated + "'", "'" + descriptionUpdated + "'"]
+    };
 
     selectSuccess = t.step_func(function (rows, reqId) {
         assert_equals(rows.length, 1, "Incorrect number of rows.");
index 17ba821215be2f97e481905c0eec1e75a42da280..7cfac14baeeae04d6ceb6d418de1db264cb3d16e 100644 (file)
@@ -16,10 +16,10 @@ limitations under the License.
 
 
 Authors:
-    Andrzej Krolikowski <a.krolikowsk@samsung.com>
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
-<html lang="en">
+<html>
 <head>
 <title>SQLDataControlConsumer_update_without_successCallback</title>
 <meta charset="utf-8"/>
@@ -33,25 +33,25 @@ Authors:
 //==== TEST: SQLDataControlConsumer_update_without_successCallback
 //==== LABEL Check SQLDataControlConsumer.update method without successCallback
 //==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:update M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
 //==== ONLOAD_DELAY 30
 //==== TEST_CRITERIA MR MMINA
 setup({timeout: 30000});
 
 var t = async_test("SQLDataControlConsumer_update_without_successCallback", {timeout: 30000}), globalDataControl,
     globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), insertSuccess, insertError,
-    rowData, rowDataUpdate, returnedValue;
+    rowData, rowDataUpdate, returnedValue = null;
 t.step(function () {
 
     rowData = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
-     };
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "'", "'" + currentDate + "_desc'"]
+    };
 
-     rowDataUpdate = {
-         columns: ["WORD", "WORD_DESC"],
-         values: ["'" + currentDate + "_update'", "'" + currentDate + "_desc_update'"]
-     };
+    rowDataUpdate = {
+        columns: ["WORD", "WORD_DESC"],
+        values: ["'" + currentDate + "_update'", "'" + currentDate + "_desc_update'"]
+    };
 
     insertSuccess = t.step_func(function (reqId, insertRowId) {
         globalReqId++;
index 19d616b566006217b419bfbad944f74809834615..ce2ad45e737f4bf0e3c3201b9593ea9d4303c3b1 100644 (file)
@@ -24,6 +24,6 @@ var TYPE_SQL = "SQL";
 var TYPE_MAP = "MAP";
 
 
-function generateGlobalReqId(){
+function generateGlobalReqId() {
     return new Date().getTime() % 1e8;
 }
\ No newline at end of file
index 9c1a5a40449d5e46d0313c718b01ebbca612d478..490e1a54284036924fbbfa59cec259f5e9983f73 100644 (file)
@@ -10,7 +10,7 @@
         <specs>
           <spec>
             <spec_assertion interface="DataControlErrorCallback" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
@@ -22,7 +22,7 @@
         <specs>
           <spec>
             <spec_assertion interface="DataControlGetValueSuccessCallback" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
@@ -34,7 +34,7 @@
         <specs>
           <spec>
             <spec_assertion interface="DataControlInsertSuccessCallback" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
@@ -46,7 +46,7 @@
         <specs>
           <spec>
             <spec_assertion interface="DataControlManager" element_type="method" element_name="getDataControlConsumer" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
@@ -58,7 +58,7 @@
         <specs>
           <spec>
             <spec_assertion interface="DataControlManagerObject" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
@@ -70,7 +70,7 @@
         <specs>
           <spec>
             <spec_assertion interface="DataControlManager" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
@@ -82,7 +82,7 @@
         <specs>
           <spec>
             <spec_assertion interface="DataControlSelectSuccessCallback" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
@@ -94,7 +94,7 @@
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="DataControlSuccessCallback" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="insert" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="remove" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="update" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="select" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="addValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="getValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="DataControlConsumerObject" element_type="attribute" element_name="type" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="DataControlManager" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="removeValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="updateValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="DataControlConsumerObject" element_type="attribute" element_name="dataId" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="DataControlConsumerObject" element_type="attribute" element_name="providerId" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="DataControlConsumerObject" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="DataControlConsumerObject" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if package exists in tizen." type="compliance" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P3" id="DataControlManager_in_tizen">
+      <testcase purpose="Check if datacontrol exists in tizen." type="compliance" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P3" id="DataControlManager_in_tizen">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_in_tizen.html</test_script_entry>
         </description>
         <specs>
           <spec>
             <spec_assertion interface="DataControlManager" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="insert" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="update" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="remove" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="select" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="DataControlInsertSuccessCallback" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="DataControlSelectSuccessCallback" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="DataControlSuccessCallback" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="getValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="removeValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="updateValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="DataControlSuccessCallback" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="DataControlGetValueSuccessCallback" usage="true" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="select" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="DataControlManager" element_type="method" element_name="getDataControlConsumer" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="DataControlManager" element_type="method" element_name="getDataControlConsumer" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="DataControlManager" element_type="method" element_name="getDataControlConsumer" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="DataControlManager" element_type="method" element_name="getDataControlConsumer" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="insert" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="insert" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="update" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="update" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="remove" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="remove" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="select" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="select" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="select" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="removeValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="getValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="updateValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="update" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="insert" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="getValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="removeValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="updateValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="insert" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="insert" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="insert" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="update" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="update" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="update" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="remove" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="remove" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="select" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="select" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="select" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="insert" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="insert" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="update" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="update" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="updateValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="updateValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="updateValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="MappedDataControlConsumer" element_type="method" element_name="updateValue" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="remove" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="remove" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="select" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
         <specs>
           <spec>
             <spec_assertion interface="SQLDataControlConsumer" element_type="method" element_name="select" specification="Datacontrol" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
index f7866e60006a1e796368bd4cbd314073d12811fb..e154ae2a3af7a0c77903b2aa2b23bab5cede86b1 100644 (file)
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/DataControlConsumerObject_extend.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if package exists in tizen." component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="DataControlManager_in_tizen">
+      <testcase purpose="Check if datacontrol exists in tizen." component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="DataControlManager_in_tizen">
         <description>
           <test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/DataControlManager_in_tizen.html</test_script_entry>
         </description>