[Push] Various fixes.
authorTomasz Kusmierz <t.kusmierz@samsung.com>
Tue, 8 Oct 2013 10:54:25 +0000 (12:54 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 8 Oct 2013 11:58:44 +0000 (11:58 +0000)
Change-Id: I45cf49113227bfbc01d683f1e61eb06e1ae48127

42 files changed:
tct-push-tizen-tests/push/PushManagerObject_notexist.html
tct-push-tizen-tests/push/PushManager_connectService.html
tct-push-tizen-tests/push/PushManager_connectService_exist.html
tct-push-tizen-tests/push/PushManager_connectService_missarg.html
tct-push-tizen-tests/push/PushManager_connectService_notificationCallback_TypeMismatch.html
tct-push-tizen-tests/push/PushManager_connectService_notificationCallback_invalid_cb.html
tct-push-tizen-tests/push/PushManager_disconnectService.html
tct-push-tizen-tests/push/PushManager_disconnectService_exist.html
tct-push-tizen-tests/push/PushManager_disconnectService_extra_argument.html
tct-push-tizen-tests/push/PushManager_extend.html
tct-push-tizen-tests/push/PushManager_getRegistrationId.html
tct-push-tizen-tests/push/PushManager_getRegistrationId_exist.html
tct-push-tizen-tests/push/PushManager_getRegistrationId_extra_argument.html
tct-push-tizen-tests/push/PushManager_getRegistrationId_notRegistered.html
tct-push-tizen-tests/push/PushManager_in_tizen.html
tct-push-tizen-tests/push/PushManager_notexist.html
tct-push-tizen-tests/push/PushManager_registerService.html
tct-push-tizen-tests/push/PushManager_registerService_appControl_TypeMismatch.html
tct-push-tizen-tests/push/PushManager_registerService_appControl_invalid_obj.html
tct-push-tizen-tests/push/PushManager_registerService_errorCallback_TypeMismatch.html
tct-push-tizen-tests/push/PushManager_registerService_errorCallback_invalid_cb.html
tct-push-tizen-tests/push/PushManager_registerService_exist.html
tct-push-tizen-tests/push/PushManager_registerService_misargs.html
tct-push-tizen-tests/push/PushManager_registerService_successCallback_TypeMismatch.html
tct-push-tizen-tests/push/PushManager_registerService_successCallback_invalid_cb.html
tct-push-tizen-tests/push/PushManager_registerService_without_errorCallback.html
tct-push-tizen-tests/push/PushManager_unregisterService.html
tct-push-tizen-tests/push/PushManager_unregisterService_errorCallback_TypeMismatch.html
tct-push-tizen-tests/push/PushManager_unregisterService_errorCallback_invalid_cb.html
tct-push-tizen-tests/push/PushManager_unregisterService_exist.html
tct-push-tizen-tests/push/PushManager_unregisterService_successCallback_TypeMismatch.html
tct-push-tizen-tests/push/PushManager_unregisterService_successCallback_invalid_cb.html
tct-push-tizen-tests/push/PushManager_unregisterService_without_errorCallback.html
tct-push-tizen-tests/push/PushManager_unregisterService_without_successCallback.html
tct-push-tizen-tests/push/PushMessage_notexist.html
tct-push-tizen-tests/push/PushNotificationCallback_notexist.html
tct-push-tizen-tests/push/PushRegisterSuccessCallback_notexist.html
tct-push-tizen-tests/push/PushRegisterSuccessCallback_onsuccess.html
tct-push-tizen-tests/push/support/unitcommon.js [new file with mode: 0644]
tct-push-tizen-tests/resources/unitcommon.js [deleted file]
tct-push-tizen-tests/tests.full.xml
tct-push-tizen-tests/tests.xml

index de8778a8eb06e94c23a8468823d74e7f0d346be0..846a5226045c5c4440689ad079dc3006366fb64a 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -37,7 +37,8 @@ Authors:
 //==== TEST_CRITERIA NIO
 test(function () {
     check_no_interface_object("PushManagerObject");
-}, "PushManagerObject_notexist");
+}, document.title);
+
 </script>
 </body>
 </html>
index f48e8dda0f3eeee73d08f3f008e7efe77a8a9918..fbf944675a43a5bfb8db727edd7eb721db8f5b52 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -33,12 +33,12 @@ Authors:
 //==== 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;
 
@@ -48,7 +48,7 @@ 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);
     });
 
     notificationCallback = t.step_func(function (message) {
@@ -65,11 +65,12 @@ t.step(function () {
     });
 
     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>
index a0ce74ec37c81c44921ad5b32ed93702f9d8abbe..8dbe8cec0a3ad303d2e68e32d97cc5d7ddc35731 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -37,7 +37,8 @@ Authors:
 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>
index c0145c0ebd2e13c76c0b3b05c98fdd7e633a0610..c00bf5cae56c2b313ae57d834eab27c00d8c8937 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -33,12 +33,12 @@ Authors:
 //==== 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 () {
@@ -47,12 +47,12 @@ 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");
@@ -64,11 +64,12 @@ t.step(function () {
     });
 
     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>
index 0c4a620a2a8043035351b28b4328fb49e9921a80..52a6b3a7b50baf2bd5bc07b783d69da438dabf0e 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -33,9 +33,9 @@ Authors:
 //==== 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);
@@ -43,12 +43,13 @@ test(function() {
         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>
index b57a1b43f6f75e69e646ff3786b02dc0095c2092..fa86cb12b0fda5b8987e4a60e4aba206f4b3dc7a 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -34,11 +34,11 @@ Authors:
 //==== 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 () {
@@ -48,13 +48,14 @@ 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>
index e5ba26cac7a7cd236f39b9111b60eba11a888bbf..f123042b19c1686ad75b1857defb88a4185fa51a 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -33,12 +33,12 @@ Authors:
 //==== 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;
 
@@ -48,7 +48,7 @@ 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);
     });
 
     notificationCallback = t.step_func(function (message) {
@@ -65,11 +65,12 @@ t.step(function () {
     });
 
     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>
index fc22d4a4af17a1ff7450885720d0942fad311ad9..b49bc01d81b3fcd591c5e252cfd1f9a830da823c 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -37,7 +37,8 @@ Authors:
 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>
index 4113401ce15a94181b86a2b14b7163084ac15d46..648b403a72ae73eb07acf648cc736e39b0a20ab2 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -36,7 +36,8 @@ Authors:
 //==== TEST_CRITERIA MNAEX
 test(function () {
     checkExtraArgument(tizen.push, "disconnectService");
-}, "PushManager_disconnectService_extra_argument");
+}, document.title);
+
 </script>
 </body>
 </html>
index 23d6b84d8487184b7f5ee788ceb7a8b4cca4ee56..369f5b76c2152ee679b2732f276d3ab856fceb31 100644 (file)
@@ -15,28 +15,29 @@ See the License for the specific language governing permissions and
 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>
index b4954a62f02f6b330cb1701c4899e50f232926d0..79ce2d3b01fc7e092cd8817a5a07f25735f74ba9 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -33,12 +33,12 @@ Authors:
 //==== 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;
 
@@ -48,7 +48,7 @@ t.step(function () {
     });
 
     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) {
@@ -61,11 +61,12 @@ t.step(function () {
     });
 
     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>
index df627c52d3c27326eecbf871f8e7aa913867d2a6..c89a6f95fb0209d965bd573e6dcf9a348f503075 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -37,7 +37,8 @@ Authors:
 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>
index a670a37b40c6cc669a188d2f959dda99172a35ee..6efcabd88b75d23d16deb76139bda9c722166314 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -36,7 +36,8 @@ Authors:
 //==== TEST_CRITERIA MNAEX
 test(function () {
     checkExtraArgument(tizen.push, "getRegistrationId");
-}, "PushManager_getRegistrationId_extra_argument");
+}, document.title);
+
 </script>
 </body>
 </html>
index a303e89fa27a77bb315bdb2d9a5adca304b159de..c661625e7f92c1a7db416d91f6a359b918a87f5f 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -37,7 +37,7 @@ Authors:
 //==== 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 () {
@@ -47,12 +47,13 @@ t.step(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>
index 6c3af9d4a0a4b8c96bf8c7c6fccdcea2702e5284..4d5a5cc4697d593dae49eac71517daa6959915df 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -35,10 +35,11 @@ Authors:
 //==== 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>
index 1b0ed67432f8d22a5448e74fe480c84a254bdfb3..3e8c04d34b7b0705d74ea7c1174050d133f9f104 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -37,7 +37,8 @@ Authors:
 //==== TEST_CRITERIA NIO
 test(function () {
     check_no_interface_object("PushManager");
-}, "PushManager_notexist");
+}, document.title);
+
 </script>
 </body>
 </html>
index 7c486f9626679b4ab2d48bb82ee359b5059c3595..7c52031ee9cb5e04c9b7d21371780b803e081c75 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -38,7 +38,7 @@ Authors:
 //==== 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;
@@ -49,7 +49,7 @@ 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) {
@@ -67,7 +67,7 @@ t.step(function () {
     });
 
     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 () {
@@ -76,11 +76,12 @@ t.step(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>
index 4b668fe4d67b5ea0819c7caa61f517ab6793dba0..1f1a10732d48bb491edc1f9677a7b1876fd6a945 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -35,11 +35,11 @@ Authors:
 //==== 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;
 
@@ -58,13 +58,14 @@ t.step(function () {
         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>
index f2cbb496f806e641f9b2344f20436320b8658acf..40e10d4f6d6e54d6d040cfb3269f96d237587ba2 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -35,11 +35,11 @@ Authors:
 //==== 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 () {
@@ -59,12 +59,13 @@ 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>
index 674943ef1a3e6714a8569ab20b0b310c0f767817..d82f802b53aeb944bf75d01051445f965c7047e5 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -35,11 +35,11 @@ Authors:
 //==== 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 () {
@@ -52,13 +52,14 @@ 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>
index 8d436c753e7877ca61207df7004b5a25014b316c..a662f30450027b240552222855b3475cb6d7d684 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -31,15 +31,15 @@ Authors:
 <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 () {
@@ -53,13 +53,14 @@ 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>
index 383b9a798ba399c47e9dcffd6bf24d2b6318ce8b..ccb4ae8d120d50c0e88914129348760ebcc0b4d0 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -37,7 +37,8 @@ Authors:
 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>
index 5a8ef67775daf05b4f50c036426c7581176cf06c..c9b55bd201643e51d72fdbe51072cdd09c0c88cf 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -33,19 +33,20 @@ Authors:
 //==== 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>
index 379b14b2fc64bf4057067cecb54b2b3bd31db0ca..1424dc3f1dda91483f2041f80022cdf41a93fb55 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -35,11 +35,11 @@ Authors:
 //==== 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 () {
@@ -52,13 +52,14 @@ 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>
index 4d2c08e8f573e0e40e9121f30182d88a3efb60e2..8f7fcbf48b71be65f8c6730d7542c80af96699ab 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -31,15 +31,15 @@ Authors:
 <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 () {
@@ -53,13 +53,14 @@ 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>
index 699e1b47e22017bf68917bb19bc95ae8df6499e5..b98ff03d6f058a220921ed1e00bf568141c54d45 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -33,12 +33,12 @@ Authors:
 //==== 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;
@@ -49,7 +49,7 @@ 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) {
@@ -72,11 +72,12 @@ t.step(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>
index 5634a84cd030148c671a495875934af06ef8eb07..a46b638767b33eb51e57ade0e365a77bb22cfc90 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -33,12 +33,12 @@ Authors:
 //==== 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;
 
@@ -52,7 +52,7 @@ 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 (successRegistrationId) {
@@ -61,11 +61,12 @@ t.step(function () {
     });
 
     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>
index dc01041a849100ef4881c7764dcad80b3ca83ff8..43ea21b1ccafe5ea6492a0184e2083ab218da6dd 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -34,11 +34,11 @@ Authors:
 //==== 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 () {
@@ -51,13 +51,14 @@ 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>
index f5bf61976fd0b27ed5cb11424c02ff630356456f..ec015a753bfcfd82221ddc2fb48bbd3236e745a4 100644 (file)
@@ -15,30 +15,30 @@ See the License for the specific language governing permissions and
 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 () {
@@ -52,13 +52,14 @@ 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>
index 92b3362cbf58815094cc246a37174a816356b530..2a5025244c6623de19565f8139371e69048ae041 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -37,7 +37,8 @@ Authors:
 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>
index 2da9c9e3a959091126f434336c7e509756375fda..68639629246443c361233349faa73c059b612628 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -34,11 +34,11 @@ Authors:
 //==== 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 () {
@@ -51,13 +51,14 @@ 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>
index 51198fc0e65e11ff9071da8cfa4d528c2ffe8021..e7cce16c43e432978c6bd32855d690d44177fa75 100644 (file)
@@ -15,30 +15,30 @@ See the License for the specific language governing permissions and
 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 () {
@@ -52,13 +52,14 @@ 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>
index 7c0c060f24f5ff2fa971f7c71269b85767d19db3..0d65e9cabcbfbc0f31e58c083b08b5972e929818 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -33,12 +33,12 @@ Authors:
 //==== 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;
@@ -53,7 +53,7 @@ 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 (successRegistrationId) {
@@ -62,11 +62,12 @@ t.step(function () {
     });
 
     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>
index 72552496b407576e1c0bf537cfa3edcd86b1d0d1..bb1513c5a1fcbb20e5f5a658f67bca26edae6788 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -33,12 +33,12 @@ Authors:
 //==== 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 () {
@@ -49,11 +49,12 @@ 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>
index fafc350a6604621d8b00a1cd332cca36e12ebeb1..15a1ad46baa5f05a38318d31b39994f861b70ee8 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -37,7 +37,8 @@ Authors:
 //==== TEST_CRITERIA NIO
 test(function () {
     check_no_interface_object("PushMessage");
-}, "PushMessage_notexist");
+}, document.title);
+
 </script>
 </body>
 </html>
index b7c3204f9ee5e88e6f01563f2bb52a8c0c1e2883..2a309b34336cf5054b5170643630cd417e86f926 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -37,7 +37,8 @@ Authors:
 //==== TEST_CRITERIA CBNIO
 test(function () {
     check_no_interface_object("PushNotificationCallback");
-}, "PushNotificationCallback_notexist");
+}, document.title);
+
 </script>
 </body>
 </html>
index dfcdec84f979ea06def79243f1d3486a2449f195..8932d5c880e86b3a82324e39b51c0e425e3a6a2b 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
@@ -37,7 +37,8 @@ Authors:
 //==== TEST_CRITERIA CBNIO
 test(function () {
     check_no_interface_object("PushRegisterSuccessCallback");
-}, "PushRegisterSuccessCallback_notexist");
+}, document.title);
+
 </script>
 </body>
 </html>
index f3fcb3fa2d7f6426d967aabe987262b330b9f19c..92319cddf0a2c45d34e47cec3ee98f93678f977b 100644 (file)
@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
 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>
 
@@ -34,12 +34,12 @@ Authors:
 //==== 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 () {
@@ -48,7 +48,7 @@ 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) {
@@ -61,12 +61,13 @@ t.step(function () {
     });
 
     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>
diff --git a/tct-push-tizen-tests/push/support/unitcommon.js b/tct-push-tizen-tests/push/support/unitcommon.js
new file mode 100644 (file)
index 0000000..9f972c1
--- /dev/null
@@ -0,0 +1,559 @@
+/*
+
+Copyright (c) 2013 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+
+
+Authors:
+
+ */
+
+
+MIN_BYTE = -128;
+MAX_BYTE = 127;
+MIN_OCTET = 0;
+MAX_OCTET = 255;
+MIN_SHORT = -32768;
+MAX_SHORT = 32767;
+MIN_UNSIGNED_SHORT = 0;
+MAX_UNSIGNED_SHORT = 65535;
+MIN_LONG = -2147483648;
+MAX_LONG = 2147483647;
+MIN_UNSIGNED_LONG = 0;
+MAX_UNSIGNED_LONG = 4294967295;
+MIN_LONG_LONG = -9223372036854775808;
+MAX_LONG_LONG = 9223372036854775807;
+MIN_UNSIGNED_LONG_LONG = 0;
+MAX_UNSIGNED_LONG_LONG = 18446744073709551615;
+
+TYPE_MISMATCH_EXCEPTION = {name: 'TypeMismatchError'};
+NOT_FOUND_EXCEPTION = {name: 'NotFoundError'};
+INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'};
+IO_EXCEPTION = {name: 'IOError'};
+SECURITY_EXCEPTION = {name: 'SecurityError'};
+
+
+(function () {
+   var head_src = document.head.innerHTML;
+   if (head_src.search(/\/testharness.js\W/) === -1) {
+       document.write('<script language="javascript" src="../resources/testharness.js"></script>\n');
+   }
+   if (head_src.search(/\/testharnessreport.js\W/) === -1) {
+       document.write('<script language="javascript" src="../resources/testharnessreport.js"></script>\n');
+   }
+})();
+
+var _registered_types = {};
+
+function _resolve_registered_type(type) {
+    while (type in _registered_types) {
+        type = _registered_types[type];
+    }
+    return type;
+}
+
+/**
+ * Method checks extra argument for none argument method.
+ * The only check is that method will not throw an exception.
+ * Example usage:
+ * checkExtraArgument(tizen.notification, "removeAll");
+ *
+ * @param object object
+ * @param methodName string - name of the method
+ */
+function checkExtraArgument(object, methodName) {
+    var extraArgument = [
+        null,
+        undefined,
+        "Tizen",
+        1,
+        false,
+        ["one", "two"],
+        {argument: 1},
+        function () {}
+    ], i;
+
+    for (i = 0; i < extraArgument.length; i++) {
+        object[methodName](extraArgument[i]);
+    }
+}
+
+/**
+ * Method to validate conversion.
+ * Example usage:
+ *   conversionTable = getTypeConversionExceptions("functionObject", true);
+ *   for(i = 0; i < conversionTable.length; i++) {
+ *       errorCallback = conversionTable[i][0];
+ *       exceptionName = conversionTable[i][1];
+ *
+ *       assert_throws({name : exceptionName},
+ *       function () {
+ *           tizen.systemsetting.setProperty("HOME_SCREEN",
+ *               propertyValue, successCallback, errorCallback);
+ *       }, exceptionName + " should be thrown - given incorrect errorCallback.");
+ *   }
+ *
+ * @param conversionType
+ * @param isOptional
+ * @returns table of tables which contain value (index 0) and exceptionName (index 1)
+ *
+ */
+function getTypeConversionExceptions(conversionType, isOptional) {
+    var exceptionName = "TypeMismatchError",
+        conversionTable;
+    switch (conversionType) {
+        case "enum":
+            conversionTable = [
+                [undefined, exceptionName],
+                [null, exceptionName],
+                [0, exceptionName],
+                [true, exceptionName],
+                ["dummyInvalidEnumValue", exceptionName],
+                [{ }, exceptionName]
+            ];
+            break;
+        case "double":
+            conversionTable = [
+                [undefined, exceptionName],
+                [NaN, exceptionName],
+                [Number.POSITIVE_INFINITY, exceptionName],
+                [Number.NEGATIVE_INFINITY, exceptionName],
+                ["TIZEN", exceptionName],
+                [{ name : "TIZEN" }, exceptionName],
+                [function () { }, exceptionName]
+            ];
+            break;
+        case "object":
+            conversionTable = [
+                [true, exceptionName],
+                [false, exceptionName],
+                [NaN, exceptionName],
+                [0, exceptionName],
+                ["", exceptionName],
+                ["TIZEN", exceptionName],
+                [undefined, exceptionName]
+            ];
+            if (!isOptional) {
+                conversionTable.push([null, exceptionName]);
+            }
+            break;
+        case "functionObject":
+            conversionTable = [
+                [true, exceptionName],
+                [false, exceptionName],
+                [NaN, exceptionName],
+                [0, exceptionName],
+                ["", exceptionName],
+                ["TIZEN", exceptionName],
+                [[], exceptionName],
+                [{ }, exceptionName],
+                [undefined, exceptionName]
+            ];
+            if (!isOptional) {
+                conversionTable.push([null, exceptionName]);
+            }
+            break;
+        case "array":
+            conversionTable = [
+                [true, exceptionName],
+                [false, exceptionName],
+                [NaN, exceptionName],
+                [0, exceptionName],
+                ["", exceptionName],
+                ["TIZEN", exceptionName],
+                [{ }, exceptionName],
+                [function () { }, exceptionName],
+                [undefined, exceptionName]
+            ];
+            if (!isOptional) {
+                conversionTable.push([null, exceptionName]);
+            }
+            break;
+        case "dictionary":
+            conversionTable = [
+                [true, exceptionName],
+                [false, exceptionName],
+                [NaN, exceptionName],
+                [0, exceptionName],
+                ["", exceptionName],
+                ["TIZEN", exceptionName],
+                [undefined, exceptionName]
+            ];
+            if (!isOptional) {
+                conversionTable.push([null, exceptionName]);
+            }
+            break;
+        default:
+            assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'.");
+    };
+
+    return conversionTable;
+}
+
+
+function assert_type(obj, type, description) {
+    var org_type = type, prop_name, prop_type, prop_value;
+
+    type = _resolve_registered_type(type);
+
+    if (typeof (type) === 'string') {
+        type = type.toLowerCase();
+        switch (type) {
+            case 'object':
+            case 'string':
+            case 'number':
+            case 'function':
+            case 'boolean':
+            case 'undefined':
+            case 'xml':
+                assert_equals(typeof (obj), type, description);
+                break;
+            case 'null':
+                assert_true(obj === null, description);
+                break;
+            case 'array':
+                assert_true(Array.isArray(obj), description);
+                break;
+            case 'date':
+                assert_true(obj instanceof Date, description);
+                break;
+            case 'byte':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_BYTE, description + " - value too high.");
+                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+                break;
+            case 'octet':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_OCTET, description + " - value too high.");
+                assert_equals(obj % 1, 0, description + " - value is not an integer.");
+                break;
+            case 'short':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_SHORT, description + " - value too high.");
+                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+                break;
+            case 'unsigned short':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high.");
+                assert_equals(obj % 1, 0, description + " - value is not an integer.");
+                break;
+            case 'long':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_LONG, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_LONG, description + " - value too high.");
+                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+                break;
+            case 'unsigned long':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high.");
+                assert_equals(obj % 1, 0, description + " - value is not an integer.");
+                break;
+            case 'long long':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high.");
+                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+                break;
+            case 'unsigned long long':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high.");
+                assert_equals(obj % 1, 0, description + " - value is not an integer.");
+                break;
+            default:
+                assert_unreached('Fix your test. Wrong type \'' + org_type + '\'');
+        }
+    } else if (typeof (type) === 'function') {
+        assert_true(obj instanceof type, description);
+    } else if (typeof (type) === 'object') {
+        for (prop_name in type) {
+            prop_type = type[prop_name];
+            if (prop_type === 'function') {
+                assert_inherits(obj, prop_name);
+                assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name);
+            } else {
+                assert_own_property(obj, prop_name);
+            }
+        }
+    } else {
+        assert_unreached('Fix your test. Wrong type ' + org_type);
+    }
+}
+
+function register_type(alias, type_spec) {
+    _registered_types[alias] = type_spec;
+}
+
+/**
+ * Method to check if attribute is const.
+ * Example usage:
+ * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B);
+ *
+ * @param obj  object to test which  has const attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+    var tmp;
+    if (expectedValue === valueToAssign) {
+        assert_unreached("Fix your test. The same values given for "  + attributeName +
+            " in 'value' and 'valueToSet' arguments.");
+    }
+    if (typeof (attributeName) === "string") {
+        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
+        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
+        if (typeof (expectedType) !== "undefined") {
+            if (expectedValue === null) {
+                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
+            } else {
+                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
+            }
+        } else {
+            assert_unreached("Fix your test. Wrong type " + expectedType);
+        }
+        tmp = obj[attributeName];
+        obj[attributeName] = valueToAssign;
+        assert_equals(obj[attributeName], tmp, attributeName + " can be modified.");
+    } else {
+        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
+    }
+}
+
+/**
+ * Method to check if attribute is readonly.
+ * Example usage:
+ * check_readonly(statusNotification, "postedTime", null, 'object', new Date());
+ *
+ * @param obj  object to test which  has readonly attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+    check_const(obj, attributeName, expectedValue, expectedType, valueToAssign);
+}
+
+/**
+ * Method to check if attribute can be set to null.
+ * Example usage:
+ * check_not_nullable(syncInfo, "mode");
+ *
+ * @param obj object to test which has not nullable attribute
+ * @param attributeName attribute name.
+ */
+function check_not_nullable(obj, attributeName)
+{   var old_value = obj[attributeName];
+    obj[attributeName] = null;
+    assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null.");
+    obj[attributeName] = old_value;
+}
+
+/**
+ * Method to check NoInterfaceObject
+ * Example usage:
+ * check_no_interface_object("BluetoothAdapter")
+ *
+ * @param interfaceName interface name
+ */
+function check_no_interface_object(interfaceName) {
+    assert_throws({name: "TypeError"}, function () {
+        tizen[interfaceName]();
+    },"Wrong call as a function");
+    assert_throws({name: "TypeError"}, function () {
+        new tizen[interfaceName]();
+    },"Wrong call as a new function");
+    assert_throws({name: "TypeError"}, function () {
+        ({}) instanceof tizen[interfaceName];
+    },"instanceof exception");
+    assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined.");
+}
+
+
+/**
+ * Method to check Constructors
+ * Example usage:
+ * check_constructor("BluetoothAdapter")
+ *
+ * @param constructorName constructor name
+ */
+
+function check_constructor(constructorName) {
+    assert_true(constructorName in tizen, "No " + constructorName + " in tizen.");
+    assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName);
+    assert_throws({
+        name: "TypeError"
+    }, function () {
+        tizen[constructorName]();
+    }, "Constructor called as function.");
+}
+
+/**
+ * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED).
+ * That method also checks if given method exists in a given object.
+ * Example usage:
+ * check_method_exists(tizen.notification, "get");
+ *
+ * @param obj object with method
+ * @param methodName name of the method to check.
+ */
+function check_method_exists(obj, methodName) {
+    assert_type(obj[methodName], 'function', "Method does not exist.");
+}
+
+/**
+ * Method to check extensibility of given object.
+ * Method checks if new attribute and method can be added.
+ * Example usage:
+ * check_extensibility(tizen.notification);
+ *
+ * @param obj object to check
+ */
+function check_extensibility(obj) {
+    var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue";
+    obj.newDummyMethod = function() {
+        return dummyMethodResult;
+    }
+    assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method.");
+
+    obj.newDummyAttribute = dummyAttribute;
+    assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute.");
+}
+
+/**
+ * Method to check if attribute can be modify.
+ * Example usage:
+ * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html");
+ *
+ * @param obj  object to test which has not readonly attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+    if (expectedValue === valueToAssign) {
+        assert_unreached("Fix your test. The same values given for "  + attributeName +
+            " in 'value' and 'valueToSet' arguments.");
+    }
+    if (typeof (attributeName) === "string") {
+        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
+        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
+        if (typeof (expectedType) !== "undefined") {
+            if (expectedValue === null) {
+                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
+            } else {
+                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
+            }
+        } else {
+            assert_unreached("Fix your test. Wrong type " + expectedType);
+        }
+        obj[attributeName] = valueToAssign;
+        assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified.");
+    } else {
+        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
+    }
+}
+
+/**
+ * Method to check if whole array can be overwritten with an invalid value.
+ * Sample usage:
+ * check_invalid_array_assignments(message, "to", false);
+ *
+ * @param obj object which has the array as its property
+ * @param array name of the array to check
+ * @param isNullable indicates if the array can be null
+ */
+function check_invalid_array_assignments(obj, array, isNullable) {
+    var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}],
+        val = obj[array], i;
+
+    if (!isNullable) {
+        obj[array] = null;
+        assert_not_equals(obj[array], null, "Non-nullable array was set to null");
+        assert_type(obj[array], "array", "Non-nullable array type changed after assigning null");
+        assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null");
+    }
+
+    for (i = 0 ; i < args.length ; i++) {
+        obj[array] = args[i];
+        assert_type(obj[array], "array", "Array type changed after assigning an invalid value");
+        assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value");
+    }
+}
+
+/**
+ * Method to check if an object can be overwritten with an invalid value.
+ * Sample usage:
+ * check_invalid_object_assignments(message, "body", false);
+ *
+ * @param parentObj object which has the 'obj' object as its property
+ * @param obj name of the object to check
+ * @param isNullable indicates if the object can be null
+ */
+function check_invalid_obj_assignments(parentObj, obj, isNullable) {
+    var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}],
+        val = parentObj[obj], i;
+
+    if (!isNullable) {
+        parentObj[obj] = null;
+        assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null");
+    }
+
+    for (i = 0 ; i < args.length ; i++) {
+        parentObj[obj] = args[i];
+        assert_equals(parentObj[obj], val, "The object was set to " + args[i]);
+    }
+}
+
+/**
+ * Method to validate conversion for listeners.
+ * Example usage:
+ * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]);
+ * for(i = 0; i < incorrectListeners.length; i++) {
+ *     packageInformationEventCallback  = incorrectListeners[i][0];
+ *     exceptionName = incorrectListeners[i][1];
+ *     assert_throws({name : exceptionName},
+ *        function () {
+ *             tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
+ *         }, exceptionName + " should be thrown - given incorrect successCallback.");
+ * }
+ *
+ *
+ * @param callbackNames Array with names
+ * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1)
+ *
+ */
+function getListenerConversionExceptions(callbackNames) {
+    var result = [], conversionTable, i, j, listenerName;
+    conversionTable = getTypeConversionExceptions("functionObject", false);
+
+    for (i = 0; i < callbackNames.length; i++) {
+        for (j = 0; j < conversionTable.length; j++) {
+            listenerName = {};
+            listenerName[callbackNames[i]] = conversionTable[j][0];
+            result.push([listenerName, conversionTable[j][1]]);
+        }
+    }
+
+    return result;
+}
diff --git a/tct-push-tizen-tests/resources/unitcommon.js b/tct-push-tizen-tests/resources/unitcommon.js
deleted file mode 100644 (file)
index 9f972c1..0000000
+++ /dev/null
@@ -1,559 +0,0 @@
-/*
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-
- */
-
-
-MIN_BYTE = -128;
-MAX_BYTE = 127;
-MIN_OCTET = 0;
-MAX_OCTET = 255;
-MIN_SHORT = -32768;
-MAX_SHORT = 32767;
-MIN_UNSIGNED_SHORT = 0;
-MAX_UNSIGNED_SHORT = 65535;
-MIN_LONG = -2147483648;
-MAX_LONG = 2147483647;
-MIN_UNSIGNED_LONG = 0;
-MAX_UNSIGNED_LONG = 4294967295;
-MIN_LONG_LONG = -9223372036854775808;
-MAX_LONG_LONG = 9223372036854775807;
-MIN_UNSIGNED_LONG_LONG = 0;
-MAX_UNSIGNED_LONG_LONG = 18446744073709551615;
-
-TYPE_MISMATCH_EXCEPTION = {name: 'TypeMismatchError'};
-NOT_FOUND_EXCEPTION = {name: 'NotFoundError'};
-INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'};
-IO_EXCEPTION = {name: 'IOError'};
-SECURITY_EXCEPTION = {name: 'SecurityError'};
-
-
-(function () {
-   var head_src = document.head.innerHTML;
-   if (head_src.search(/\/testharness.js\W/) === -1) {
-       document.write('<script language="javascript" src="../resources/testharness.js"></script>\n');
-   }
-   if (head_src.search(/\/testharnessreport.js\W/) === -1) {
-       document.write('<script language="javascript" src="../resources/testharnessreport.js"></script>\n');
-   }
-})();
-
-var _registered_types = {};
-
-function _resolve_registered_type(type) {
-    while (type in _registered_types) {
-        type = _registered_types[type];
-    }
-    return type;
-}
-
-/**
- * Method checks extra argument for none argument method.
- * The only check is that method will not throw an exception.
- * Example usage:
- * checkExtraArgument(tizen.notification, "removeAll");
- *
- * @param object object
- * @param methodName string - name of the method
- */
-function checkExtraArgument(object, methodName) {
-    var extraArgument = [
-        null,
-        undefined,
-        "Tizen",
-        1,
-        false,
-        ["one", "two"],
-        {argument: 1},
-        function () {}
-    ], i;
-
-    for (i = 0; i < extraArgument.length; i++) {
-        object[methodName](extraArgument[i]);
-    }
-}
-
-/**
- * Method to validate conversion.
- * Example usage:
- *   conversionTable = getTypeConversionExceptions("functionObject", true);
- *   for(i = 0; i < conversionTable.length; i++) {
- *       errorCallback = conversionTable[i][0];
- *       exceptionName = conversionTable[i][1];
- *
- *       assert_throws({name : exceptionName},
- *       function () {
- *           tizen.systemsetting.setProperty("HOME_SCREEN",
- *               propertyValue, successCallback, errorCallback);
- *       }, exceptionName + " should be thrown - given incorrect errorCallback.");
- *   }
- *
- * @param conversionType
- * @param isOptional
- * @returns table of tables which contain value (index 0) and exceptionName (index 1)
- *
- */
-function getTypeConversionExceptions(conversionType, isOptional) {
-    var exceptionName = "TypeMismatchError",
-        conversionTable;
-    switch (conversionType) {
-        case "enum":
-            conversionTable = [
-                [undefined, exceptionName],
-                [null, exceptionName],
-                [0, exceptionName],
-                [true, exceptionName],
-                ["dummyInvalidEnumValue", exceptionName],
-                [{ }, exceptionName]
-            ];
-            break;
-        case "double":
-            conversionTable = [
-                [undefined, exceptionName],
-                [NaN, exceptionName],
-                [Number.POSITIVE_INFINITY, exceptionName],
-                [Number.NEGATIVE_INFINITY, exceptionName],
-                ["TIZEN", exceptionName],
-                [{ name : "TIZEN" }, exceptionName],
-                [function () { }, exceptionName]
-            ];
-            break;
-        case "object":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "functionObject":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [[], exceptionName],
-                [{ }, exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "array":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [{ }, exceptionName],
-                [function () { }, exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "dictionary":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        default:
-            assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'.");
-    };
-
-    return conversionTable;
-}
-
-
-function assert_type(obj, type, description) {
-    var org_type = type, prop_name, prop_type, prop_value;
-
-    type = _resolve_registered_type(type);
-
-    if (typeof (type) === 'string') {
-        type = type.toLowerCase();
-        switch (type) {
-            case 'object':
-            case 'string':
-            case 'number':
-            case 'function':
-            case 'boolean':
-            case 'undefined':
-            case 'xml':
-                assert_equals(typeof (obj), type, description);
-                break;
-            case 'null':
-                assert_true(obj === null, description);
-                break;
-            case 'array':
-                assert_true(Array.isArray(obj), description);
-                break;
-            case 'date':
-                assert_true(obj instanceof Date, description);
-                break;
-            case 'byte':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_BYTE, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'octet':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_OCTET, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'short':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_SHORT, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned short':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_LONG, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'long long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned long long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            default:
-                assert_unreached('Fix your test. Wrong type \'' + org_type + '\'');
-        }
-    } else if (typeof (type) === 'function') {
-        assert_true(obj instanceof type, description);
-    } else if (typeof (type) === 'object') {
-        for (prop_name in type) {
-            prop_type = type[prop_name];
-            if (prop_type === 'function') {
-                assert_inherits(obj, prop_name);
-                assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name);
-            } else {
-                assert_own_property(obj, prop_name);
-            }
-        }
-    } else {
-        assert_unreached('Fix your test. Wrong type ' + org_type);
-    }
-}
-
-function register_type(alias, type_spec) {
-    _registered_types[alias] = type_spec;
-}
-
-/**
- * Method to check if attribute is const.
- * Example usage:
- * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B);
- *
- * @param obj  object to test which  has const attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    var tmp;
-    if (expectedValue === valueToAssign) {
-        assert_unreached("Fix your test. The same values given for "  + attributeName +
-            " in 'value' and 'valueToSet' arguments.");
-    }
-    if (typeof (attributeName) === "string") {
-        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
-        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
-        if (typeof (expectedType) !== "undefined") {
-            if (expectedValue === null) {
-                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
-            } else {
-                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
-            }
-        } else {
-            assert_unreached("Fix your test. Wrong type " + expectedType);
-        }
-        tmp = obj[attributeName];
-        obj[attributeName] = valueToAssign;
-        assert_equals(obj[attributeName], tmp, attributeName + " can be modified.");
-    } else {
-        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
-    }
-}
-
-/**
- * Method to check if attribute is readonly.
- * Example usage:
- * check_readonly(statusNotification, "postedTime", null, 'object', new Date());
- *
- * @param obj  object to test which  has readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    check_const(obj, attributeName, expectedValue, expectedType, valueToAssign);
-}
-
-/**
- * Method to check if attribute can be set to null.
- * Example usage:
- * check_not_nullable(syncInfo, "mode");
- *
- * @param obj object to test which has not nullable attribute
- * @param attributeName attribute name.
- */
-function check_not_nullable(obj, attributeName)
-{   var old_value = obj[attributeName];
-    obj[attributeName] = null;
-    assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null.");
-    obj[attributeName] = old_value;
-}
-
-/**
- * Method to check NoInterfaceObject
- * Example usage:
- * check_no_interface_object("BluetoothAdapter")
- *
- * @param interfaceName interface name
- */
-function check_no_interface_object(interfaceName) {
-    assert_throws({name: "TypeError"}, function () {
-        tizen[interfaceName]();
-    },"Wrong call as a function");
-    assert_throws({name: "TypeError"}, function () {
-        new tizen[interfaceName]();
-    },"Wrong call as a new function");
-    assert_throws({name: "TypeError"}, function () {
-        ({}) instanceof tizen[interfaceName];
-    },"instanceof exception");
-    assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined.");
-}
-
-
-/**
- * Method to check Constructors
- * Example usage:
- * check_constructor("BluetoothAdapter")
- *
- * @param constructorName constructor name
- */
-
-function check_constructor(constructorName) {
-    assert_true(constructorName in tizen, "No " + constructorName + " in tizen.");
-    assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName);
-    assert_throws({
-        name: "TypeError"
-    }, function () {
-        tizen[constructorName]();
-    }, "Constructor called as function.");
-}
-
-/**
- * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED).
- * That method also checks if given method exists in a given object.
- * Example usage:
- * check_method_exists(tizen.notification, "get");
- *
- * @param obj object with method
- * @param methodName name of the method to check.
- */
-function check_method_exists(obj, methodName) {
-    assert_type(obj[methodName], 'function', "Method does not exist.");
-}
-
-/**
- * Method to check extensibility of given object.
- * Method checks if new attribute and method can be added.
- * Example usage:
- * check_extensibility(tizen.notification);
- *
- * @param obj object to check
- */
-function check_extensibility(obj) {
-    var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue";
-    obj.newDummyMethod = function() {
-        return dummyMethodResult;
-    }
-    assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method.");
-
-    obj.newDummyAttribute = dummyAttribute;
-    assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute.");
-}
-
-/**
- * Method to check if attribute can be modify.
- * Example usage:
- * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html");
- *
- * @param obj  object to test which has not readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    if (expectedValue === valueToAssign) {
-        assert_unreached("Fix your test. The same values given for "  + attributeName +
-            " in 'value' and 'valueToSet' arguments.");
-    }
-    if (typeof (attributeName) === "string") {
-        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
-        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
-        if (typeof (expectedType) !== "undefined") {
-            if (expectedValue === null) {
-                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
-            } else {
-                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
-            }
-        } else {
-            assert_unreached("Fix your test. Wrong type " + expectedType);
-        }
-        obj[attributeName] = valueToAssign;
-        assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified.");
-    } else {
-        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
-    }
-}
-
-/**
- * Method to check if whole array can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_array_assignments(message, "to", false);
- *
- * @param obj object which has the array as its property
- * @param array name of the array to check
- * @param isNullable indicates if the array can be null
- */
-function check_invalid_array_assignments(obj, array, isNullable) {
-    var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}],
-        val = obj[array], i;
-
-    if (!isNullable) {
-        obj[array] = null;
-        assert_not_equals(obj[array], null, "Non-nullable array was set to null");
-        assert_type(obj[array], "array", "Non-nullable array type changed after assigning null");
-        assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null");
-    }
-
-    for (i = 0 ; i < args.length ; i++) {
-        obj[array] = args[i];
-        assert_type(obj[array], "array", "Array type changed after assigning an invalid value");
-        assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value");
-    }
-}
-
-/**
- * Method to check if an object can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_object_assignments(message, "body", false);
- *
- * @param parentObj object which has the 'obj' object as its property
- * @param obj name of the object to check
- * @param isNullable indicates if the object can be null
- */
-function check_invalid_obj_assignments(parentObj, obj, isNullable) {
-    var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}],
-        val = parentObj[obj], i;
-
-    if (!isNullable) {
-        parentObj[obj] = null;
-        assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null");
-    }
-
-    for (i = 0 ; i < args.length ; i++) {
-        parentObj[obj] = args[i];
-        assert_equals(parentObj[obj], val, "The object was set to " + args[i]);
-    }
-}
-
-/**
- * Method to validate conversion for listeners.
- * Example usage:
- * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]);
- * for(i = 0; i < incorrectListeners.length; i++) {
- *     packageInformationEventCallback  = incorrectListeners[i][0];
- *     exceptionName = incorrectListeners[i][1];
- *     assert_throws({name : exceptionName},
- *        function () {
- *             tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
- *         }, exceptionName + " should be thrown - given incorrect successCallback.");
- * }
- *
- *
- * @param callbackNames Array with names
- * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1)
- *
- */
-function getListenerConversionExceptions(callbackNames) {
-    var result = [], conversionTable, i, j, listenerName;
-    conversionTable = getTypeConversionExceptions("functionObject", false);
-
-    for (i = 0; i < callbackNames.length; i++) {
-        for (j = 0; j < conversionTable.length; j++) {
-            listenerName = {};
-            listenerName[callbackNames[i]] = conversionTable[j][0];
-            result.push([listenerName, conversionTable[j][1]]);
-        }
-    }
-
-    return result;
-}
index 3a9d3c7e04bf81d0856d2eed705c90e38b424b56..a50c55861837a1816321d051d81bdd676f672268 100644 (file)
@@ -25,7 +25,7 @@
         <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>
@@ -78,7 +78,7 @@
           </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>
index 0b25384403daf63df9f9fb0899e796e139a5f7e0..7763b87461f20437df255c5fff50776635bd3a25 100644 (file)
@@ -36,7 +36,7 @@
           <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>
@@ -91,7 +91,7 @@
           <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>