limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManagerObject_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_CRITERIA NIO
test(function () {
check_no_interface_object("PushManagerObject");
-}, "PushManagerObject_notexist");
+}, document.title);
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_connectService</title>
<meta charset="utf-8"/>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/push_common.js"></script>
</head>
//==== TEST: PushManager_connectService
//==== LABEL Check if connectService method works correctly
//==== SPEC Tizen Web API:TBD:Push:PushManager:connectService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== ONLOAD_DELAY 90
//==== TEST_CRITERIA MMINA MR
setup({timeout: 90000});
-var t = async_test("PushManager_connectService", {timeout:90000}),
+var t = async_test(document.title, {timeout: 90000}),
pushRegisterSuccessCallback, pushRegisterErrorCallback, unregisterServiceError,
unregisterServiceDone, notificationCallback, returnedValue = null;
});
unregisterServiceError = t.step_func(function (error) {
- assert_unreached("unregisterService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("unregisterService() error occurred: " + error.name + ":" + error.message);
});
notificationCallback = t.step_func(function (message) {
});
pushRegisterErrorCallback = t.step_func(function (error) {
- assert_unreached("registerService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("registerService() error occurred: " + error.name + ":" + error.message);
});
tizen.push.registerService(service, pushRegisterSuccessCallback, pushRegisterErrorCallback);
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_connectService_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("connectService" in tizen.push, "No connectService method in tizen.push");
check_method_exists(tizen.push, "connectService");
-}, "PushManager_connectService_exist");
+}, document.title);
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_connectService_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/push_common.js"></script>
</head>
//==== TEST: PushManager_connectService_missarg
//==== LABEL Check with missing non-optional argument - connectService method
//==== SPEC Tizen Web API:TBD:Push:PushManager:connectService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== ONLOAD_DELAY 90
//==== TEST_CRITERIA MMA
setup({timeout: 90000});
-var t = async_test("PushManager_connectService_missarg", {timeout:90000}), pushRegisterSuccessCallback,
+var t = async_test(document.title, {timeout: 90000}), pushRegisterSuccessCallback,
pushRegisterErrorCallback, unregisterServiceDone, unregisterServiceError, exceptionName = "TypeMismatchError";
t.step(function () {
});
unregisterServiceError = t.step_func(function (error) {
- assert_unreached("unregisterService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("unregisterService() error occurred: " + error.name + ":" + error.message);
});
pushRegisterSuccessCallback = t.step_func(function (registrationId) {
try {
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.push.connectService();
}, exceptionName + " should be thrown - missing argument");
});
pushRegisterErrorCallback = t.step_func(function (error) {
- assert_unreached("registerService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("registerService() error occurred: " + error.name + ":" + error.message);
});
tizen.push.registerService(service, pushRegisterSuccessCallback, pushRegisterErrorCallback);
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_connectService_notificationCallback_TypeMismatch</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>
//==== LABEL Check if connectService throws exception when successCallback is incorrect
//==== PRIORITY: P2
//==== SPEC Tizen Web API:TBD:Push:PushManager:connectService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== TEST_CRITERIA MC
-test(function() {
+test(function () {
var conversionTable, incorrectCallback, exceptionName, i;
conversionTable = getTypeConversionExceptions("functionObject", false);
incorrectCallback = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.push.connectService(incorrectCallback);
}, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
}
-}, "PushManager_connectService_notificationCallback_TypeMismatch");
+}, document.title);
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_connectService_notificationCallback_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>
</head>
<body>
//==== PRIORITY: P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:TBD:Push:PushManager:connectService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== TEST_CRITERIA MTCB
setup({timeout: 90000});
-var t = async_test("PushManager_connectService_notificationCallback_invalid_cb", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
incorrectCallback, exceptionName = "TypeMismatchError";
t.step(function () {
})
};
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.push.connectService(incorrectCallback);
}, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
t.done();
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_disconnectService</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/push_common.js"></script>
</head>
//==== TEST: PushManager_disconnectService
//==== LABEL Check if disconnectService method works correctly
//==== SPEC Tizen Web API:TBD:Push:PushManager:disconnectService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== ONLOAD_DELAY 90
//==== TEST_CRITERIA MNA MR
setup({timeout: 90000});
-var t = async_test("PushManager_disconnectService", {timeout:90000}), pushRegisterSuccessCallback,
+var t = async_test(document.title, {timeout: 90000}), pushRegisterSuccessCallback,
unregisterServiceDone, unregisterServiceError,
notificationCallback, returnedValue = null, pushRegisterErrorCallback;
});
unregisterServiceError = t.step_func(function (error) {
- assert_unreached("unregisterService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("unregisterService() error occurred: " + error.name + ":" + error.message);
});
notificationCallback = t.step_func(function (message) {
});
pushRegisterErrorCallback = t.step_func(function (error) {
- assert_unreached("registerService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("registerService() error occurred: " + error.name + ":" + error.message);
});
tizen.push.registerService(service, pushRegisterSuccessCallback, pushRegisterErrorCallback);
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_disconnectService_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("disconnectService" in tizen.push, "No disconnectService method in tizen.push");
check_method_exists(tizen.push, "disconnectService");
-}, "PushManager_disconnectService_exist");
+}, document.title);
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_disconnectService_extra_argument</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_CRITERIA MNAEX
test(function () {
checkExtraArgument(tizen.push, "disconnectService");
-}, "PushManager_disconnectService_extra_argument");
+}, document.title);
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
<html>
<head>
-<title> PushManager_extend</title>
-<script src="../resources/unitcommon.js"></script>
+<title>PushManager_extend</title>
+<script src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script type="text/javascript">
//==== TEST: PushManager_extend
-//==== LABEL check if PushManager is extendable
+//==== LABEL Check if PushManager is extendable
//==== SPEC Tizen Web API:TBD:Push:PushManager:PushManager U
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== PRIORITY P3
//==== TEST_CRITERIA OBX
test(function () {
check_extensibility(tizen.push);
-}, "PushManager_extend");
+}, document.title);
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_getRegistrationId</title>
<meta charset="utf-8"/>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/push_common.js"></script>
</head>
//==== TEST: PushManager_getRegistrationId
//==== LABEL Check if method getRegistrationId of PushManager works correctly
//==== SPEC Tizen Web API:TBD:Push:PushManager:getRegistrationId M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== ONLOAD_DELAY 90
//==== TEST_CRITERIA MNA MR
setup({timeout: 90000});
-var t = async_test("PushManager_getRegistrationId", {timeout:90000}),
+var t = async_test(document.title, {timeout: 90000}),
pushRegisterSuccessCallback, pushRegisterErrorCallback, registrationIdFromMethod,
unregisterServiceDone, unregisterServiceError;
});
unregisterServiceError = t.step_func(function (error) {
- assert_unreached("unregisterServiceError() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("unregisterServiceError() error occurred: " + error.name + ":" + error.message);
});
pushRegisterSuccessCallback = t.step_func(function (registrationIdFromArgument) {
});
pushRegisterErrorCallback = t.step_func(function (error) {
- assert_unreached("registerService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("registerService() error occurred: " + error.name + ":" + error.message);
});
tizen.push.registerService(service, pushRegisterSuccessCallback, pushRegisterErrorCallback);
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_getRegistrationId_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("getRegistrationId" in tizen.push, "No getRegistrationId method in tizen.push");
check_method_exists(tizen.push, "getRegistrationId");
-}, "PushManager_getRegistrationId_exist");
+}, document.title);
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_getRegistrationId_extra_argument</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_CRITERIA MNAEX
test(function () {
checkExtraArgument(tizen.push, "getRegistrationId");
-}, "PushManager_getRegistrationId_extra_argument");
+}, document.title);
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_getRegistrationId_notRegistered</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_CRITERIA MNA MR
setup({timeout: 90000});
-var t = async_test("PushManager_getRegistrationId_notRegistered", {timeout: 90000}), returnedValue, unregisterServiceSuccessCallback, unregisterServiceErrorCallback;
+var t = async_test(document.title, {timeout: 90000}), returnedValue, unregisterServiceSuccessCallback, unregisterServiceErrorCallback;
t.step(function () {
unregisterServiceSuccessCallback = t.step_func(function () {
});
unregisterServiceErrorCallback = t.step_func(function (error) {
- assert_unreached("Error occurred: " + error.name + " :" + error.message);
+ assert_unreached("Error occurred: " + error.name + ":" + error.message);
});
tizen.push.unregisterService(unregisterServiceSuccessCallback, unregisterServiceErrorCallback);
-}, "Check if method getRegistrationId of PushManager returns default value");
+});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
-<title>PushManager_notexist</title>
+<title>PushManager_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>
//==== SPEC Tizen Web API:TBD:Push:PushManager:PushManager U
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== TEST_CRITERIA OBME
-test(function() {
+test(function () {
assert_true("push" in tizen, "No push in tizen.");
check_readonly(tizen, "push", tizen.push, "object", "dummyValue");
-}, "PushManager_in_tizen");
+}, document.title);
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_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_CRITERIA NIO
test(function () {
check_no_interface_object("PushManager");
-}, "PushManager_notexist");
+}, document.title);
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_registerService</title>
<meta charset="utf-8"/>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/push_common.js"></script>
</head>
//==== TEST_CRITERIA MOA MAST MR
setup({timeout: 90000});
-var t = async_test("PushManager_registerService", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
pushRegisterSuccessCallback, pushRegisterErrorCallback, returnedValue = null,
unregisterServiceSuccessCallback, unregisterServiceDone, beforeRegistrationId,
unregisterServiceErrorCallback, unregisterServiceError;
});
unregisterServiceError = t.step_func(function (error) {
- assert_unreached("unregisterService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("unregisterService() error occurred: " + error.name + ":" + error.message);
});
pushRegisterSuccessCallback = t.step_func(function (registrationId) {
});
pushRegisterErrorCallback = t.step_func(function (error) {
- assert_unreached("registerService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("registerService() error occurred: " + error.name + ":" + error.message);
});
unregisterServiceSuccessCallback = t.step_func(function () {
});
unregisterServiceErrorCallback = t.step_func(function (error) {
- assert_unreached("unregisterService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("unregisterService() error occurred: " + error.name + ":" + error.message);
});
tizen.push.unregisterService(unregisterServiceSuccessCallback, unregisterServiceErrorCallback);
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_registerService_appControl_TypeMismatch</title>
<meta charset="utf-8"/>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/push_common.js"></script>
</head>
//==== PRIORITY: P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:TBD:Push:PushManager:registerService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== TEST_CRITERIA MC
setup({timeout: 90000});
-var t = async_test("PushManager_registerService_appControl_TypeMismatch", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
pushRegisterSuccessCallback, errorCallback, conversionTable, exceptionName,
incorrectService, i;
incorrectService = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.push.registerService(incorrectService, pushRegisterSuccessCallback, errorCallback);
}, exceptionName + " should be thrown - given incorrect ApplicationControl: " + incorrectService);
}
t.done();
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_registerService_appControl_invalid_obj</title>
<meta charset="utf-8"/>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/push_common.js"></script>
</head>
//==== PRIORITY: P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:TBD:Push:PushManager:registerService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== TEST_CRITERIA MTO
setup({timeout: 90000});
-var t = async_test("PushManager_registerService_appControl_invalid_obj", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
pushRegisterSuccessCallback, errorCallback, exceptionName = "TypeMismatchError", fakeService;
t.step(function () {
data: []
};
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.push.registerService(fakeService, pushRegisterSuccessCallback, errorCallback);
}, exceptionName + " should be thrown - given incorrect ApplicationControl");
t.done();
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_registerService_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/push_common.js"></script>
</head>
//==== PRIORITY: P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:TBD:Push:PushManager:registerService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== TEST_CRITERIA MC
setup({timeout: 90000});
-var t = async_test("PushManager_registerService_errorCallback_TypeMismatch", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
registerSuccessCallback, conversionTable, incorrectCallback, exceptionName, i;
t.step(function () {
incorrectCallback = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.push.registerService(service, registerSuccessCallback, incorrectCallback);
}, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
}
t.done();
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_registerService_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/push_common.js"></script>
</head>
<div id="log"></div>
<script type="text/javascript">
//==== TEST: PushManager_registerService_errorCallback_invalid_cb
-//==== LABEL check if registerService throws exception when error callback is invalid
+//==== LABEL Check if registerService throws exception when error callback is invalid
//==== PRIORITY: P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:TBD:Push:PushManager:registerService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== TEST_CRITERIA MTCB
setup({timeout: 90000});
-var t = async_test("PushManager_registerService_errorCallback_invalid_cb", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
incorrectCallback, registerSuccessCallback, exceptionName = "TypeMismatchError";
t.step(function () {
assert_unreached("Callback invoked. pushRegistrationId: " + pushRegistrationId);
});
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.push.registerService(service, registerSuccessCallback, incorrectCallback);
}, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
t.done();
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_registerService_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("registerService" in tizen.push, "No registerService method in tizen.push");
check_method_exists(tizen.push, "registerService");
-}, "PushManager_registerService_exist");
+}, document.title);
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_registerService_misargs</title>
<meta charset="utf-8"/>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/push_common.js"></script>
</head>
//==== TEST: PushManager_registerService_misargs
//==== LABEL Check if method registerService throws exception when non-optional argument is missing
//==== SPEC Tizen Web API:TBD:Push:PushManager:registerService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== TEST_CRITERIA MMA
test(function () {
var exceptionName = "TypeMismatchError";
try {
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.push.registerService();
}, exceptionName + " should be thrown - missing ApplicationControl .");
} finally {
tizen.push.unregisterService();
}
-}, "PushManager_registerService_misargs");
+}, document.title);
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_registerService_successCallback_TypeMismatch</title>
<meta charset="utf-8"/>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/push_common.js"></script>
</head>
//==== PRIORITY: P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:TBD:Push:PushManager:registerService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== TEST_CRITERIA MC
setup({timeout: 90000});
-var t = async_test("PushManager_registerService_successCallback_TypeMismatch", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
errorCallback, conversionTable, incorrectCallback, exceptionName, i;
t.step(function () {
incorrectCallback = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.push.registerService(service, incorrectCallback, errorCallback);
}, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
}
t.done();
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_registerService_successCallback_invalid_cb</title>
<meta charset="utf-8"/>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/push_common.js"></script>
</head>
<div id="log"></div>
<script type="text/javascript">
//==== TEST: PushManager_registerService_successCallback_invalid_cb
-//==== LABEL check if registerService throws exception when success callback is invalid
+//==== LABEL Check if registerService throws exception when success callback is invalid
//==== PRIORITY: P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:TBD:Push:PushManager:registerService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== TEST_CRITERIA MTCB
setup({timeout: 90000});
-var t = async_test("PushManager_registerService_successCallback_invalid_cb", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
incorrectCallback, errorCallback, exceptionName = "TypeMismatchError";
t.step(function () {
assert_unreached("ErrorCallback invoked: " + error.name + ": " + error.message);
});
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.push.registerService(service, incorrectCallback, errorCallback);
}, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
t.done();
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_registerService_without_errorCallback</title>
<meta charset="utf-8"/>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
<script src="support/push_common.js"></script>
</head>
//==== TEST: PushManager_registerService_without_errorCallback
//==== LABEL Check if method registerService of PushManager works properly without errorCallback
//==== SPEC Tizen Web API:TBD:Push:PushManager:registerService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== ONLOAD_DELAY 90
//==== TEST_CRITERIA MMINA MAST MR
setup({timeout: 90000});
-var t = async_test("PushManager_registerService_without_errorCallback", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
pushRegisterSuccessCallback, returnedValue = null, beforeRegistrationId,
unregisterServiceSuccessCallback, unregisterServiceDone,
unregisterServiceError, unregisterServiceErrorCallback;
});
unregisterServiceError = t.step_func(function (error) {
- assert_unreached("unregisterService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("unregisterService() error occurred: " + error.name + ":" + error.message);
});
pushRegisterSuccessCallback = t.step_func(function (registrationId) {
});
unregisterServiceErrorCallback = t.step_func(function (error) {
- assert_unreached("unregisterService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("unregisterService() error occurred: " + error.name + ":" + error.message);
});
tizen.push.unregisterService(unregisterServiceSuccessCallback, unregisterServiceErrorCallback);
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_unregisterService</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/push_common.js"></script>
</head>
//==== TEST: PushManager_unregisterService
//==== LABEL Check if unregisterService works correctly
//==== SPEC Tizen Web API:TBD:Push:PushManager:unregisterService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== ONLOAD_DELAY 90
//==== TEST_CRITERIA MOA MAST MR
setup({timeout: 90000});
-var t = async_test("PushManager_unregisterService", {timeout: 90000}), pushRegisterSuccessCallback,
+var t = async_test(document.title, {timeout: 90000}), pushRegisterSuccessCallback,
pushRegisterErrorCallback, unregisterServiceDone, unregisterServiceError,
registrationId, afterRegistrationId, returnedValue = null;
});
unregisterServiceError = t.step_func(function (error) {
- assert_unreached("unregisterService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("unregisterService() error occurred: " + error.name + ":" + error.message);
});
pushRegisterSuccessCallback = t.step_func(function (successRegistrationId) {
});
pushRegisterErrorCallback = t.step_func(function (error) {
- assert_unreached("registerService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("registerService() error occurred: " + error.name + ":" + error.message);
});
tizen.push.registerService(service, pushRegisterSuccessCallback, pushRegisterErrorCallback);
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_unregisterService_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>
</head>
<body>
//==== PRIORITY: P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:TBD:Push:PushManager:unregisterService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== TEST_CRITERIA MC
setup({timeout: 90000});
-var t = async_test("PushManager_unregisterService_errorCallback_TypeMismatch", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
unregisterSuccessCallback, conversionTable, incorrectCallback, exceptionName, i;
t.step(function () {
incorrectCallback = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.push.unregisterService(unregisterSuccessCallback, incorrectCallback);
}, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
}
t.done();
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_unregisterService_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>
</head>
<body>
<div id="log"></div>
<script type="text/javascript">
//==== TEST: PushManager_unregisterService_errorCallback_invalid_cb
-//==== LABEL check if unregisterService throws exception when error callback is invalid
+//==== LABEL Check if unregisterService throws exception when error callback is invalid
//==== PRIORITY: P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:TBD:Push:PushManager:unregisterService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== TEST_CRITERIA MTCB
setup({timeout: 90000});
-var t = async_test("PushManager_unregisterService_errorCallback_invalid_cb", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
incorrectCallback, unregisterSuccessCallback, exceptionName = "TypeMismatchError";
t.step(function () {
assert_unreached("Callback invoked.");
});
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.push.unregisterService(unregisterSuccessCallback, incorrectCallback);
}, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
t.done();
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_unregisterService_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("unregisterService" in tizen.push, "No unregisterService method in tizen.push");
check_method_exists(tizen.push, "unregisterService");
-}, "PushManager_unregisterService_exist");
+}, document.title);
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_unregisterService_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>
</head>
<body>
//==== PRIORITY: P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:TBD:Push:PushManager:unregisterService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== TEST_CRITERIA MC
setup({timeout: 90000});
-var t = async_test("PushManager_unregisterService_successCallback_TypeMismatch", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
errorCallback, conversionTable, incorrectCallback, exceptionName, i;
t.step(function () {
incorrectCallback = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.push.unregisterService(incorrectCallback, errorCallback);
}, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
}
t.done();
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_unregisterService_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>
</head>
<body>
<div id="log"></div>
<script type="text/javascript">
//==== TEST: PushManager_unregisterService_successCallback_invalid_cb
-//==== LABEL check if unregisterService throws exception when success callback is invalid
+//==== LABEL Check if unregisterService throws exception when success callback is invalid
//==== PRIORITY: P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:TBD:Push:PushManager:unregisterService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== TEST_CRITERIA MTCB
setup({timeout: 90000});
-var t = async_test("PushManager_unregisterService_successCallback_invalid_cb", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
incorrectCallback, errorCallback, exceptionName = "TypeMismatchError";
t.step(function () {
assert_unreached("ErrorCallback invoked: " + error.name + ": " + error.message);
});
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.push.unregisterService(incorrectCallback, errorCallback);
}, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
t.done();
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_unregisterService_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/push_common.js"></script>
</head>
//==== TEST: PushManager_unregisterService_without_errorCallback
//==== LABEL Check if unregisterService method works without errorCallback
//==== SPEC Tizen Web API:TBD:Push:PushManager:unregisterService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== ONLOAD_DELAY 90
//==== TEST_CRITERIA MOA MAST MR
setup({timeout: 90000});
-var t = async_test("PushManager_unregisterService_without_errorCallback", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
pushRegisterSuccessCallback, pushRegisterErrorCallback,
unregisterServiceDone, unregisterServiceError,
registrationId, afterRegistrationId, returnedValue = null;
});
unregisterServiceError = t.step_func(function (error) {
- assert_unreached("unregisterService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("unregisterService() error occurred: " + error.name + ":" + error.message);
});
pushRegisterSuccessCallback = t.step_func(function (successRegistrationId) {
});
pushRegisterErrorCallback = t.step_func(function (error) {
- assert_unreached("registerService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("registerService() error occurred: " + error.name + ":" + error.message);
});
tizen.push.registerService(service, pushRegisterSuccessCallback, pushRegisterErrorCallback);
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushManager_unregisterService_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/push_common.js"></script>
</head>
//==== TEST: PushManager_unregisterService_without_successCallback
//==== LABEL Check if unregisterService method works without successCallback
//==== SPEC Tizen Web API:TBD:Push:PushManager:unregisterService M
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== ONLOAD_DELAY 90
//==== TEST_CRITERIA MMINA MR
setup({timeout: 90000});
-var t = async_test("PushManager_unregisterService_without_successCallback", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
pushRegisterSuccessCallback, errorCallback, returnedValue = null;
t.step(function () {
});
errorCallback = t.step_func(function (error) {
- assert_unreached("Error occurred: " + error.name + " :" + error.message);
+ assert_unreached("Error occurred: " + error.name + ":" + error.message);
});
tizen.push.registerService(service, pushRegisterSuccessCallback, errorCallback);
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushMessage_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_CRITERIA NIO
test(function () {
check_no_interface_object("PushMessage");
-}, "PushMessage_notexist");
+}, document.title);
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushNotificationCallback_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_CRITERIA CBNIO
test(function () {
check_no_interface_object("PushNotificationCallback");
-}, "PushNotificationCallback_notexist");
+}, document.title);
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushRegisterSuccessCallback_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_CRITERIA CBNIO
test(function () {
check_no_interface_object("PushRegisterSuccessCallback");
-}, "PushRegisterSuccessCallback_notexist");
+}, document.title);
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
+ Andrzej Krolikowski <a.krolikowsk@samsung.com>
-->
-<html lang="en">
+<html>
<head>
<title>PushRegisterSuccessCallback_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/push_common.js"></script>
</head>
//==== LABEL Check if PushRegisterSuccessCallback works
//==== PRIORITY P3
//==== SPEC Tizen Web API:TBD:Push:PushRegisterSuccessCallback:onsuccess U
-//==== SPEC_URL https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
//==== ONLOAD_DELAY 90
//==== TEST_CRITERIA CBT CBOA
setup({timeout: 90000});
-var t = async_test("PushRegisterSuccessCallback_onsuccess", {timeout:90000}), pushRegisterSuccessCallback,
+var t = async_test(document.title, {timeout: 90000}), pushRegisterSuccessCallback,
pushRegisterErrorCallback, unregisterServiceDone, unregisterServiceError;
t.step(function () {
});
unregisterServiceError = t.step_func(function (error) {
- assert_unreached("unregisterService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("unregisterService() error occurred: " + error.name + ":" + error.message);
});
pushRegisterSuccessCallback = t.step_func(function (registrationId) {
});
pushRegisterErrorCallback = t.step_func(function (error) {
- assert_unreached("registerService() error occurred: " + error.name + " :" + error.message);
+ assert_unreached("registerService() error occurred: " + error.name + ":" + error.message);
});
tizen.push.registerService(service, pushRegisterSuccessCallback, pushRegisterErrorCallback);
});
+
</script>
</body>
</html>
--- /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;
-}
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="registerService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</spec>
</specs>
</testcase>
- <testcase purpose="check if PushManager is extendable" type="compliance" status="approved" component="TizenAPI/TBD/Push" execution_type="auto" priority="P3" id="PushManager_extend">
+ <testcase purpose="Check if PushManager is extendable" type="compliance" status="approved" component="TizenAPI/TBD/Push" execution_type="auto" priority="P3" id="PushManager_extend">
<description>
<test_script_entry>/opt/tct-push-tizen-tests/push/PushManager_extend.html</test_script_entry>
</description>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="registerService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="registerService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="registerService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="registerService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</testcase>
- <testcase purpose="check if registerService throws exception when success callback is invalid" type="compliance" onload_delay="90" status="approved" component="TizenAPI/TBD/Push" execution_type="auto" priority="P2" id="PushManager_registerService_successCallback_invalid_cb">
+ <testcase purpose="Check if registerService throws exception when success callback is invalid" type="compliance" onload_delay="90" status="approved" component="TizenAPI/TBD/Push" execution_type="auto" priority="P2" id="PushManager_registerService_successCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-push-tizen-tests/push/PushManager_registerService_successCallback_invalid_cb.html</test_script_entry>
</description>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="registerService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="unregisterService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</testcase>
- <testcase purpose="check if unregisterService throws exception when error callback is invalid" type="compliance" onload_delay="90" status="approved" component="TizenAPI/TBD/Push" execution_type="auto" priority="P2" id="PushManager_unregisterService_errorCallback_invalid_cb">
+ <testcase purpose="Check if unregisterService throws exception when error callback is invalid" type="compliance" onload_delay="90" status="approved" component="TizenAPI/TBD/Push" execution_type="auto" priority="P2" id="PushManager_unregisterService_errorCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-push-tizen-tests/push/PushManager_unregisterService_errorCallback_invalid_cb.html</test_script_entry>
</description>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="unregisterService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="registerService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</testcase>
- <testcase purpose="check if registerService throws exception when error callback is invalid" type="compliance" onload_delay="90" status="approved" component="TizenAPI/TBD/Push" execution_type="auto" priority="P2" id="PushManager_registerService_errorCallback_invalid_cb">
+ <testcase purpose="Check if registerService throws exception when error callback is invalid" type="compliance" onload_delay="90" status="approved" component="TizenAPI/TBD/Push" execution_type="auto" priority="P2" id="PushManager_registerService_errorCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-push-tizen-tests/push/PushManager_registerService_errorCallback_invalid_cb.html</test_script_entry>
</description>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="registerService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="unregisterService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</testcase>
- <testcase purpose="check if unregisterService throws exception when success callback is invalid" type="compliance" onload_delay="90" status="approved" component="TizenAPI/TBD/Push" execution_type="auto" priority="P2" id="PushManager_unregisterService_successCallback_invalid_cb">
+ <testcase purpose="Check if unregisterService throws exception when success callback is invalid" type="compliance" onload_delay="90" status="approved" component="TizenAPI/TBD/Push" execution_type="auto" priority="P2" id="PushManager_unregisterService_successCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-push-tizen-tests/push/PushManager_unregisterService_successCallback_invalid_cb.html</test_script_entry>
</description>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="unregisterService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="connectService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="connectService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="getRegistrationId" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="connectService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="connectService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="disconnectService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="unregisterService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="unregisterService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion interface="PushManager" element_type="method" element_name="unregisterService" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<specs>
<spec>
<spec_assertion interface="PushRegisterSuccessCallback" usage="true" specification="Push" section="TBD" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/push.html</spec_url>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<test_script_entry>/opt/tct-push-tizen-tests/push/PushManager_disconnectService_extra_argument.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if PushManager is extendable" component="TizenAPI/TBD/Push" execution_type="auto" id="PushManager_extend">
+ <testcase purpose="Check if PushManager is extendable" component="TizenAPI/TBD/Push" execution_type="auto" id="PushManager_extend">
<description>
<test_script_entry>/opt/tct-push-tizen-tests/push/PushManager_extend.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-push-tizen-tests/push/PushManager_registerService_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if registerService throws exception when success callback is invalid" onload_delay="90" component="TizenAPI/TBD/Push" execution_type="auto" id="PushManager_registerService_successCallback_invalid_cb">
+ <testcase purpose="Check if registerService throws exception when success callback is invalid" onload_delay="90" component="TizenAPI/TBD/Push" execution_type="auto" id="PushManager_registerService_successCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-push-tizen-tests/push/PushManager_registerService_successCallback_invalid_cb.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-push-tizen-tests/push/PushManager_unregisterService_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if unregisterService throws exception when error callback is invalid" onload_delay="90" component="TizenAPI/TBD/Push" execution_type="auto" id="PushManager_unregisterService_errorCallback_invalid_cb">
+ <testcase purpose="Check if unregisterService throws exception when error callback is invalid" onload_delay="90" component="TizenAPI/TBD/Push" execution_type="auto" id="PushManager_unregisterService_errorCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-push-tizen-tests/push/PushManager_unregisterService_errorCallback_invalid_cb.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-push-tizen-tests/push/PushManager_registerService_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if registerService throws exception when error callback is invalid" onload_delay="90" component="TizenAPI/TBD/Push" execution_type="auto" id="PushManager_registerService_errorCallback_invalid_cb">
+ <testcase purpose="Check if registerService throws exception when error callback is invalid" onload_delay="90" component="TizenAPI/TBD/Push" execution_type="auto" id="PushManager_registerService_errorCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-push-tizen-tests/push/PushManager_registerService_errorCallback_invalid_cb.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-push-tizen-tests/push/PushManager_unregisterService_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if unregisterService throws exception when success callback is invalid" onload_delay="90" component="TizenAPI/TBD/Push" execution_type="auto" id="PushManager_unregisterService_successCallback_invalid_cb">
+ <testcase purpose="Check if unregisterService throws exception when success callback is invalid" onload_delay="90" component="TizenAPI/TBD/Push" execution_type="auto" id="PushManager_unregisterService_successCallback_invalid_cb">
<description>
<test_script_entry>/opt/tct-push-tizen-tests/push/PushManager_unregisterService_successCallback_invalid_cb.html</test_script_entry>
</description>