<head>
<title>DataControlConsumerObject_dataId_attribute</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
assert_own_property(globalDataControl, "dataId" , "DataControlConsumerObject does not own dataId property.");
check_readonly(globalDataControl, "dataId", DATA_ID, "String", DATA_ID + "Tizen");
-}, "DataControlConsumerObject_dataId_attribute");
+}, document.title);
</script>
</body>
<head>
<title>DataControlConsumerObject_extend</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
test(function () {
var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
check_extensibility(globalDataControl);
-}, "DataControlConsumerObject_extend");
+}, document.title);
</script>
</body>
<head>
<title>DataControlConsumerObject_notexist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
test(function () {
check_no_interface_object("DataControlConsumerObject");
-}, "DataControlConsumerObject_notexist");
+}, document.title);
</script>
</body>
<head>
<title>DataControlConsumerObject_providerId_attribute</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
assert_own_property(globalDataControl, "providerId" , "DataControlConsumerObject does not own providerId property.");
check_readonly(globalDataControl, "providerId", PROVIDER_ID, "String", PROVIDER_ID + "Tizen");
-}, "DataControlConsumerObject_providerId_attribute");
+}, document.title);
</script>
</body>
<head>
<title>DataControlConsumerObject_type_attribute</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
assert_own_property(globalDataControl, "type" , "DataControlConsumerObject does not own type property.");
check_readonly(globalDataControl, "type", TYPE_SQL, "String", TYPE_SQL + "Tizen");
-}, "DataControlConsumerObject_type_attribute");
+}, document.title);
</script>
</body>
<head>
<title>DataControlErrorCallback_notexist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
test(function () {
check_no_interface_object("DataControlErrorCallback");
-}, "DataControlErrorCallback_notexist");
+}, document.title);
</script>
</body>
<head>
<title>DataControlGetValueSuccessCallback_notexist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
test(function () {
check_no_interface_object("DataControlGetValueSuccessCallback");
-}, "DataControlGetValueSuccessCallback_notexist");
+}, document.title);
</script>
</body>
<head>
<title>DataControlGetValueSuccessCallback_onsuccess</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("DataControlGetValueSuccessCallback_onsuccess", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value",
getSuccess, getError, addSuccess, addError;
<head>
<title>DataControlInsertSuccessCallback_notexist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
test(function () {
check_no_interface_object("DataControlInsertSuccessCallback");
-}, "DataControlInsertSuccessCallback_notexist");
+}, document.title);
</script>
</body>
<head>
<title>DataControlInsertSuccessCallback_onsuccess</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("DataControlInsertSuccessCallback_onsuccess", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
+var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), insertError, insertSuccess, rowData;
t.step(function () {
insertSuccess = t.step_func(function (reqId, insertRowId) {
assert_equals(reqId, globalReqId, "Incorrect request id");
- assert_type(insertRowId, "number", "insertRowId is not a number.");
+ assert_type(reqId, "unsigned long", "reqId is not unsigned long");
+ assert_type(insertRowId, "long", "insertRowId is not long.");
t.done();
});
<head>
<title>DataControlManagerObject_notexist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
test(function () {
check_no_interface_object("DataControlManagerObject");
-}, "DataControlManagerObject_notexist");
+}, document.title);
</script>
</body>
<head>
<title>DataControlManager_extend</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
test(function () {
check_extensibility(tizen.datacontrol);
-}, "DataControlManager_extend");
+}, document.title);
</script>
</body>
<head>
<title>DataControlManager_getDataControlConsumer_MAP</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
assert_type(globalDataControl.getValue, "function", "getValue is not a function");
assert_type(globalDataControl.updateValue, "function", "updateValue is not a function");
-}, "DataControlManager_getDataControlConsumer_MAP");
+}, document.title);
</script>
</body>
<head>
<title>DataControlManager_getDataControlConsumer_SQL</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
assert_type(globalDataControl.remove, "function", "remove is not a function");
assert_type(globalDataControl.select, "function", "select is not a function");
-}, "DataControlManager_getDataControlConsumer_SQL");
+}, document.title);
</script>
</body>
<head>
<title>DataControlManager_getDataControlConsumer_exist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
test(function () {
assert_true("getDataControlConsumer" in tizen.datacontrol, "No getDataControlConsumer method in tizen.datacontrol");
check_method_exists(tizen.datacontrol, "getDataControlConsumer");
-}, "DataControlManager_getDataControlConsumer_exist");
+}, document.title);
</script>
</body>
<head>
<title>DataControlManager_getDataControlConsumer_missarg</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
test(function () {
var exceptionName = "TypeMismatchError";
- assert_throws({name : exceptionName}, function () {
+ assert_throws({name: exceptionName}, function () {
tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID);
}, exceptionName + " should be thrown - missing type");
-}, "DataControlManager_getDataControlConsumer_missarg");
+}, document.title);
</script>
</body>
<head>
<title>DataControlManager_getDataControlConsumer_type_TypeMismatch</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
invalidType = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName}, function () {
+ assert_throws({name: exceptionName}, function () {
tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, invalidType);
}, exceptionName + " should be thrown - missing success callback");
}
-}, "DataControlManager_getDataControlConsumer_type_TypeMismatch");
+}, document.title);
</script>
</body>
<head>
<title>DataControlManager_in_tizen</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
test(function () {
assert_true("datacontrol" in tizen, "No datacontrol in tizen.");
check_readonly(tizen, "datacontrol", tizen.datacontrol, "object", "dummyValue");
-}, "DataControlManager_in_tizen");
+}, document.title);
</script>
</body>
<head>
<title>DataControlManager_notexist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
test(function () {
check_no_interface_object("DataControlManager");
-}, "DataControlManager_notexist");
+}, document.title);
</script>
</body>
<head>
<title>DataControlSelectSuccessCallback_notexist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
test(function () {
check_no_interface_object("DataControlSelectSuccessCallback");
-}, "DataControlSelectSuccessCallback_notexist");
+}, document.title);
</script>
</body>
<head>
<title>DataControlSelectSuccessCallback_onsuccess</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("DataControlSelectSuccessCallback_onsuccess", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
+var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, i, insertedData = {},
rowData, description = currentDate + "_desc", descriptionToSet = "'" + description + "'", columnsToSet = ["WORD",
"WORD_DESC"], numberOfElements = 5, key, wordColumnValue, wordDescColumnValue, insertCounter = 0;
insertSuccess = t.step_func(function (reqId, insertRowId) {
globalReqId++;
insertCounter++;
+ //check to execute appropriate number of inserts before selecting
if (insertCounter <= numberOfElements) {
rowData = {};
rowData.columns = columnsToSet;
<head>
<title>DataControlSuccessCallback_notexist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
test(function () {
check_no_interface_object("DataControlSuccessCallback");
-}, "DataControlSuccessCallback_notexist");
+}, document.title);
</script>
</body>
<head>
<title>DataControlSuccessCallback_onsuccess_MAP</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("DataControlSuccessCallback_onsuccess_MAP", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value",
addSuccess, addError;
<head>
<title>DataControlSuccessCallback_onsuccess_SQL</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("DataControlSuccessCallback_onsuccess_SQL", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
+var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), insertSuccess, insertError, rowData, removeSuccess, removeError;
t.step(function () {
<html>
<head>
<title>MappedDataControlConsumer_addValue</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
returnedValue = dataConsumer.addValue(globalReqId, currentDate, value);
assert_equals(returnedValue, undefined, "Incorrect returned value");
-});
+}, document.title);
</script>
</body>
<html>
<head>
<title>MappedDataControlConsumer_addValue_errorCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_addValue_errorCallback_TypeMismatch", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
conversionTable, successCallback, errorCallback, exceptionName, i, globalReqId = generateGlobalReqId(),
dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP),
currentDate = new Date().getTime().toString(), value = "samsung";
<html>
<head>
<title>MappedDataControlConsumer_addValue_errorCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_addValue_errorCallback_invalid_cb", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
successCallback, invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP),
currentDate = new Date().getTime().toString(), value = "samsung";
<head>
<title>MappedDataControlConsumer_addValue_exist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
assert_true("addValue" in globalDataControl, "No addValue method in globalDataControl");
check_method_exists(globalDataControl, "addValue");
-}, "MappedDataControlConsumer_addValue_exist");
+}, document.title);
</script>
</body>
<html>
<head>
<title>MappedDataControlConsumer_addValue_successCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
dataConsumer.addValue(globalReqId, currentDate, value, successCallback);
}, exceptionName + " should be thrown. Given - " + successCallback);
}
-}, "MappedDataControlConsumer_addValue_successCallback_TypeMismatch");
+}, document.title);
</script>
</body>
<html>
<head>
<title>MappedDataControlConsumer_addValue_successCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_addValue_successCallback_invalid_cb", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP),
currentDate = new Date().getTime().toString(), value = "samsung";
<html>
<head>
<title>MappedDataControlConsumer_addValue_with_errorCallback</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MOA MAST
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_addValue_with_errorCallback", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
getSuccessCallback, getErrorCallback, dataConsumer, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), value = "samsung", returnedValue = null,
addSuccessCallback, addErrorCallback;
<html>
<head>
<title>MappedDataControlConsumer_addValue_with_successCallback</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MOA MAST
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_addValue_with_successCallback", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
addSuccessCallback, getSuccessCallback, getErrorCallback, dataConsumer, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), value = "samsung", returnedValue = null;
<head>
<title>MappedDataControlConsumer_extend</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
test(function () {
var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
check_extensibility(globalDataControl);
-}, "MappedDataControlConsumer_extend");
+}, document.title);
</script>
</body>
<head>
<title>MappedDataControlConsumer_getValue</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MOA MR
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_getValue", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value",
getSuccess, getError, addSuccess, addError, returnedValue = null;
<html>
<head>
<title>MappedDataControlConsumer_getValue_errorCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_getValue_errorCallback_TypeMismatch", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
conversionTable, successCallback, errorCallback, exceptionName, i, globalReqId = generateGlobalReqId(),
dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP),
currentDate = new Date().getTime().toString();
<html>
<head>
<title>MappedDataControlConsumer_getValue_errorCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_getValue_errorCallback_invalid_cb", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
successCallback, invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP),
currentDate = new Date().getTime().toString();
<head>
<title>MappedDataControlConsumer_getValue_exist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
assert_true("getValue" in globalDataControl, "No getValue method in globalDataControl");
check_method_exists(globalDataControl, "getValue");
-}, "MappedDataControlConsumer_getValue_exist");
+}, document.title);
</script>
</body>
<head>
<title>MappedDataControlConsumer_getValue_missarg</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_getValue_missarg", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value",
addSuccess, addError, exceptionName = "TypeMismatchError";
addSuccess = t.step_func(function (reqId) {
assert_equals(reqId, globalReqId, "incorrect request id");
globalReqId++;
- assert_throws({name : exceptionName}, function () {
+ assert_throws({name: exceptionName}, function () {
globalDataControl.getValue(globalReqId, key);
}, exceptionName + " should be thrown - missing success callback");
t.done();
<html>
<head>
<title>MappedDataControlConsumer_getValue_successCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
dataConsumer.getValue(globalReqId, currentDate, successCallback);
}, exceptionName + " should be thrown. Given - " + successCallback);
}
-}, "MappedDataControlConsumer_getValue_successCallback_TypeMismatch");
+}, document.title);
</script>
</body>
<html>
<head>
<title>MappedDataControlConsumer_getValue_successCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_getValue_successCallback_invalid_cb", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP),
currentDate = new Date().getTime().toString();
<head>
<title>MappedDataControlConsumer_getValue_without_errorCallback</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MMINA MR
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_getValue_without_errorCallback", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value",
getSuccess, addSuccess, addError, returnedValue = null;
<head>
<title>MappedDataControlConsumer_notexist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
test(function () {
check_no_interface_object("MappedDataControlConsumer");
-}, "MappedDataControlConsumer_notexist");
+}, document.title);
</script>
</body>
<head>
<title>MappedDataControlConsumer_removeValue</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MOA MAST
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_removeValue", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value",
getSuccess, getError, addSuccess, addError, removeSuccess, removeError, returnedValue = null;
<html>
<head>
<title>MappedDataControlConsumer_removeValue_errorCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_removeValue_errorCallback_TypeMismatch", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
conversionTable, successCallback, errorCallback, exceptionName, i, globalReqId = generateGlobalReqId(),
dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP),
currentDate = new Date().getTime().toString(), value = "samsung";
<html>
<head>
<title>MappedDataControlConsumer_removeValue_errorCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_removeValue_errorCallback_invalid_cb", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
successCallback, invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP),
currentDate = new Date().getTime().toString(), value = "samsung";
<head>
<title>MappedDataControlConsumer_removeValue_exist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
assert_true("removeValue" in globalDataControl, "No removeValue method in globalDataControl");
check_method_exists(globalDataControl, "removeValue");
-}, "MappedDataControlConsumer_removeValue_exist");
+}, document.title);
</script>
</body>
<head>
<title>MappedDataControlConsumer_removeValue_missarg</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_removeValue_missarg", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value", exceptionName = "TypeMismatchError",
addSuccess, addError;
addSuccess = t.step_func(function (reqId) {
assert_equals(reqId, globalReqId, "incorrect request id");
globalReqId++;
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
globalDataControl.removeValue(globalReqId, key, value);
}, exceptionName + " should be thrown - missing success callback.");
<html>
<head>
<title>MappedDataControlConsumer_removeValue_successCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
dataConsumer.removeValue(globalReqId, currentDate, value, successCallback);
}, exceptionName + " should be thrown. Given - " + successCallback);
}
-}, "MappedDataControlConsumer_removeValue_successCallback_TypeMismatch");
+}, document.title);
</script>
</body>
<html>
<head>
<title>MappedDataControlConsumer_removeValue_successCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_removeValue_successCallback_invalid_cb", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
invalidCallback, exceptionName = "TypeMismatchError", globalReqId = generateGlobalReqId(),
dataConsumer = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP),
currentDate = new Date().getTime().toString(), value = "samsung";
<head>
<title>MappedDataControlConsumer_removeValue_without_errorCallback</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MMINA MAST
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_removeValue_without_errorCallback", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value",
getSuccess, getError, addSuccess, addError, removeSuccess, returnedValue = null;
<head>
<title>MappedDataControlConsumer_updateValue</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MAST MOA
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_updateValue", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value",
getSuccess, getError, addSuccess, addError, updatedValue = currentDate + "updatedValue",
<head>
<title>MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch
-//==== LABEL check optional argument errorCallback (updateValue method) type conversion
+//==== LABEL Check optional argument errorCallback (updateValue method) type conversion
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:updateValue M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), updateSuccess, updatedValue = currentDate + "updatedValue",
key = currentDate, value = currentDate + "value", addSuccess, addError, conversionTable = getTypeConversionExceptions("functionObject",
true);
<head>
<title>MappedDataControlConsumer_updateValue_errorCallback_invalid_cb</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: MappedDataControlConsumer_updateValue_errorCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onerror) was passed into updateValue method
+//==== LABEL Check if an exception was thrown when a fake callback (onerror) was passed into updateValue method
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:updateValue M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_updateValue_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), updateSuccess, updatedValue = currentDate + "updatedValue",
key = currentDate, value = currentDate + "value", addSuccess, addError, invalidCallback;
t.step(function () {
});
addSuccess = t.step_func(function () {
- assert_throws({name: "TypeMismatchError"}, function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
globalDataControl.updateValue(globalReqId, key, value, updatedValue, updateSuccess, invalidCallback);
}, "exception should be thrown");
t.done();
<head>
<title>MappedDataControlConsumer_updateValue_exist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_MAP);
assert_true("updateValue" in globalDataControl, "No updateValue method in globalDataControl");
check_method_exists(globalDataControl, "updateValue");
-}, "MappedDataControlConsumer_updateValue_exist");
+}, document.title);
</script>
</body>
<head>
<title>MappedDataControlConsumer_updateValue_missarg</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_updateValue_without_errorCallback"),
+var t = async_test(document.title),
globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value",
addSuccess, addError, updatedValue = currentDate + "updatedValue", exceptionName = "TypeMismatchError";
addSuccess = t.step_func(function (reqId) {
assert_equals(reqId, globalReqId, "incorrect request id");
globalReqId++;
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
globalDataControl.updateValue(globalReqId, key, value, updatedValue);
}, exceptionName + " should be thrown - missing success callback");
<head>
<title>MappedDataControlConsumer_updateValue_successCallback_TypeMismatch</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: MappedDataControlConsumer_updateValue_successCallback_TypeMismatch
-//==== LABEL check non-optional argument successCallback (updateValue method) type conversion
+//==== LABEL Check non-optional argument successCallback (updateValue method) type conversion
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:updateValue M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_updateValue_successCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), updatedValue = currentDate + "updatedValue",
key = currentDate, value = currentDate + "value", addSuccess, addError, conversionTable = getTypeConversionExceptions("functionObject");
t.step(function () {
<head>
<title>MappedDataControlConsumer_updateValue_successCallback_invalid_cb</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: MappedDataControlConsumer_updateValue_successCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onsuccess) was passed into updateValue method
+//==== LABEL Check if an exception was thrown when a fake callback (onsuccess) was passed into updateValue method
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:MappedDataControlConsumer:updateValue M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_updateValue_successCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), updatedValue = currentDate + "updatedValue",
key = currentDate, value = currentDate + "value", addSuccess, addError, invalidCallback;
t.step(function () {
};
addSuccess = t.step_func(function () {
- assert_throws({name: "TypeMismatchError"}, function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
globalDataControl.updateValue(globalReqId, key, value, updatedValue, invalidCallback);
}, "exception should be thrown");
t.done();
<head>
<title>MappedDataControlConsumer_updateValue_without_errorCallback</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MAST MMINA
setup({timeout: 30000});
-var t = async_test("MappedDataControlConsumer_updateValue_without_errorCallback", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), key = currentDate, value = currentDate + "value",
getSuccess, getError, addSuccess, addError, updatedValue = currentDate + "updatedValue",
<head>
<title>SQLDataControlConsumer_extend</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
test(function () {
var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
check_extensibility(globalDataControl);
-}, "SQLDataControlConsumer_extend");
+}, document.title);
</script>
</body>
<head>
<title>SQLDataControlConsumer_insert</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MOA MAST
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_insert", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
+var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, rowData,
returnedValue = null, descriptionToSet = currentDate + "_desc";
t.step(function () {
insertSuccess = t.step_func(function (reqId, insertRowId) {
assert_equals(returnedValue, undefined, "Incorrect returned value");
assert_equals(reqId, globalReqId, "incorrect request id");
- assert_type(insertRowId, "number", "insertRowId is not a number.");
+ assert_type(reqId, "unsigned long", "reqId is not unsigned long");
+ assert_type(insertRowId, "long", "insertRowId is not long.");
globalReqId++;
globalDataControl.select(globalReqId, rowData.columns,
<head>
<title>SQLDataControlConsumer_insert_errorCallback_TypeMismatch</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_insert_errorCallback_TypeMismatch
-//==== LABEL check optional argument errorCallback (insert method) type conversion
+//==== LABEL Check optional argument errorCallback (insert method) type conversion
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:insert M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_insert_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
conversionTable = getTypeConversionExceptions("functionObject", true);
t.step(function () {
<head>
<title>SQLDataControlConsumer_insert_errorCallback_invalid_cb</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_insert_errorCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onerror) was passed into insert method
+//==== LABEL Check if an exception was thrown when a fake callback (onerror) was passed into insert method
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:insert M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_insert_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
invalidCallback;
t.step(function () {
globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
- assert_throws({name: "TypeMismatchError"}, function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
globalDataControl.insert(globalReqId, rowData, insertSuccess, invalidCallback);
}, "exception should be thrown");
<head>
<title>SQLDataControlConsumer_insert_exist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
assert_true("insert" in globalDataControl, "No insert method in globalDataControl");
check_method_exists(globalDataControl, "insert");
-}, "SQLDataControlConsumer_insert_exist");
+}, document.title);
</script>
</body>
<head>
<title>SQLDataControlConsumer_insert_insertionData_TypeMismatch</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_insert_insertionData_TypeMismatch
-//==== LABEL check non-optional argument insertionData (insert method) type conversion
+//==== LABEL Check non-optional argument insertionData (insert method) type conversion
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:insert M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_insert_insertionData_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
globalReqId = generateGlobalReqId(), insertSuccess, conversionTable = getTypeConversionExceptions("dictionary", false);
t.step(function () {
<head>
<title>SQLDataControlConsumer_insert_missarg</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
globalDataControl.insert(globalReqId);
}, exceptionName + " should be thrown - missing RowData object.");
-}, "SQLDataControlConsumer_insert_missarg");
+}, document.title);
</script>
</body>
<head>
<title>SQLDataControlConsumer_insert_successCallback_TypeMismatch</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_insert_successCallback_TypeMismatch
-//==== LABEL check optional argument successCallback (insert method) type conversion
+//==== LABEL Check optional argument successCallback (insert method) type conversion
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:insert M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_insert_successCallback_TypeMismatch", {timeout: 30000}), i, rowData, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, rowData, globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(),
conversionTable = getTypeConversionExceptions("functionObject", true);
t.step(function () {
<head>
<title>SQLDataControlConsumer_insert_successCallback_invalid_cb</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_insert_successCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onsuccess) was passed into insert method
+//==== LABEL Check if an exception was thrown when a fake callback (onsuccess) was passed into insert method
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:insert M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_insert_successCallback_invalid_cb", {timeout: 30000}), rowData, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), rowData, globalDataControl,
globalReqId = generateGlobalReqId(), invalidCallback, currentDate = new Date().getTime().toString();
t.step(function () {
globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
- assert_throws({name: "TypeMismatchError"}, function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
globalDataControl.insert(globalReqId, rowData, invalidCallback);
}, "exception should be thrown");
<head>
<title>SQLDataControlConsumer_insert_without_errorCallback</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MOA MAST
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_insert_without_errorCallback", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess,
selectSuccess, rowData, returnedValue = null, descriptionToSet = currentDate + "_desc";
t.step(function () {
insertSuccess = t.step_func(function (reqId, insertRowId) {
assert_equals(returnedValue, undefined, "Incorrect returned value");
assert_equals(reqId, globalReqId, "incorrect request id");
- assert_type(insertRowId, "number", "insertRowId is not a number.");
+ assert_type(reqId, "unsigned long", "reqId is not unsigned long");
+ assert_type(insertRowId, "long", "insertRowId is not long.");
globalReqId++;
globalDataControl.select(globalReqId, rowData.columns,
<head>
<title>SQLDataControlConsumer_insert_without_successCallback</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
returnedValue = globalDataControl.insert(globalReqId, rowData);
assert_equals(returnedValue, undefined, "Incorrect returned value");
-}, "SQLDataControlConsumer_insert_without_successCallback");
+}, document.title);
</script>
</body>
<head>
<title>SQLDataControlConsumer_notexist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
test(function () {
check_no_interface_object("SQLDataControlConsumer");
-}, "SQLDataControlConsumer_notexist");
+}, document.title);
</script>
</body>
<head>
<title>SQLDataControlConsumer_remove</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MAST MOA
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_remove", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
+var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, rowData,
removeSuccess, removeError, returnedValue = null, columnsToSet = ["WORD", "WORD_DESC"], description = currentDate + "_desc",
descriptionToSet = "'" + description + "'", rowDataToRemove = {}, rowDataToSelect = {}, keyToRemove = currentDate + 1,
insertSuccess = t.step_func(function (reqId, insertRowId) {
globalReqId++;
insertCounter++;
+ //check to execute appropriate number of inserts before removing
if (insertCounter <= 2) {
rowDataToSelect.columns = columnsToSet;
rowDataToSelect.values = ["'" + keyToSelect + "'", descriptionToSet];
<head>
<title>SQLDataControlConsumer_remove_errorCallback_TypeMismatch</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_remove_errorCallback_TypeMismatch
-//==== LABEL check optional argument errorCallback (remove method) type conversion
+//==== LABEL Check optional argument errorCallback (remove method) type conversion
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:remove M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_remove_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), removeSuccess, rowData,
insertSuccess, insertError, conversionTable = getTypeConversionExceptions("functionObject", true);
t.step(function () {
<head>
<title>SQLDataControlConsumer_remove_errorCallback_invalid_cb</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_remove_errorCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onerror) was passed into remove method
+//==== LABEL Check if an exception was thrown when a fake callback (onerror) was passed into remove method
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:remove M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_remove_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
insertError, removeSuccess, invalidCallback;
t.step(function () {
});
insertSuccess = t.step_func(function () {
- assert_throws({name: "TypeMismatchError"}, function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
globalDataControl.remove(globalReqId,
rowData.columns[0] + "=" + rowData.values[0], removeSuccess, invalidCallback);
}, "exception should be thrown");
<head>
<title>SQLDataControlConsumer_remove_exist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
assert_true("remove" in globalDataControl, "No remove method in globalDataControl");
check_method_exists(globalDataControl, "remove");
-}, "SQLDataControlConsumer_remove_exist");
+}, document.title);
</script>
</body>
<head>
<title>SQLDataControlConsumer_remove_successCallback_TypeMismatch</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_remove_successCallback_TypeMismatch
-//==== LABEL check optional argument successCallback (remove method) type conversion
+//==== LABEL Check optional argument successCallback (remove method) type conversion
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:remove M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_remove_successCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
insertError, conversionTable = getTypeConversionExceptions("functionObject", true);
t.step(function () {
<head>
<title>SQLDataControlConsumer_remove_successCallback_invalid_cb</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_remove_successCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onsuccess) was passed into remove method
+//==== LABEL Check if an exception was thrown when a fake callback (onsuccess) was passed into remove method
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:remove M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_remove_successCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
insertError, invalidCallback;
t.step(function () {
};
insertSuccess = t.step_func(function () {
- assert_throws({name: "TypeMismatchError"}, function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
globalDataControl.remove(globalReqId,
rowData.columns[0] + "=" + rowData.values[0], invalidCallback);
}, "exception should be thrown");
<head>
<title>SQLDataControlConsumer_remove_without_errorCallback</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MAST MOA
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_remove_without_errorCallback", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess,
insertError, selectSuccess, rowData, removeSuccess, returnedValue = null,
columnsToSet = ["WORD", "WORD_DESC"], description = currentDate + "_desc",
insertSuccess = t.step_func(function (reqId, insertRowId) {
globalReqId++;
insertCounter++;
+ //check to execute appropriate number of inserts before removing
if (insertCounter <= 2) {
rowDataToSelect.columns = columnsToSet;
rowDataToSelect.values = ["'" + keyToSelect + "'", descriptionToSet];
<head>
<title>SQLDataControlConsumer_remove_without_successCallback</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MMINA
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_remove_without_successCallback", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), insertSuccess, insertError,
rowData, returnedValue = null;
t.step(function () {
<head>
<title>SQLDataControlConsumer_select</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MOA
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_select", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
+var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, i,
returnedValue = null, insertedData = {}, rowData, description = currentDate + "_desc",
descriptionToSet = "'" + description + "'", columnsToSet = ["WORD", "WORD_DESC"], numberOfElements = 5,
insertSuccess = t.step_func(function (reqId, insertRowId) {
globalReqId++;
insertCounter++;
+ //check to execute appropriate number of inserts before selecting
if (insertCounter <= numberOfElements) {
rowData = {};
rowData.columns = columnsToSet;
<head>
<title>SQLDataControlConsumer_select_columns_TypeMismatch</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_select_columns_TypeMismatch
-//==== LABEL check non-optional argument columns (select method) type conversion
+//==== LABEL Check non-optional argument columns (select method) type conversion
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:select M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_select_columns_TypeMismatch", {timeout: 30000}), i, globalDataControl, globalReqId = generateGlobalReqId(),
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), rowData, insertSuccess, selectSuccess, insertError,
conversionTable = getTypeConversionExceptions("array", false);
t.step(function () {
<head>
<title>SQLDataControlConsumer_select_errorCallback_TypeMismatch</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_select_errorCallback_TypeMismatch
-//==== LABEL check optional argument errorCallback (select method) type conversion
+//==== LABEL Check optional argument errorCallback (select method) type conversion
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:select M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_select_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, selectSuccess,
insertSuccess, insertError, conversionTable = getTypeConversionExceptions("functionObject", true);
t.step(function () {
<head>
<title>SQLDataControlConsumer_select_errorCallback_invalid_cb</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_select_errorCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onerror) was passed into select method
+//==== LABEL Check if an exception was thrown when a fake callback (onerror) was passed into select method
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:select M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_select_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
insertError, selectSuccess, invalidCallback;
t.step(function () {
};
insertSuccess = t.step_func(function () {
- assert_throws({name: "TypeMismatchError"}, function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
globalDataControl.select(globalReqId, rowData.columns,
rowData.columns[0] + "=" + rowData.values[0], selectSuccess, invalidCallback);
}, "exception should be thrown");
<head>
<title>SQLDataControlConsumer_select_exist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
assert_true("select" in globalDataControl, "No select method in globalDataControl");
check_method_exists(globalDataControl, "select");
-}, "SQLDataControlConsumer_select_exist");
+}, document.title);
</script>
</body>
<head>
<title>SQLDataControlConsumer_select_missarg</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_select_missarg", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
+var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), insertSuccess, insertError, rowData, exceptionName = "TypeMismatchError";
t.step(function () {
insertSuccess = t.step_func(function (reqId, insertRowId) {
globalReqId++;
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
globalDataControl.select(globalReqId);
}, exceptionName + " should be thrown - missing columns");
<head>
<title>SQLDataControlConsumer_select_successCallback_TypeMismatch</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_select_successCallback_TypeMismatch
-//==== LABEL check non-optional argument successCallback (select method) type conversion
+//==== LABEL Check non-optional argument successCallback (select method) type conversion
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:select M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_select_successCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
insertError, conversionTable = getTypeConversionExceptions("functionObject");
t.step(function () {
<head>
<title>SQLDataControlConsumer_select_successCallback_invalid_cb</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_select_successCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onsuccess) was passed into select method
+//==== LABEL Check if an exception was thrown when a fake callback (onsuccess) was passed into select method
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:select M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
//==== PRIORITY P2
//==== TEST_CRITERIA MTCB
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_select_successCallback_invalid_cb", {timeout: 30000}),
+var t = async_test(document.title, {timeout: 30000}),
globalDataControl, globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData,
insertSuccess, insertError, invalidCallback;
t.step(function () {
};
insertSuccess = t.step_func(function () {
- assert_throws({name: "TypeMismatchError"}, function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
globalDataControl.select(globalReqId, rowData.columns,
rowData.columns[0] + "=" + rowData.values[0], invalidCallback);
}, "exception should be thrown");
<head>
<title>SQLDataControlConsumer_select_without_errorCallback</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MMINA
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_select_without_errorCallback", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), insertSuccess, insertError,
selectSuccess, i, returnedValue = null, insertedData = {}, rowData, description = currentDate + "_desc",
descriptionToSet = "'" + description + "'", columnsToSet = ["WORD", "WORD_DESC"], numberOfElements = 5,
insertSuccess = t.step_func(function (reqId, insertRowId) {
globalReqId++;
insertCounter++;
+ //check to execute appropriate number of inserts before selecting
if (insertCounter <= numberOfElements) {
rowData = {};
rowData.columns = columnsToSet;
<head>
<title>SQLDataControlConsumer_select_without_maxNumberPerPage</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MOA
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_select_without_maxNumberPerPage", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess,
insertError, selectSuccess, i, returnedValue = null, insertedData = {}, rowData, description = currentDate + "_desc",
descriptionToSet = "'" + description + "'", columnsToSet = ["WORD", "WORD_DESC"], numberOfElements = 5, key,
insertSuccess = t.step_func(function (reqId, insertRowId) {
globalReqId++;
insertCounter++;
+ //check to execute appropriate number of inserts before selecting
if (insertCounter <= numberOfElements) {
rowData = {};
rowData.columns = columnsToSet;
<head>
<title>SQLDataControlConsumer_select_without_page</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MOA
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_select_without_page", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
+var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, i, returnedValue = null,
insertedData = {}, rowData, description = currentDate + "_desc", descriptionToSet = "'" + description + "'",
columnsToSet = ["WORD", "WORD_DESC"], numberOfElements = 5, key, wordColumnValue, wordDescColumnValue, insertCounter = 0;
insertSuccess = t.step_func(function (reqId, insertRowId) {
globalReqId++;
insertCounter++;
+ //check to execute appropriate number of inserts before selecting
if (insertCounter <= numberOfElements) {
rowData = {};
rowData.columns = columnsToSet;
<head>
<title>SQLDataControlConsumer_update</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MAST MOA
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_update", {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
+var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), selectError, insertSuccess, insertError, selectSuccess, rowData,
rowDataUpdate, updateSuccess, updateError, returnedValue = null, descriptionUpdated = currentDate + "_desc_update",
keyUpdated = currentDate + "_update";
<head>
<title>SQLDataControlConsumer_update_errorCallback_TypeMismatch</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_update_errorCallback_TypeMismatch
-//==== LABEL check optional argument errorCallback (update method) type conversion
+//==== LABEL Check optional argument errorCallback (update method) type conversion
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:update M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_update_errorCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, rowDataUpdate,
insertSuccess, updateSuccess, insertError, conversionTable = getTypeConversionExceptions("functionObject",
true);
<head>
<title>SQLDataControlConsumer_update_errorCallback_invalid_cb</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_update_errorCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onerror) was passed into update method
+//==== LABEL Check if an exception was thrown when a fake callback (onerror) was passed into update method
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:update M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_update_errorCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, rowDataUpdate,
insertSuccess, updateSuccess, insertError, invalidCallback;
t.step(function () {
insertSuccess = t.step_func(function (reqId, insertRowId) {
globalReqId++;
- assert_throws({name: "TypeMismatchError"}, function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
globalDataControl.update(globalReqId, rowDataUpdate,
rowData.columns[0] + "=" + rowData.values[0], updateSuccess, invalidCallback);
}, "exception should be thrown");
<head>
<title>SQLDataControlConsumer_update_exist</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
var globalDataControl = tizen.datacontrol.getDataControlConsumer(PROVIDER_ID, DATA_ID, TYPE_SQL);
assert_true("update" in globalDataControl, "No update method in globalDataControl");
check_method_exists(globalDataControl, "update");
-}, "SQLDataControlConsumer_update_exist");
+}, document.title);
</script>
</body>
<head>
<title>SQLDataControlConsumer_update_missarg</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script type="text/javascript" src="support/datacontrol_common.js"></script>
</head>
//==== ONLOAD_DELAY 30
//==== TEST_CRITERIA MMA
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_update_missarg", {timeout:30000}), globalDataControl, globalReqId = generateGlobalReqId(),
+var t = async_test(document.title, {timeout: 30000}), globalDataControl, globalReqId = generateGlobalReqId(),
currentDate = new Date().getTime().toString(), insertSuccess, insertError, rowData, exceptionName = "TypeMismatchError";
t.step(function () {
insertSuccess = t.step_func(function (reqId, insertRowId) {
globalReqId++;
- assert_throws({name : exceptionName}, function () {
+ assert_throws({name: exceptionName}, function () {
globalDataControl.update(globalReqId);
}, exceptionName + " should be thrown - missing RowData object");
<head>
<title>SQLDataControlConsumer_update_successCallback_TypeMismatch</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_update_successCallback_TypeMismatch
-//==== LABEL check optional argument successCallback (update method) type conversion
+//==== LABEL Check optional argument successCallback (update method) type conversion
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:update M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_update_successCallback_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
insertError, conversionTable = getTypeConversionExceptions("functionObject", true), rowDataUpdate;
t.step(function () {
<head>
<title>SQLDataControlConsumer_update_successCallback_invalid_cb</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_update_successCallback_invalid_cb
-//==== LABEL check if an exception was thrown when a fake callback (onsuccess) was passed into update method
+//==== LABEL Check if an exception was thrown when a fake callback (onsuccess) was passed into update method
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:update M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_update_successCallback_invalid_cb", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, rowDataUpdate,
insertSuccess, insertError, invalidCallback;
t.step(function () {
};
insertSuccess = t.step_func(function (reqId, insertRowId) {
- assert_throws({name: "TypeMismatchError"}, function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
globalDataControl.update(globalReqId, rowDataUpdate,
rowData.columns[0] + "=" + rowData.values[0], invalidCallback);
}, "exception should be thrown");
<head>
<title>SQLDataControlConsumer_update_updateData_TypeMismatch</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
<script type="text/javascript">
//==== TEST: SQLDataControlConsumer_update_updateData_TypeMismatch
-//==== LABEL check non-optional argument updateData (update method) type conversion
+//==== LABEL Check non-optional argument updateData (update method) type conversion
//==== ONLOAD_DELAY 30
//==== SPEC Tizen Web API:TBD:Datacontrol:SQLDataControlConsumer:update M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_update_updateData_TypeMismatch", {timeout: 30000}), i, globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), i, globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), rowData, insertSuccess,
updateSuccess, insertError, conversionTable = getTypeConversionExceptions("dictionary", false);
t.step(function () {
<head>
<title>SQLDataControlConsumer_update_without_errorCallback</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MAST MOA
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_update_without_errorCallback", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), selectError, insertSuccess,
insertError, selectSuccess, rowData, rowDataUpdate, updateSuccess, returnedValue = null,
descriptionUpdated = currentDate + "_desc_update", keyUpdated = currentDate + "_update";
<head>
<title>SQLDataControlConsumer_update_without_successCallback</title>
<meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
<script src="support/datacontrol_common.js"></script>
</head>
//==== TEST_CRITERIA MR MMINA
setup({timeout: 30000});
-var t = async_test("SQLDataControlConsumer_update_without_successCallback", {timeout: 30000}), globalDataControl,
+var t = async_test(document.title, {timeout: 30000}), globalDataControl,
globalReqId = generateGlobalReqId(), currentDate = new Date().getTime().toString(), insertSuccess, insertError,
rowData, rowDataUpdate, returnedValue = null;
t.step(function () {
--- /dev/null
+/*
+
+Copyright (c) 2013 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+
+
+Authors:
+
+ */
+
+
+MIN_BYTE = -128;
+MAX_BYTE = 127;
+MIN_OCTET = 0;
+MAX_OCTET = 255;
+MIN_SHORT = -32768;
+MAX_SHORT = 32767;
+MIN_UNSIGNED_SHORT = 0;
+MAX_UNSIGNED_SHORT = 65535;
+MIN_LONG = -2147483648;
+MAX_LONG = 2147483647;
+MIN_UNSIGNED_LONG = 0;
+MAX_UNSIGNED_LONG = 4294967295;
+MIN_LONG_LONG = -9223372036854775808;
+MAX_LONG_LONG = 9223372036854775807;
+MIN_UNSIGNED_LONG_LONG = 0;
+MAX_UNSIGNED_LONG_LONG = 18446744073709551615;
+
+TYPE_MISMATCH_EXCEPTION = {name: 'TypeMismatchError'};
+NOT_FOUND_EXCEPTION = {name: 'NotFoundError'};
+INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'};
+IO_EXCEPTION = {name: 'IOError'};
+SECURITY_EXCEPTION = {name: 'SecurityError'};
+
+
+(function () {
+ var head_src = document.head.innerHTML;
+ if (head_src.search(/\/testharness.js\W/) === -1) {
+ document.write('<script language="javascript" src="../resources/testharness.js"></script>\n');
+ }
+ if (head_src.search(/\/testharnessreport.js\W/) === -1) {
+ document.write('<script language="javascript" src="../resources/testharnessreport.js"></script>\n');
+ }
+})();
+
+var _registered_types = {};
+
+function _resolve_registered_type(type) {
+ while (type in _registered_types) {
+ type = _registered_types[type];
+ }
+ return type;
+}
+
+/**
+ * Method checks extra argument for none argument method.
+ * The only check is that method will not throw an exception.
+ * Example usage:
+ * checkExtraArgument(tizen.notification, "removeAll");
+ *
+ * @param object object
+ * @param methodName string - name of the method
+ */
+function checkExtraArgument(object, methodName) {
+ var extraArgument = [
+ null,
+ undefined,
+ "Tizen",
+ 1,
+ false,
+ ["one", "two"],
+ {argument: 1},
+ function () {}
+ ], i;
+
+ for (i = 0; i < extraArgument.length; i++) {
+ object[methodName](extraArgument[i]);
+ }
+}
+
+/**
+ * Method to validate conversion.
+ * Example usage:
+ * conversionTable = getTypeConversionExceptions("functionObject", true);
+ * for(i = 0; i < conversionTable.length; i++) {
+ * errorCallback = conversionTable[i][0];
+ * exceptionName = conversionTable[i][1];
+ *
+ * assert_throws({name : exceptionName},
+ * function () {
+ * tizen.systemsetting.setProperty("HOME_SCREEN",
+ * propertyValue, successCallback, errorCallback);
+ * }, exceptionName + " should be thrown - given incorrect errorCallback.");
+ * }
+ *
+ * @param conversionType
+ * @param isOptional
+ * @returns table of tables which contain value (index 0) and exceptionName (index 1)
+ *
+ */
+function getTypeConversionExceptions(conversionType, isOptional) {
+ var exceptionName = "TypeMismatchError",
+ conversionTable;
+ switch (conversionType) {
+ case "enum":
+ conversionTable = [
+ [undefined, exceptionName],
+ [null, exceptionName],
+ [0, exceptionName],
+ [true, exceptionName],
+ ["dummyInvalidEnumValue", exceptionName],
+ [{ }, exceptionName]
+ ];
+ break;
+ case "double":
+ conversionTable = [
+ [undefined, exceptionName],
+ [NaN, exceptionName],
+ [Number.POSITIVE_INFINITY, exceptionName],
+ [Number.NEGATIVE_INFINITY, exceptionName],
+ ["TIZEN", exceptionName],
+ [{ name : "TIZEN" }, exceptionName],
+ [function () { }, exceptionName]
+ ];
+ break;
+ case "object":
+ conversionTable = [
+ [true, exceptionName],
+ [false, exceptionName],
+ [NaN, exceptionName],
+ [0, exceptionName],
+ ["", exceptionName],
+ ["TIZEN", exceptionName],
+ [undefined, exceptionName]
+ ];
+ if (!isOptional) {
+ conversionTable.push([null, exceptionName]);
+ }
+ break;
+ case "functionObject":
+ conversionTable = [
+ [true, exceptionName],
+ [false, exceptionName],
+ [NaN, exceptionName],
+ [0, exceptionName],
+ ["", exceptionName],
+ ["TIZEN", exceptionName],
+ [[], exceptionName],
+ [{ }, exceptionName],
+ [undefined, exceptionName]
+ ];
+ if (!isOptional) {
+ conversionTable.push([null, exceptionName]);
+ }
+ break;
+ case "array":
+ conversionTable = [
+ [true, exceptionName],
+ [false, exceptionName],
+ [NaN, exceptionName],
+ [0, exceptionName],
+ ["", exceptionName],
+ ["TIZEN", exceptionName],
+ [{ }, exceptionName],
+ [function () { }, exceptionName],
+ [undefined, exceptionName]
+ ];
+ if (!isOptional) {
+ conversionTable.push([null, exceptionName]);
+ }
+ break;
+ case "dictionary":
+ conversionTable = [
+ [true, exceptionName],
+ [false, exceptionName],
+ [NaN, exceptionName],
+ [0, exceptionName],
+ ["", exceptionName],
+ ["TIZEN", exceptionName],
+ [undefined, exceptionName]
+ ];
+ if (!isOptional) {
+ conversionTable.push([null, exceptionName]);
+ }
+ break;
+ default:
+ assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'.");
+ };
+
+ return conversionTable;
+}
+
+
+function assert_type(obj, type, description) {
+ var org_type = type, prop_name, prop_type, prop_value;
+
+ type = _resolve_registered_type(type);
+
+ if (typeof (type) === 'string') {
+ type = type.toLowerCase();
+ switch (type) {
+ case 'object':
+ case 'string':
+ case 'number':
+ case 'function':
+ case 'boolean':
+ case 'undefined':
+ case 'xml':
+ assert_equals(typeof (obj), type, description);
+ break;
+ case 'null':
+ assert_true(obj === null, description);
+ break;
+ case 'array':
+ assert_true(Array.isArray(obj), description);
+ break;
+ case 'date':
+ assert_true(obj instanceof Date, description);
+ break;
+ case 'byte':
+ assert_equals(typeof (obj), 'number', description);
+ assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low.");
+ assert_less_than_equal(obj, MAX_BYTE, description + " - value too high.");
+ assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+ break;
+ case 'octet':
+ assert_equals(typeof (obj), 'number', description);
+ assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low.");
+ assert_less_than_equal(obj, MAX_OCTET, description + " - value too high.");
+ assert_equals(obj % 1, 0, description + " - value is not an integer.");
+ break;
+ case 'short':
+ assert_equals(typeof (obj), 'number', description);
+ assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low.");
+ assert_less_than_equal(obj, MAX_SHORT, description + " - value too high.");
+ assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+ break;
+ case 'unsigned short':
+ assert_equals(typeof (obj), 'number', description);
+ assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low.");
+ assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high.");
+ assert_equals(obj % 1, 0, description + " - value is not an integer.");
+ break;
+ case 'long':
+ assert_equals(typeof (obj), 'number', description);
+ assert_greater_than_equal(obj, MIN_LONG, description + " - value too low.");
+ assert_less_than_equal(obj, MAX_LONG, description + " - value too high.");
+ assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+ break;
+ case 'unsigned long':
+ assert_equals(typeof (obj), 'number', description);
+ assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low.");
+ assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high.");
+ assert_equals(obj % 1, 0, description + " - value is not an integer.");
+ break;
+ case 'long long':
+ assert_equals(typeof (obj), 'number', description);
+ assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low.");
+ assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high.");
+ assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+ break;
+ case 'unsigned long long':
+ assert_equals(typeof (obj), 'number', description);
+ assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low.");
+ assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high.");
+ assert_equals(obj % 1, 0, description + " - value is not an integer.");
+ break;
+ default:
+ assert_unreached('Fix your test. Wrong type \'' + org_type + '\'');
+ }
+ } else if (typeof (type) === 'function') {
+ assert_true(obj instanceof type, description);
+ } else if (typeof (type) === 'object') {
+ for (prop_name in type) {
+ prop_type = type[prop_name];
+ if (prop_type === 'function') {
+ assert_inherits(obj, prop_name);
+ assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name);
+ } else {
+ assert_own_property(obj, prop_name);
+ }
+ }
+ } else {
+ assert_unreached('Fix your test. Wrong type ' + org_type);
+ }
+}
+
+function register_type(alias, type_spec) {
+ _registered_types[alias] = type_spec;
+}
+
+/**
+ * Method to check if attribute is const.
+ * Example usage:
+ * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B);
+ *
+ * @param obj object to test which has const attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+ var tmp;
+ if (expectedValue === valueToAssign) {
+ assert_unreached("Fix your test. The same values given for " + attributeName +
+ " in 'value' and 'valueToSet' arguments.");
+ }
+ if (typeof (attributeName) === "string") {
+ assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
+ assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
+ if (typeof (expectedType) !== "undefined") {
+ if (expectedValue === null) {
+ assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
+ } else {
+ assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
+ }
+ } else {
+ assert_unreached("Fix your test. Wrong type " + expectedType);
+ }
+ tmp = obj[attributeName];
+ obj[attributeName] = valueToAssign;
+ assert_equals(obj[attributeName], tmp, attributeName + " can be modified.");
+ } else {
+ assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
+ }
+}
+
+/**
+ * Method to check if attribute is readonly.
+ * Example usage:
+ * check_readonly(statusNotification, "postedTime", null, 'object', new Date());
+ *
+ * @param obj object to test which has readonly attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+ check_const(obj, attributeName, expectedValue, expectedType, valueToAssign);
+}
+
+/**
+ * Method to check if attribute can be set to null.
+ * Example usage:
+ * check_not_nullable(syncInfo, "mode");
+ *
+ * @param obj object to test which has not nullable attribute
+ * @param attributeName attribute name.
+ */
+function check_not_nullable(obj, attributeName)
+{ var old_value = obj[attributeName];
+ obj[attributeName] = null;
+ assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null.");
+ obj[attributeName] = old_value;
+}
+
+/**
+ * Method to check NoInterfaceObject
+ * Example usage:
+ * check_no_interface_object("BluetoothAdapter")
+ *
+ * @param interfaceName interface name
+ */
+function check_no_interface_object(interfaceName) {
+ assert_throws({name: "TypeError"}, function () {
+ tizen[interfaceName]();
+ },"Wrong call as a function");
+ assert_throws({name: "TypeError"}, function () {
+ new tizen[interfaceName]();
+ },"Wrong call as a new function");
+ assert_throws({name: "TypeError"}, function () {
+ ({}) instanceof tizen[interfaceName];
+ },"instanceof exception");
+ assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined.");
+}
+
+
+/**
+ * Method to check Constructors
+ * Example usage:
+ * check_constructor("BluetoothAdapter")
+ *
+ * @param constructorName constructor name
+ */
+
+function check_constructor(constructorName) {
+ assert_true(constructorName in tizen, "No " + constructorName + " in tizen.");
+ assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName);
+ assert_throws({
+ name: "TypeError"
+ }, function () {
+ tizen[constructorName]();
+ }, "Constructor called as function.");
+}
+
+/**
+ * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED).
+ * That method also checks if given method exists in a given object.
+ * Example usage:
+ * check_method_exists(tizen.notification, "get");
+ *
+ * @param obj object with method
+ * @param methodName name of the method to check.
+ */
+function check_method_exists(obj, methodName) {
+ assert_type(obj[methodName], 'function', "Method does not exist.");
+}
+
+/**
+ * Method to check extensibility of given object.
+ * Method checks if new attribute and method can be added.
+ * Example usage:
+ * check_extensibility(tizen.notification);
+ *
+ * @param obj object to check
+ */
+function check_extensibility(obj) {
+ var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue";
+ obj.newDummyMethod = function() {
+ return dummyMethodResult;
+ }
+ assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method.");
+
+ obj.newDummyAttribute = dummyAttribute;
+ assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute.");
+}
+
+/**
+ * Method to check if attribute can be modify.
+ * Example usage:
+ * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html");
+ *
+ * @param obj object to test which has not readonly attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+ if (expectedValue === valueToAssign) {
+ assert_unreached("Fix your test. The same values given for " + attributeName +
+ " in 'value' and 'valueToSet' arguments.");
+ }
+ if (typeof (attributeName) === "string") {
+ assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
+ assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
+ if (typeof (expectedType) !== "undefined") {
+ if (expectedValue === null) {
+ assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
+ } else {
+ assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
+ }
+ } else {
+ assert_unreached("Fix your test. Wrong type " + expectedType);
+ }
+ obj[attributeName] = valueToAssign;
+ assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified.");
+ } else {
+ assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
+ }
+}
+
+/**
+ * Method to check if whole array can be overwritten with an invalid value.
+ * Sample usage:
+ * check_invalid_array_assignments(message, "to", false);
+ *
+ * @param obj object which has the array as its property
+ * @param array name of the array to check
+ * @param isNullable indicates if the array can be null
+ */
+function check_invalid_array_assignments(obj, array, isNullable) {
+ var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}],
+ val = obj[array], i;
+
+ if (!isNullable) {
+ obj[array] = null;
+ assert_not_equals(obj[array], null, "Non-nullable array was set to null");
+ assert_type(obj[array], "array", "Non-nullable array type changed after assigning null");
+ assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null");
+ }
+
+ for (i = 0 ; i < args.length ; i++) {
+ obj[array] = args[i];
+ assert_type(obj[array], "array", "Array type changed after assigning an invalid value");
+ assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value");
+ }
+}
+
+/**
+ * Method to check if an object can be overwritten with an invalid value.
+ * Sample usage:
+ * check_invalid_object_assignments(message, "body", false);
+ *
+ * @param parentObj object which has the 'obj' object as its property
+ * @param obj name of the object to check
+ * @param isNullable indicates if the object can be null
+ */
+function check_invalid_obj_assignments(parentObj, obj, isNullable) {
+ var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}],
+ val = parentObj[obj], i;
+
+ if (!isNullable) {
+ parentObj[obj] = null;
+ assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null");
+ }
+
+ for (i = 0 ; i < args.length ; i++) {
+ parentObj[obj] = args[i];
+ assert_equals(parentObj[obj], val, "The object was set to " + args[i]);
+ }
+}
+
+/**
+ * Method to validate conversion for listeners.
+ * Example usage:
+ * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]);
+ * for(i = 0; i < incorrectListeners.length; i++) {
+ * packageInformationEventCallback = incorrectListeners[i][0];
+ * exceptionName = incorrectListeners[i][1];
+ * assert_throws({name : exceptionName},
+ * function () {
+ * tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
+ * }, exceptionName + " should be thrown - given incorrect successCallback.");
+ * }
+ *
+ *
+ * @param callbackNames Array with names
+ * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1)
+ *
+ */
+function getListenerConversionExceptions(callbackNames) {
+ var result = [], conversionTable, i, j, listenerName;
+ conversionTable = getTypeConversionExceptions("functionObject", false);
+
+ for (i = 0; i < callbackNames.length; i++) {
+ for (j = 0; j < conversionTable.length; j++) {
+ listenerName = {};
+ listenerName[callbackNames[i]] = conversionTable[j][0];
+ result.push([listenerName, conversionTable[j][1]]);
+ }
+ }
+
+ return result;
+}
+++ /dev/null
-/*
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-
- */
-
-
-MIN_BYTE = -128;
-MAX_BYTE = 127;
-MIN_OCTET = 0;
-MAX_OCTET = 255;
-MIN_SHORT = -32768;
-MAX_SHORT = 32767;
-MIN_UNSIGNED_SHORT = 0;
-MAX_UNSIGNED_SHORT = 65535;
-MIN_LONG = -2147483648;
-MAX_LONG = 2147483647;
-MIN_UNSIGNED_LONG = 0;
-MAX_UNSIGNED_LONG = 4294967295;
-MIN_LONG_LONG = -9223372036854775808;
-MAX_LONG_LONG = 9223372036854775807;
-MIN_UNSIGNED_LONG_LONG = 0;
-MAX_UNSIGNED_LONG_LONG = 18446744073709551615;
-
-TYPE_MISMATCH_EXCEPTION = {name: 'TypeMismatchError'};
-NOT_FOUND_EXCEPTION = {name: 'NotFoundError'};
-INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'};
-IO_EXCEPTION = {name: 'IOError'};
-SECURITY_EXCEPTION = {name: 'SecurityError'};
-
-
-(function () {
- var head_src = document.head.innerHTML;
- if (head_src.search(/\/testharness.js\W/) === -1) {
- document.write('<script language="javascript" src="../resources/testharness.js"></script>\n');
- }
- if (head_src.search(/\/testharnessreport.js\W/) === -1) {
- document.write('<script language="javascript" src="../resources/testharnessreport.js"></script>\n');
- }
-})();
-
-var _registered_types = {};
-
-function _resolve_registered_type(type) {
- while (type in _registered_types) {
- type = _registered_types[type];
- }
- return type;
-}
-
-/**
- * Method checks extra argument for none argument method.
- * The only check is that method will not throw an exception.
- * Example usage:
- * checkExtraArgument(tizen.notification, "removeAll");
- *
- * @param object object
- * @param methodName string - name of the method
- */
-function checkExtraArgument(object, methodName) {
- var extraArgument = [
- null,
- undefined,
- "Tizen",
- 1,
- false,
- ["one", "two"],
- {argument: 1},
- function () {}
- ], i;
-
- for (i = 0; i < extraArgument.length; i++) {
- object[methodName](extraArgument[i]);
- }
-}
-
-/**
- * Method to validate conversion.
- * Example usage:
- * conversionTable = getTypeConversionExceptions("functionObject", true);
- * for(i = 0; i < conversionTable.length; i++) {
- * errorCallback = conversionTable[i][0];
- * exceptionName = conversionTable[i][1];
- *
- * assert_throws({name : exceptionName},
- * function () {
- * tizen.systemsetting.setProperty("HOME_SCREEN",
- * propertyValue, successCallback, errorCallback);
- * }, exceptionName + " should be thrown - given incorrect errorCallback.");
- * }
- *
- * @param conversionType
- * @param isOptional
- * @returns table of tables which contain value (index 0) and exceptionName (index 1)
- *
- */
-function getTypeConversionExceptions(conversionType, isOptional) {
- var exceptionName = "TypeMismatchError",
- conversionTable;
- switch (conversionType) {
- case "enum":
- conversionTable = [
- [undefined, exceptionName],
- [null, exceptionName],
- [0, exceptionName],
- [true, exceptionName],
- ["dummyInvalidEnumValue", exceptionName],
- [{ }, exceptionName]
- ];
- break;
- case "double":
- conversionTable = [
- [undefined, exceptionName],
- [NaN, exceptionName],
- [Number.POSITIVE_INFINITY, exceptionName],
- [Number.NEGATIVE_INFINITY, exceptionName],
- ["TIZEN", exceptionName],
- [{ name : "TIZEN" }, exceptionName],
- [function () { }, exceptionName]
- ];
- break;
- case "object":
- conversionTable = [
- [true, exceptionName],
- [false, exceptionName],
- [NaN, exceptionName],
- [0, exceptionName],
- ["", exceptionName],
- ["TIZEN", exceptionName],
- [undefined, exceptionName]
- ];
- if (!isOptional) {
- conversionTable.push([null, exceptionName]);
- }
- break;
- case "functionObject":
- conversionTable = [
- [true, exceptionName],
- [false, exceptionName],
- [NaN, exceptionName],
- [0, exceptionName],
- ["", exceptionName],
- ["TIZEN", exceptionName],
- [[], exceptionName],
- [{ }, exceptionName],
- [undefined, exceptionName]
- ];
- if (!isOptional) {
- conversionTable.push([null, exceptionName]);
- }
- break;
- case "array":
- conversionTable = [
- [true, exceptionName],
- [false, exceptionName],
- [NaN, exceptionName],
- [0, exceptionName],
- ["", exceptionName],
- ["TIZEN", exceptionName],
- [{ }, exceptionName],
- [function () { }, exceptionName],
- [undefined, exceptionName]
- ];
- if (!isOptional) {
- conversionTable.push([null, exceptionName]);
- }
- break;
- case "dictionary":
- conversionTable = [
- [true, exceptionName],
- [false, exceptionName],
- [NaN, exceptionName],
- [0, exceptionName],
- ["", exceptionName],
- ["TIZEN", exceptionName],
- [undefined, exceptionName]
- ];
- if (!isOptional) {
- conversionTable.push([null, exceptionName]);
- }
- break;
- default:
- assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'.");
- };
-
- return conversionTable;
-}
-
-
-function assert_type(obj, type, description) {
- var org_type = type, prop_name, prop_type, prop_value;
-
- type = _resolve_registered_type(type);
-
- if (typeof (type) === 'string') {
- type = type.toLowerCase();
- switch (type) {
- case 'object':
- case 'string':
- case 'number':
- case 'function':
- case 'boolean':
- case 'undefined':
- case 'xml':
- assert_equals(typeof (obj), type, description);
- break;
- case 'null':
- assert_true(obj === null, description);
- break;
- case 'array':
- assert_true(Array.isArray(obj), description);
- break;
- case 'date':
- assert_true(obj instanceof Date, description);
- break;
- case 'byte':
- assert_equals(typeof (obj), 'number', description);
- assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low.");
- assert_less_than_equal(obj, MAX_BYTE, description + " - value too high.");
- assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
- break;
- case 'octet':
- assert_equals(typeof (obj), 'number', description);
- assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low.");
- assert_less_than_equal(obj, MAX_OCTET, description + " - value too high.");
- assert_equals(obj % 1, 0, description + " - value is not an integer.");
- break;
- case 'short':
- assert_equals(typeof (obj), 'number', description);
- assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low.");
- assert_less_than_equal(obj, MAX_SHORT, description + " - value too high.");
- assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
- break;
- case 'unsigned short':
- assert_equals(typeof (obj), 'number', description);
- assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low.");
- assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high.");
- assert_equals(obj % 1, 0, description + " - value is not an integer.");
- break;
- case 'long':
- assert_equals(typeof (obj), 'number', description);
- assert_greater_than_equal(obj, MIN_LONG, description + " - value too low.");
- assert_less_than_equal(obj, MAX_LONG, description + " - value too high.");
- assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
- break;
- case 'unsigned long':
- assert_equals(typeof (obj), 'number', description);
- assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low.");
- assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high.");
- assert_equals(obj % 1, 0, description + " - value is not an integer.");
- break;
- case 'long long':
- assert_equals(typeof (obj), 'number', description);
- assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low.");
- assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high.");
- assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
- break;
- case 'unsigned long long':
- assert_equals(typeof (obj), 'number', description);
- assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low.");
- assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high.");
- assert_equals(obj % 1, 0, description + " - value is not an integer.");
- break;
- default:
- assert_unreached('Fix your test. Wrong type \'' + org_type + '\'');
- }
- } else if (typeof (type) === 'function') {
- assert_true(obj instanceof type, description);
- } else if (typeof (type) === 'object') {
- for (prop_name in type) {
- prop_type = type[prop_name];
- if (prop_type === 'function') {
- assert_inherits(obj, prop_name);
- assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name);
- } else {
- assert_own_property(obj, prop_name);
- }
- }
- } else {
- assert_unreached('Fix your test. Wrong type ' + org_type);
- }
-}
-
-function register_type(alias, type_spec) {
- _registered_types[alias] = type_spec;
-}
-
-/**
- * Method to check if attribute is const.
- * Example usage:
- * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B);
- *
- * @param obj object to test which has const attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) {
- var tmp;
- if (expectedValue === valueToAssign) {
- assert_unreached("Fix your test. The same values given for " + attributeName +
- " in 'value' and 'valueToSet' arguments.");
- }
- if (typeof (attributeName) === "string") {
- assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
- assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
- if (typeof (expectedType) !== "undefined") {
- if (expectedValue === null) {
- assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
- } else {
- assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
- }
- } else {
- assert_unreached("Fix your test. Wrong type " + expectedType);
- }
- tmp = obj[attributeName];
- obj[attributeName] = valueToAssign;
- assert_equals(obj[attributeName], tmp, attributeName + " can be modified.");
- } else {
- assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
- }
-}
-
-/**
- * Method to check if attribute is readonly.
- * Example usage:
- * check_readonly(statusNotification, "postedTime", null, 'object', new Date());
- *
- * @param obj object to test which has readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) {
- check_const(obj, attributeName, expectedValue, expectedType, valueToAssign);
-}
-
-/**
- * Method to check if attribute can be set to null.
- * Example usage:
- * check_not_nullable(syncInfo, "mode");
- *
- * @param obj object to test which has not nullable attribute
- * @param attributeName attribute name.
- */
-function check_not_nullable(obj, attributeName)
-{ var old_value = obj[attributeName];
- obj[attributeName] = null;
- assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null.");
- obj[attributeName] = old_value;
-}
-
-/**
- * Method to check NoInterfaceObject
- * Example usage:
- * check_no_interface_object("BluetoothAdapter")
- *
- * @param interfaceName interface name
- */
-function check_no_interface_object(interfaceName) {
- assert_throws({name: "TypeError"}, function () {
- tizen[interfaceName]();
- },"Wrong call as a function");
- assert_throws({name: "TypeError"}, function () {
- new tizen[interfaceName]();
- },"Wrong call as a new function");
- assert_throws({name: "TypeError"}, function () {
- ({}) instanceof tizen[interfaceName];
- },"instanceof exception");
- assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined.");
-}
-
-
-/**
- * Method to check Constructors
- * Example usage:
- * check_constructor("BluetoothAdapter")
- *
- * @param constructorName constructor name
- */
-
-function check_constructor(constructorName) {
- assert_true(constructorName in tizen, "No " + constructorName + " in tizen.");
- assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName);
- assert_throws({
- name: "TypeError"
- }, function () {
- tizen[constructorName]();
- }, "Constructor called as function.");
-}
-
-/**
- * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED).
- * That method also checks if given method exists in a given object.
- * Example usage:
- * check_method_exists(tizen.notification, "get");
- *
- * @param obj object with method
- * @param methodName name of the method to check.
- */
-function check_method_exists(obj, methodName) {
- assert_type(obj[methodName], 'function', "Method does not exist.");
-}
-
-/**
- * Method to check extensibility of given object.
- * Method checks if new attribute and method can be added.
- * Example usage:
- * check_extensibility(tizen.notification);
- *
- * @param obj object to check
- */
-function check_extensibility(obj) {
- var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue";
- obj.newDummyMethod = function() {
- return dummyMethodResult;
- }
- assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method.");
-
- obj.newDummyAttribute = dummyAttribute;
- assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute.");
-}
-
-/**
- * Method to check if attribute can be modify.
- * Example usage:
- * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html");
- *
- * @param obj object to test which has not readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) {
- if (expectedValue === valueToAssign) {
- assert_unreached("Fix your test. The same values given for " + attributeName +
- " in 'value' and 'valueToSet' arguments.");
- }
- if (typeof (attributeName) === "string") {
- assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
- assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
- if (typeof (expectedType) !== "undefined") {
- if (expectedValue === null) {
- assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
- } else {
- assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
- }
- } else {
- assert_unreached("Fix your test. Wrong type " + expectedType);
- }
- obj[attributeName] = valueToAssign;
- assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified.");
- } else {
- assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
- }
-}
-
-/**
- * Method to check if whole array can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_array_assignments(message, "to", false);
- *
- * @param obj object which has the array as its property
- * @param array name of the array to check
- * @param isNullable indicates if the array can be null
- */
-function check_invalid_array_assignments(obj, array, isNullable) {
- var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}],
- val = obj[array], i;
-
- if (!isNullable) {
- obj[array] = null;
- assert_not_equals(obj[array], null, "Non-nullable array was set to null");
- assert_type(obj[array], "array", "Non-nullable array type changed after assigning null");
- assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null");
- }
-
- for (i = 0 ; i < args.length ; i++) {
- obj[array] = args[i];
- assert_type(obj[array], "array", "Array type changed after assigning an invalid value");
- assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value");
- }
-}
-
-/**
- * Method to check if an object can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_object_assignments(message, "body", false);
- *
- * @param parentObj object which has the 'obj' object as its property
- * @param obj name of the object to check
- * @param isNullable indicates if the object can be null
- */
-function check_invalid_obj_assignments(parentObj, obj, isNullable) {
- var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}],
- val = parentObj[obj], i;
-
- if (!isNullable) {
- parentObj[obj] = null;
- assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null");
- }
-
- for (i = 0 ; i < args.length ; i++) {
- parentObj[obj] = args[i];
- assert_equals(parentObj[obj], val, "The object was set to " + args[i]);
- }
-}
-
-/**
- * Method to validate conversion for listeners.
- * Example usage:
- * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]);
- * for(i = 0; i < incorrectListeners.length; i++) {
- * packageInformationEventCallback = incorrectListeners[i][0];
- * exceptionName = incorrectListeners[i][1];
- * assert_throws({name : exceptionName},
- * function () {
- * tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
- * }, exceptionName + " should be thrown - given incorrect successCallback.");
- * }
- *
- *
- * @param callbackNames Array with names
- * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1)
- *
- */
-function getListenerConversionExceptions(callbackNames) {
- var result = [], conversionTable, i, j, listenerName;
- conversionTable = getTypeConversionExceptions("functionObject", false);
-
- for (i = 0; i < callbackNames.length; i++) {
- for (j = 0; j < conversionTable.length; j++) {
- listenerName = {};
- listenerName[callbackNames[i]] = conversionTable[j][0];
- result.push([listenerName, conversionTable[j][1]]);
- }
- }
-
- return result;
-}
</spec>
</specs>
</testcase>
- <testcase purpose="check non-optional argument insertionData (insert method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_insertionData_TypeMismatch">
+ <testcase purpose="Check non-optional argument insertionData (insert method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_insertionData_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_insertionData_TypeMismatch.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check optional argument successCallback (insert method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_successCallback_TypeMismatch">
+ <testcase purpose="Check optional argument successCallback (insert method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_successCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_TypeMismatch.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check optional argument errorCallback (insert method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_errorCallback_TypeMismatch">
+ <testcase purpose="Check optional argument errorCallback (insert method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_errorCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check non-optional argument updateData (update method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_updateData_TypeMismatch">
+ <testcase purpose="Check non-optional argument updateData (update method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_updateData_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_updateData_TypeMismatch.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check optional argument successCallback (update method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_successCallback_TypeMismatch">
+ <testcase purpose="Check optional argument successCallback (update method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_successCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_TypeMismatch.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check optional argument errorCallback (update method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_errorCallback_TypeMismatch">
+ <testcase purpose="Check optional argument errorCallback (update method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_errorCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check optional argument successCallback (remove method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_remove_successCallback_TypeMismatch">
+ <testcase purpose="Check optional argument successCallback (remove method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_remove_successCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_TypeMismatch.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check optional argument errorCallback (remove method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_remove_errorCallback_TypeMismatch">
+ <testcase purpose="Check optional argument errorCallback (remove method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_remove_errorCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check non-optional argument columns (select method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_columns_TypeMismatch">
+ <testcase purpose="Check non-optional argument columns (select method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_columns_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_columns_TypeMismatch.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check non-optional argument successCallback (select method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_successCallback_TypeMismatch">
+ <testcase purpose="Check non-optional argument successCallback (select method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_successCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_TypeMismatch.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check optional argument errorCallback (select method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_errorCallback_TypeMismatch">
+ <testcase purpose="Check optional argument errorCallback (select method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_errorCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into insert method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_successCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into insert method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_successCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_invalid_cb.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into insert method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_errorCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into insert method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_insert_errorCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_invalid_cb.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into update method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_successCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into update method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_successCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_invalid_cb.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into update method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_errorCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into update method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_update_errorCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_invalid_cb.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check optional argument errorCallback (updateValue method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch">
+ <testcase purpose="Check optional argument errorCallback (updateValue method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into updateValue method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="MappedDataControlConsumer_updateValue_errorCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into updateValue method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="MappedDataControlConsumer_updateValue_errorCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_invalid_cb.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check non-optional argument successCallback (updateValue method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="MappedDataControlConsumer_updateValue_successCallback_TypeMismatch">
+ <testcase purpose="Check non-optional argument successCallback (updateValue method) type conversion" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="MappedDataControlConsumer_updateValue_successCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_TypeMismatch.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into updateValue method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="MappedDataControlConsumer_updateValue_successCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into updateValue method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="MappedDataControlConsumer_updateValue_successCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_invalid_cb.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into remove method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_remove_errorCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into remove method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_remove_errorCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_invalid_cb.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into remove method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_remove_successCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into remove method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_remove_successCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_invalid_cb.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into select method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_errorCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into select method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_errorCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_errorCallback_invalid_cb.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into select method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_successCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into select method" type="compliance" onload_delay="30" status="approved" component="TizenAPI/TBD/Datacontrol" execution_type="auto" priority="P2" id="SQLDataControlConsumer_select_successCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_invalid_cb.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_missarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check non-optional argument insertionData (insert method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_insertionData_TypeMismatch">
+ <testcase purpose="Check non-optional argument insertionData (insert method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_insertionData_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_insertionData_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check optional argument successCallback (insert method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_successCallback_TypeMismatch">
+ <testcase purpose="Check optional argument successCallback (insert method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_successCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check optional argument errorCallback (insert method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_errorCallback_TypeMismatch">
+ <testcase purpose="Check optional argument errorCallback (insert method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_errorCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check non-optional argument updateData (update method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_updateData_TypeMismatch">
+ <testcase purpose="Check non-optional argument updateData (update method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_updateData_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_updateData_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check optional argument successCallback (update method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_successCallback_TypeMismatch">
+ <testcase purpose="Check optional argument successCallback (update method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_successCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check optional argument errorCallback (update method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_errorCallback_TypeMismatch">
+ <testcase purpose="Check optional argument errorCallback (update method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_errorCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check optional argument successCallback (remove method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_remove_successCallback_TypeMismatch">
+ <testcase purpose="Check optional argument successCallback (remove method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_remove_successCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check optional argument errorCallback (remove method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_remove_errorCallback_TypeMismatch">
+ <testcase purpose="Check optional argument errorCallback (remove method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_remove_errorCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check non-optional argument columns (select method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_columns_TypeMismatch">
+ <testcase purpose="Check non-optional argument columns (select method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_columns_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_columns_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check non-optional argument successCallback (select method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_successCallback_TypeMismatch">
+ <testcase purpose="Check non-optional argument successCallback (select method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_successCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check optional argument errorCallback (select method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_errorCallback_TypeMismatch">
+ <testcase purpose="Check optional argument errorCallback (select method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_errorCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into insert method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_successCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into insert method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_successCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into insert method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_errorCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into insert method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_insert_errorCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_insert_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into update method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_successCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into update method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_successCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into update method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_errorCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into update method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_update_errorCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_update_errorCallback_invalid_cb.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_removeValue_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check optional argument errorCallback (updateValue method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch">
+ <testcase purpose="Check optional argument errorCallback (updateValue method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into updateValue method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="MappedDataControlConsumer_updateValue_errorCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into updateValue method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="MappedDataControlConsumer_updateValue_errorCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check non-optional argument successCallback (updateValue method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="MappedDataControlConsumer_updateValue_successCallback_TypeMismatch">
+ <testcase purpose="Check non-optional argument successCallback (updateValue method) type conversion" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="MappedDataControlConsumer_updateValue_successCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into updateValue method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="MappedDataControlConsumer_updateValue_successCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into updateValue method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="MappedDataControlConsumer_updateValue_successCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/MappedDataControlConsumer_updateValue_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into remove method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_remove_errorCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into remove method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_remove_errorCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into remove method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_remove_successCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into remove method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_remove_successCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_remove_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onerror) was passed into select method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_errorCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onerror) was passed into select method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_errorCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into select method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_successCallback_invalid_cb">
+ <testcase purpose="Check if an exception was thrown when a fake callback (onsuccess) was passed into select method" onload_delay="30" component="TizenAPI/TBD/Datacontrol" execution_type="auto" id="SQLDataControlConsumer_select_successCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-datacontrol-tizen-tests/datacontrol/SQLDataControlConsumer_select_successCallback_invalid_cb.html</test_script_entry>
</description>