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"/>
//==== 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 () {
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>
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>
//==== 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>
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"/>
//==== 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>
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"/>
//==== 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 () {
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"/>
//==== 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 () {
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"/>
//==== 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>
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"/>
//==== 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>
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"/>
//==== 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});
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");
});
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);
});
globalDataControl.addValue(globalReqId, key, value, addSuccess, addError);
});
-
</script>
</body>
</html>
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"/>
//==== 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>
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"/>
//==== 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
};
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();
});
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"/>
//==== 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>
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"/>
//==== 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>
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"/>
//==== 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");
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"/>
//==== 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 () {
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");
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"/>
//==== 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 () {
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"/>
//==== 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>
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"/>
//==== 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 () {
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>
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"/>
<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>
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"/>
//==== 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>
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"/>
//==== 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>
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"/>
//==== 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
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"/>
//==== 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>
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"/>
//==== 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
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();
});
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"/>
//==== 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
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) {
assert_equals(returnedValue, undefined, "Incorrect returned value");
});
+
</script>
</body>
</html>
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);
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>
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>
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>
//==== 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");
}, exceptionName + " should be thrown. Given - " + successCallback);
}
}, "MappedDataControlConsumer_addValue_successCallback_TypeMismatch");
+
</script>
</body>
</html>
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>
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();
});
returnedValue = dataConsumer.addValue(globalReqId, currentDate, value, addSuccessCallback, addErrorCallback);
});
+
</script>
</body>
</html>
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();
});
});
returnedValue = dataConsumer.addValue(globalReqId, currentDate, value, addSuccessCallback);
});
+
</script>
</body>
</html>
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>
//==== 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>
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"/>
//==== 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});
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");
});
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);
});
globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
globalDataControl.addValue(globalReqId, key, value, addSuccess, addError);
});
+
</script>
</body>
</html>
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);
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>
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>
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>
//==== 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");
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"/>
//==== 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});
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();
});
}, exceptionName + " should be thrown. Given - " + successCallback);
}
}, "MappedDataControlConsumer_getValue_successCallback_TypeMismatch");
+
</script>
</body>
</html>
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>
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"/>
//==== 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});
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");
});
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);
});
globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
globalDataControl.addValue(globalReqId, key, value, addSuccess, addError);
});
+
</script>
</body>
</html>
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"/>
//==== 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>
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"/>
//==== 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});
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) {
});
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);
});
});
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);
});
t.done();
});
+
</script>
</body>
</html>
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";
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>
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>
//==== 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");
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"/>
//==== 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});
}, exceptionName + " should be thrown. Given - " + successCallback);
}
}, "MappedDataControlConsumer_removeValue_successCallback_TypeMismatch");
+
</script>
</body>
</html>
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>
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"/>
//==== 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});
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) {
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);
});
globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
globalDataControl.addValue(globalReqId, key, value, addSuccess, addError);
});
+
</script>
</body>
</html>
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"/>
//==== 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});
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");
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, updateError);
});
globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
globalDataControl.addValue(globalReqId, key, value, addSuccess, addError);
});
+
</script>
</body>
</html>
-->
-<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>
//==== 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);
});
-->
-<html lang="en">
+<html>
<head>
<title>MappedDataControlConsumer_updateValue_errorCallback_invalid_cb</title>
//==== 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
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();
});
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>
//==== 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");
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"/>
//==== 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});
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();
});
-->
-<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>
//==== 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);
});
-->
-<html lang="en">
+<html>
<head>
<title>MappedDataControlConsumer_updateValue_successCallback_invalid_cb</title>
//==== 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);
});
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"/>
//==== 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});
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");
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);
});
globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
globalDataControl.addValue(globalReqId, key, value, addSuccess, addError);
});
+
</script>
</body>
</html>
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>
//==== 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>
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"/>
//==== 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.");
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_insert_errorCallback_TypeMismatch</title>
//==== 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);
globalReqId++;
}
- this_test.done();
+ t.done();
});
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_insert_errorCallback_invalid_cb</title>
//==== 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();
});
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>
//==== 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");
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_insert_insertionData_TypeMismatch</title>
//==== 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);
globalReqId++;
}
- this_test.done();
+ t.done();
});
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"/>
//==== 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 () {
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_insert_successCallback_TypeMismatch</title>
//==== 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);
globalReqId++;
}
- this_test.done();
+ t.done();
});
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_insert_successCallback_invalid_cb</title>
//==== 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();
});
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"/>
//==== 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.");
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"/>
//==== 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>
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"/>
//==== 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>
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"/>
//==== 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 () {
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_remove_errorCallback_TypeMismatch</title>
//==== 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 () {
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);
});
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_remove_errorCallback_invalid_cb</title>
//==== 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);
});
globalDataControl.insert(globalReqId, rowData, insertSuccess, insertError);
});
-
-
-
</script>
</body>
</html>
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>
//==== 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");
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_remove_successCallback_TypeMismatch</title>
//==== 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 () {
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);
});
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_remove_successCallback_invalid_cb</title>
//==== 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);
});
globalDataControl.insert(globalReqId, rowData, insertSuccess, insertError);
});
-
-
-
</script>
</body>
</html>
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"/>
//==== 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 () {
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"/>
//==== 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++;
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"/>
//==== 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");
globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
insertSuccess();
});
+
</script>
</body>
</html>
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_select_columns_TypeMismatch</title>
//==== 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 () {
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);
});
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_select_errorCallback_TypeMismatch</title>
//==== 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 () {
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);
});
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_select_errorCallback_invalid_cb</title>
//==== 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);
});
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>
//==== 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");
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"/>
//==== 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});
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();
});
globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
globalDataControl.insert(globalReqId, rowData, insertSuccess, insertError);
});
+
</script>
</body>
</html>
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_select_successCallback_TypeMismatch</title>
//==== 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 () {
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);
});
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_select_successCallback_invalid_cb</title>
//==== 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);
});
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"/>
//==== 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");
globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
insertSuccess();
});
+
</script>
</body>
</html>
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"/>
//==== 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 () {
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");
globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
insertSuccess();
});
+
</script>
</body>
</html>
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"/>
//==== 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");
globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
insertSuccess();
});
+
</script>
</body>
</html>
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"/>
//==== 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.");
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_update_errorCallback_TypeMismatch</title>
//==== 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 () {
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);
});
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_update_errorCallback_invalid_cb</title>
//==== 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);
});
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>
//==== 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");
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"/>
//==== 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});
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();
});
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_update_successCallback_TypeMismatch</title>
//==== 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 () {
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);
});
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_update_successCallback_invalid_cb</title>
//==== 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);
});
-->
-<html lang="en">
+<html>
<head>
<title>SQLDataControlConsumer_update_updateData_TypeMismatch</title>
//==== 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 () {
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);
});
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"/>
//==== 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.");
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"/>
//==== 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++;
var TYPE_MAP = "MAP";
-function generateGlobalReqId(){
+function generateGlobalReqId() {
return new Date().getTime() % 1e8;
}
\ No newline at end of file
<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>
<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="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="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="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>
<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="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="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>
<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>