Minor fixes for proper testing of returned values
authorTomasz Kusmierz <t.kusmierz@samsung.com>
Thu, 26 Sep 2013 13:41:20 +0000 (15:41 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 30 Sep 2013 09:30:57 +0000 (09:30 +0000)
Change-Id: I54f5d09b2acbc0d22546ed5b7384692e26f9cbc1

55 files changed:
tct-download-tizen-tests/download/DownloadManager_getDownloadRequest.html
tct-download-tizen-tests/download/DownloadManager_getState_using.html
tct-download-tizen-tests/download/DownloadManager_pause.html
tct-download-tizen-tests/download/DownloadManager_resume.html
tct-filesystem-tizen-tests/filesystem/FileStream_close.html
tct-filesystem-tizen-tests/filesystem/FileStream_write.html
tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64.html
tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes.html
tct-messageport-tizen-tests/messageport/RemoteMessagePort_sendMessage.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPeerListener.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPowered_off.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPowered_on.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener.html
tct-nfc-tizen-tests/nfc/NFCAdapter_unsetPeerListener.html
tct-nfc-tizen-tests/nfc/NFCAdapter_unsetTagListener.html
tct-nfc-tizen-tests/nfc/NFCManager_setExclusiveMode.html
tct-nfc-tizen-tests/nfc/NFCPeer_sendNDEF_sendData.html
tct-nfc-tizen-tests/nfc/NFCPeer_sendNDEF_with_errorCallback.html
tct-nfc-tizen-tests/nfc/NFCPeer_sendNDEF_with_successCallback.html
tct-nfc-tizen-tests/nfc/NFCTag_readNDEF_without_errorCallback.html
tct-nfc-tizen-tests/nfc/NFCTag_writeNDEF.html
tct-notification-tizen-tests/notification/NotificationManager_remove.html
tct-notification-tizen-tests/notification/NotificationManager_removeAll.html
tct-notification-tizen-tests/notification/NotificationManager_update.html
tct-package-tizen-tests/package/PackageManager_getPackagesInfo.html
tct-package-tizen-tests/package/PackageManager_setPackageInfoEventListener.html
tct-package-tizen-tests/package/PackageManager_unsetPackageInfoEventListener.html
tct-push-tizen-tests/push/PushManager_connectService.html
tct-push-tizen-tests/push/PushManager_disconnectService.html
tct-secureelement-tizen-tests/secureelement/SEService_shutdown.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_HOME_SCREEN.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_INCOMING_CALL.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_LOCK_SCREEN.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_NOTIFICATION_EMAIL.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_no_errorCallback.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_HOME_SCREEN.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_INCOMING_CALL.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_LOCK_SCREEN.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_NOTIFICATION_EMAIL.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_no_errorCallback.html
tct-time-tizen-tests/time/TZDate_setDate.html
tct-time-tizen-tests/time/TZDate_setFullYear.html
tct-time-tizen-tests/time/TZDate_setHours.html
tct-time-tizen-tests/time/TZDate_setMilliseconds.html
tct-time-tizen-tests/time/TZDate_setMinutes.html
tct-time-tizen-tests/time/TZDate_setMonth.html
tct-time-tizen-tests/time/TZDate_setSeconds.html
tct-time-tizen-tests/time/TZDate_setUTCDate.html
tct-time-tizen-tests/time/TZDate_setUTCFullYear.html
tct-time-tizen-tests/time/TZDate_setUTCHours.html
tct-time-tizen-tests/time/TZDate_setUTCMilliseconds.html
tct-time-tizen-tests/time/TZDate_setUTCMinutes.html
tct-time-tizen-tests/time/TZDate_setUTCMonth.html
tct-time-tizen-tests/time/TZDate_setUTCSeconds.html
tct-websetting-tizen-tests/websetting/WebSettingManager_removeAllCookies_with_errorCallback.html

index cd06bfe2bc55ea00bf029cbaa1c69ea2de6f64d3..620d31cf5b31b04665316b32e96543d6ba85f45c 100644 (file)
@@ -49,19 +49,13 @@ Authors:
 
 var t = async_test("DownloadManager_getDownloadRequest", {timeout:90000}),
     destination = "documents", fileName = "download.html", downloadRequest,
-    downloadId, first = true;
+    downloadId;
 setup({timeout: 90000});
 
 t.step(function () {
     var listener = {
         onprogress : t.step_func(function (id, receivedSize, totalSize) {
-            if (first) {
-                downloadRequest = tizen.download.getDownloadRequest(downloadId);
-                assert_equals(downloadRequest.url, url_small, "url valu should not changed");
-                assert_equals(downloadRequest.destination, destination, "destination value should not changed");
-                assert_equals(downloadRequest.fileName, fileName, "fileName value should not changed");
-                first = false;
-            }
+
         }),
         onpaused : t.step_func(function (id) {
             assert_unreached("onpaused should not be reached");
@@ -70,6 +64,10 @@ t.step(function () {
             assert_unreached("oncanceled should not be reached");
         }),
         oncompleted : t.step_func(function (id, fullPath) {
+            downloadRequest = tizen.download.getDownloadRequest(downloadId);
+            assert_equals(downloadRequest.url, url_small, "url valu should not changed");
+            assert_equals(downloadRequest.destination, destination, "destination value should not changed");
+            assert_equals(downloadRequest.fileName, fileName, "fileName value should not changed");
             t.done();
         }),
         onfailed : t.step_func(function (id, error) {
index 497e0159b96f1993a83d304f9703a971513b3dac..ea5b82c0a39565fa2771b8b52c20830395ad10b6 100644 (file)
@@ -53,7 +53,8 @@ t.step(function () {
     listener = {
         onprogress : t.step_func(function (id, receivedSize, totalSize) {
             state = tizen.download.getState(downloadId);
-            assert_true(state === "DOWNLOADING" || state === "COMPLETED", "The state is not DOWNLOADING nor COMPLETED");
+            assert_true(state === "DOWNLOADING" || state === "COMPLETED",
+                "The state is not DOWNLOADING nor COMPLETED");
         }),
         onpaused : t.step_func(function (id) {
             assert_unreached("onpaused should not be reached");
@@ -61,6 +62,8 @@ t.step(function () {
         oncanceled : t.step_func(function (id) {
         }),
         oncompleted : t.step_func(function (id, fullPath) {
+            assert_true(state === "DOWNLOADING" || state === "COMPLETED",
+                "The state is not DOWNLOADING nor COMPLETED");
             t.done();
         }),
         onfailed : t.step_func(function (id, error) {
index ca1ec1bdbbf97765169633098f18ec6e0de5e6d6..7749568610acd4c4a7a530094acdbea27482197e 100644 (file)
@@ -59,7 +59,6 @@ t.step(function () {
             assert_not_equals(id, null, "id should not be null");
             try {
                 retValue = tizen.download.pause(downloadId);
-                assert_equals(retValue, undefined, "pause returns wrong value");
             } catch (e) { }
         }),
         onpaused : t.step_func(function (id) {
@@ -69,6 +68,7 @@ t.step(function () {
             } catch (e) { }
         }),
         oncanceled : t.step_func(function (id) {
+            assert_equals(retValue, undefined, "pause returns wrong value");
             t.done();
         }),
         oncompleted : t.step_func(function (id, path) {
index 2c7a1391e27ce068ea748fd4de0ee8ffe2d755f1..7b5bc8d4ef4748e35f44da9b33a110eed2b46a95 100644 (file)
@@ -67,9 +67,9 @@ t.step(function () {
         }),
         onpaused: t.step_func(function (id) {
             retValue = tizen.download.resume(downloadId);
-            assert_equals(retValue, undefined, "resume returns wrong value");
         }),
         oncanceled : t.step_func(function (id) {
+            assert_equals(retValue, undefined, "resume returns wrong value");
             t.done();
         }),
         oncompleted : t.step_func(function (id, path) {
index 2587b59c9e93a4216b12795e4ce6016c5bc391db..e7ae29d4a77da1cc716533f818870805e9b91319 100644 (file)
@@ -50,14 +50,14 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
 //==== TEST_CRITERIA MNA MR MNAST
 var t = async_test("FileStream_close"),
-    fsTestFileName = getFileName("closeFile.txt"), retVal,
+    fsTestFileName = getFileName("closeFile.txt"), retVal = null,
     resolveSuccess, resolveError, openStreamSuccess, openStreamError, file;
 
 t.step(function () {
     openStreamSuccess = t.step_func(function (fs) {
         fs.write("abcdefg");
         retVal = fs.close();
-        assert_equals(retVal, undefined, "incorrect returned value");
+        assert_equals(retVal, undefined, "incorrect returned value close()");
         assert_throws({name: "IOError"}, function () {
                 fs.read(2);
             });
index 68e7c95a8b18883ec29eaf72cfd3a15f2b7417b1..580f97de48241f28e3081ac2026f16b17a6e6290 100644 (file)
@@ -49,8 +49,8 @@ Authors:
 //==== TEST_CRITERIA MAST MMINA MR
 //  check if writes the specified DOMString to a FileStream.
 var t = async_test("FileStream_write"),
-    resolveSuccess, resolveError, openStreamRSuccess, openStreamWSuccess, retVal,
-    openStreamError, file, text, testString = "abcde",
+    resolveSuccess, resolveError, openStreamRSuccess, openStreamWSuccess,
+    openStreamError, file, text, testString = "abcde", retVal = null,
     fsTestFileName = getFileName("GoodFile.txt");
 
 t.step(function () {
@@ -63,7 +63,7 @@ t.step(function () {
     openStreamWSuccess = t.step_func(function (fs) {
         retVal = fs.write(testString);
         fs.close();
-        assert_equals(retVal, undefined, "incorrect returned value");
+        assert_equals(retVal, undefined, "incorrect returned value from write()");
         file.openStream("r", openStreamRSuccess, openStreamError, "UTF-8");
     });
     openStreamError = t.step_func(function (error) {
index a372164af4387db0794d14f102c9f6f821da9a65..240da565e50a5eea23faa81daffbad478f6c1201 100644 (file)
@@ -36,7 +36,7 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
 //==== TEST_CRITERIA MAST MMINA MR
 var t = async_test("FileStream_writeBase64"),
-    resolveSuccess, resolveError, openStreamWSuccess, openStreamRSuccess, retVal,
+    resolveSuccess, resolveError, openStreamWSuccess, openStreamRSuccess, retVal = null,
     openStreamError, file, base64String = "YWJjZGVmZw==", expected = "abcdefg",
     readString, fsTestFileName = getFileName("readBaseFile.txt");
 
@@ -49,7 +49,7 @@ t.step(function () {
     });
     openStreamWSuccess = t.step_func(function (fs) {
         retVal = fs.writeBase64(base64String);
-        assert_equals(retVal, undefined, "incorrect returned value");
+        assert_equals(retVal, undefined, "incorrect returned value from writeBase64()");
         fs.close();
         file.openStream("r", openStreamRSuccess, openStreamError);
     });
index 34d7919289bfcaea23a43dfc952324f99516d32a..09ecd377446733f825e51dffb6c3fbe85be67ced 100644 (file)
@@ -38,7 +38,7 @@ Authors:
 
 var t = async_test("FileStream_writeBytes"),
     resolveSuccess, resolveError, openStreamWithWSuccess, openStreamWithRSuccess,
-    openStreamError, file, bytes, testString = [1, 2, 3, 4, 5, 6, 7], retVal,
+    openStreamError, file, bytes, testString = [1, 2, 3, 4, 5, 6, 7], retVal = null,
     fsTestFileName = getFileName("writeBytes.txt");
 
 t.step(function () {
@@ -51,7 +51,7 @@ t.step(function () {
 
     openStreamWithWSuccess = t.step_func(function (fs) {
         retVal = fs.writeBytes(testString);
-        assert_equals(retVal, undefined, "incorrect returned value");
+        assert_equals(retVal, undefined, "incorrect returned value from writeBytes()");
         fs.close();
         file.openStream("r", openStreamWithRSuccess, openStreamError);
     });
index 81f5ee4fd9a7307027f14cd7e417e08d4e942781..8eba66387fe17ca82bb86afbadfbfe074b0d9ba8 100644 (file)
@@ -42,6 +42,7 @@ t.step(function () {
         app = tizen.application.getCurrentApplication();
 
     onReceived = t.step_func(function (data) {
+        assert_equals(retValue, undefined, "sendMessage returns wrong value");
         assert_equals(data.key, messagePortData.key, "received data should be the same");
         assert_equals(data.value, messagePortData.value, "received data should be the same");
         localMsgPort.removeMessagePortListener(listenerId);
@@ -53,7 +54,6 @@ t.step(function () {
     listenerId = localMsgPort.addMessagePortListener(onReceived);
 
     retValue = remoteMsgPort.sendMessage(messagePortData);
-    assert_equals(retValue, undefined, "sendMessage returns wrong value");
 });
 
 </script>
index 3c7f401d5666f3f51f764c762bcc4b55f4dbe28d..fea7d13a37127295b9fb651caa2b60102aff304f 100644 (file)
@@ -54,7 +54,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var adapter, peerListener, result,
+var adapter, peerListener, result = null,
     t = async_test("NFCAdapter_setPeerListener", {timeout: 90000});
 
 t.step(function () {
@@ -68,6 +68,8 @@ t.step(function () {
             assert_type(nfcPeer.unsetReceiveNDEFListener, "function", "nfcPeer.unsetReceiveNDEFListener");
             assert_type(nfcPeer.sendNDEF, "function", "nfcPeer.sendNDEF");
 
+            assert_equals(result, undefined, "setPeerListener should return undefined");
+
             t.done();
         }),
 
@@ -78,7 +80,6 @@ t.step(function () {
 
     adapter = tizen.nfc.getDefaultAdapter();
     result = adapter.setPeerListener(peerListener);
-    assert_equals(result, undefined, "setPeerListener should return undefined");
 });
 
 </script>
index 1f3de735894b4d5542bfad589e36ca6ae724d674..d564fbf9aceacad8ec4c57da3b6adcda145fa5c4 100644 (file)
@@ -53,7 +53,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var adapter, onSuccess, onError, result,
+var adapter, onSuccess, onError, result = null,
     t = async_test("NFCAdapter_setPowered_off", {timeout: 90000});
 
 t.step(function () {
@@ -61,15 +61,15 @@ t.step(function () {
 
     onSuccess = t.step_func(function () {
         assert_false(adapter.powered, "adapter should be off");
+        assert_equals(result, undefined, "setPowered() should return undefined.");
         t.done();
     });
 
     onError = t.step_func(function (e) {
-        assert_unreached("setPowered failure: " + e.message);
+        assert_unreached("setPowered() error callback invoked: " +e.name + ", msg: " + e.message);
     });
 
     result = adapter.setPowered(false, onSuccess, onError);
-    assert_equals(result, undefined, "Returned byt setPowered()");
 });
 
 </script>
index 233d87f4b87033f3c1c9f535ddb1b103d3acf178..cf0ceb9cf362994763903c83067de5e6a5eb5d11 100644 (file)
@@ -53,7 +53,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var adapter, onSuccess, onError, result,
+var adapter, onSuccess, onError, result = null,
     t = async_test("NFCAdapter_setPowered_on", {timeout: 90000});
 
 t.step(function () {
@@ -61,15 +61,15 @@ t.step(function () {
 
     onSuccess = t.step_func(function () {
         assert_true(adapter.powered, "adapter should be on");
+        assert_equals(result, undefined, "setPowered() should return undefined.");
         t.done();
     });
 
     onError = t.step_func(function (e) {
-        assert_unreached("setPowered failure: " + e.message);
+        assert_unreached("setPowered() error callback invoked: " +e.name + ", msg: " + e.message);
     });
 
     result = adapter.setPowered(true, onSuccess, onError);
-    assert_equals(result, undefined, "Returned byt setPowered()");
 });
 
 </script>
index f97fad3c3099754219f40e72035e0c1f2c3a0085..249a926c8fea63d65b617ff4e7b462fef80fab49 100644 (file)
@@ -52,7 +52,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var adapter, tagListener, result,
+var adapter, tagListener, result = null,
     t = async_test("NFCAdapter_setTagListener", {timeout: 90000});
 
 t.step(function () {
@@ -67,6 +67,8 @@ t.step(function () {
             assert_own_property(nfcTag, "properties", "nfcTag");
             assert_own_property(nfcTag, "isConnected", "nfcTag");
 
+            assert_equals(result, undefined, "setTagListener() should return undefined");
+
             t.done();
         }),
 
@@ -77,7 +79,6 @@ t.step(function () {
 
     adapter = tizen.nfc.getDefaultAdapter();
     result = adapter.setTagListener(tagListener);
-    assert_equals(result, undefined, "setTagListener() should return undefined");
 });
 
 </script>
index b0b0088ad0258e0a2731f71bfcaaf3b8255763dd..ce395734f7d08f162b3bc2cda2549dfa549e01ba 100644 (file)
@@ -54,7 +54,7 @@ Authors:
 //==== PRE Turn on NFC adapter. Prepare the other device with NFC turned on.
 //==== TEST_CRITERIA MNAST MNA MR
 
-var adapter, peerListener, isWaiting = false, result,
+var adapter, peerListener, isWaiting = false, result = null,
     t = async_test("NFCAdapter_unsetPeerListener", {timeout: 90000});
 
 setup({timeout: 90000});
index 1461a7085f19660d7549d19dc8e64bc6857da33a..5d8c90a7d118c0ad2f6d2f05ffedebd60c0c8c52 100644 (file)
@@ -56,7 +56,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var adapter, tagListener, isWaiting = false, result,
+var adapter, tagListener, isWaiting = false, result = null,
     t = async_test("NFCAdapter_unsetTagListener", {timeout: 90000});
 
 setup({timeout: t.timeout_length});
index f67c833551e010934919e2e00ed1a16cc38d468a..a8eb187464ce75c527cef692a1d7442ed7dcee9e 100644 (file)
@@ -37,13 +37,14 @@ Authors:
 //==== TEST_CRITERIA MR MMINA
 
 test(function () {
-    var result;
+    var result = null;
 
     result = tizen.nfc.setExclusiveMode(true);
-
     assert_equals(result, undefined, "setExclusiveMode() should return undefined");
 
+    result = null;
     result = tizen.nfc.setExclusiveMode(false);
+    assert_equals(result, undefined, "setExclusiveMode() should return undefined");
 }, "NFCManager_setExclusiveMode");
 
 </script>
index 8417d3e4637b60e1bac3b80cc95f137b86f6885a..7cdaceec8d2d408125c4c5f28bbb098bea9add7b 100644 (file)
@@ -52,7 +52,7 @@ Authors:
 var adapter, nfcPeer,
     t = async_test("NFCPeer_sendNDEF_sendData", {timeout: 90000}),
     powerOnSuccess, powerOnError,
-    peerListener, ndefMessage, returned;
+    peerListener, ndefMessage, returned = null;
 
 setup({timeout: 90000});
 
@@ -63,7 +63,7 @@ t.step(function () {
             ndefMessage = createNDEFTextMessage("sendNDEF-test");
             nfcPeer = peer;
             returned = nfcPeer.sendNDEF(ndefMessage);
-            assert_equals(returned, undefined, "sendNDEF return value");
+            assert_equals(returned, undefined, "sendNDEF() should return undefined.");
             t.done();
         }),
         ondetach: t.step_func(function () {
@@ -76,7 +76,7 @@ t.step(function () {
     });
 
     powerOnError = t.step_func(function (e) {
-        assert_unreached("powerOnError, Exception: " + e.message);
+        assert_unreached("powerOnError() error callback invoked: " +e.name + ", msg: " + e.message);
     });
 
     adapter = tizen.nfc.getDefaultAdapter();
index 5e264a400c71d06a209df7a02c7bd41e0e199efb..e090717b49c162a0689d294b04f0dcb5b107f3e2 100644 (file)
@@ -40,17 +40,19 @@ Authors:
 //==== TEST_CRITERIA MOA MR
 
 var t = async_test("NFCPeer_sendNDEF_with_errorCallback", {timeout: 90000}),
-    adapter, listener, ndefMessage, successCallback, errorCallback, returnedValue;
+    adapter, listener, ndefMessage, successCallback, errorCallback,
+    returnedValue = null;
 
 setup({timeout: 90000});
 
 t.step(function () {
     successCallback = t.step_func(function () {
+        assert_equals(returnedValue, undefined, "sendNDEF() should return undefined.");
         t.done();
     });
 
     errorCallback = t.step_func(function (e) {
-        assert_unreached("sendNDEF error: " + e.message);
+        assert_unreached("sendNDEF() error callback invoked: " +e.name + ", msg: " + e.message);
     });
 
     ndefMessage = createNDEFTextMessage("sendNDEF message");
@@ -58,8 +60,6 @@ t.step(function () {
     listener = {
         onattach: t.step_func(function (peer) {
             returnedValue = peer.sendNDEF(ndefMessage, successCallback, errorCallback);
-            assert_equals(returnedValue, undefined,
-                "sendNDEF return value");
         }),
         ondetach: t.step_func(function () {
             adapter.unsetPeerListener();
index b9a246848d0c097b47068e8ce30a41dc7872e9ad..271747c78c82916e9b63d63fcf1aa8512de5f0b4 100644 (file)
@@ -41,12 +41,13 @@ Authors:
 //==== TEST_CRITERIA MOA MR
 
 var t = async_test("NFCPeer_sendNDEF_with_successCallback", {timeout: 90000}),
-    returnedValue, adapter, listener, ndefMessage, successCallback;
+    returnedValue = null, adapter, listener, ndefMessage, successCallback;
 
 setup({timeout: 90000});
 
 t.step(function () {
     successCallback = t.step_func(function () {
+        assert_equals(returnedValue, undefined, "sendNDEF() should return undefined.");
         t.done();
     });
 
@@ -55,8 +56,6 @@ t.step(function () {
     listener = {
         onattach: t.step_func(function (peer) {
             returnedValue = peer.sendNDEF(ndefMessage, successCallback);
-            assert_equals(returnedValue, undefined,
-                "sendNDEF return value");
         }),
         ondetach: t.step_func(function () {
             adapter.unsetPeerListener();
index 247925ec25ea328822c5ed3aff03953de7de0937..3d992b9394dff4c2fa9a41613a907f522c0faa5a 100644 (file)
@@ -55,7 +55,7 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA CBT CBOA
 
-var adapter, tagListener, readCallback, result,
+var adapter, tagListener, readCallback, result = null,
     t = async_test("NFCTag_readNDEF_without_errorCallback", {timeout: 90000});
 
 setup({timeout: 90000});
@@ -64,7 +64,6 @@ t.step(function () {
     tagListener = {
         onattach: t.step_func(function (nfcTag) {
             result = nfcTag.readNDEF(readCallback);
-            assert_equals(result, undefined, "readNDEF should return undefined");
         }),
         ondetach: t.step_func(function () {
             adapter.unsetTagListener();
@@ -72,6 +71,7 @@ t.step(function () {
     };
 
     readCallback = t.step_func(function (message) {
+        assert_equals(result, undefined, "readNDEF should return undefined");
         assert_true(message instanceof tizen.NDEFMessage, "read object should be instance of NDEFMessage");
         t.done();
     });
index f4b77822cbf1da35865179d9268b1a72d4de7ba1..bf38c2c66e3d56424c7d5671743d69b9128b8c1a 100644 (file)
@@ -49,7 +49,7 @@ Authors:
 //==== PRE Turn on NFC adapter. Prepare NFC tag.
 //==== TEST_CRITERIA MR MMINA
 
-var adapter, tagListener, ndefMessage, returned,
+var adapter, tagListener, ndefMessage, returned = null,
     t = async_test("NFCTag_writeNDEF", {timeout: 90000});
 
 setup({timeout: 90000});
@@ -58,7 +58,7 @@ t.step(function () {
     tagListener = {
         onattach: t.step_func(function (nfcTag) {
             returned = nfcTag.writeNDEF(ndefMessage);
-            assert_equals(returned, undefined, "writeNDEF return value");
+            assert_equals(returned, undefined, "writeNDEF() should return undefined.");
             t.done();
         }),
 
index 1a6fb1badd74a34a2bf3d667213469aaadd859c5..0eebc870693204af6e9d8a33cc5f3c704b909147 100644 (file)
@@ -51,7 +51,7 @@ Authors:
 
 test(function () {
     var statusTypes = ["SIMPLE", "ONGOING", "PROGRESS", "THUMBNAIL"], i,
-    statusNotification, postedNotifications = [], idToRemove, returnedValue;
+    statusNotification, postedNotifications = [], idToRemove, returnedValue = null;
     try {
         for (i = 0; i < statusTypes.length; i++) {
             statusNotification = new tizen.StatusNotification(statusTypes[i], titleToSet + statusTypes[i], notificationDict);
@@ -62,7 +62,7 @@ test(function () {
         for (i = 0; i < postedNotifications.length; i++) {
             idToRemove = postedNotifications[i].id;
             returnedValue = tizen.notification.remove(idToRemove);
-            assert_equals(returnedValue, undefined, "Incorrect result - remove()");
+            assert_equals(returnedValue, undefined, "remove() should return undefined.");
         }
 
         // verify that postedNotifications were removed
index d7403d4fcbd18a0cd2bb50944c81124218275ac4..b6577e47c53d957e833ec651b14d004d301a9d64 100644 (file)
@@ -42,7 +42,7 @@ Authors:
 test(function () {
 
     var statusTypes = ["SIMPLE", "ONGOING", "PROGRESS", "THUMBNAIL"], i,
-        statusNotification, allNotifications, returnedValue;
+        statusNotification, allNotifications, returnedValue = null;
     try {
         for (i = 0; i < statusTypes.length; i++) {
             statusNotification = new tizen.StatusNotification(statusTypes[i], titleToSet, notificationDict);
@@ -52,7 +52,7 @@ test(function () {
         assert_equals(allNotifications.length, statusTypes.length, "Incorrect number of notifications.");
 
         returnedValue = tizen.notification.removeAll();
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
+        assert_equals(returnedValue, undefined, "removeAll() should return undefined.");
 
         allNotifications = tizen.notification.getAll();
         assert_equals(allNotifications.length, 0, "Incorrect number of notifications.");
index 65aa09fd06861fcca9e41e1538edb480b1ecc0bd..df470ba29157f4499b684c18d7aca1ee443f372c 100644 (file)
@@ -54,7 +54,7 @@ var notification, updatedNotification,
     newVibration = false, newAppId = tizen.application.getAppInfo().id, progressTypeToSet = "PERCENTAGE",
     newProgressValue = 191, i, newProgressType = "BYTE",
     newAppControl = new tizen.ApplicationControl("http://tzen.org/appcontrol/operation/create_content", null, "audio/wav", null),
-    statusTypeToSet = "PROGRESS", returnedValue, newNumber = 175,
+    statusTypeToSet = "PROGRESS", returnedValue = null, newNumber = 175,
     newDetailInfo = [
         new tizen.NotificationDetailInfo("newMainText11", "newSubText11"),
         new tizen.NotificationDetailInfo("newMainText22", "newSubText22")
index 80d04792641faaa52dd42ebd7df6b1f0934b5af9..417484144600205360cb594ab63511e897ffba92 100644 (file)
@@ -38,10 +38,11 @@ Authors:
 setup({timeout: 90000});
 
 var t = async_test("PackageManager_getPackagesInfo", {timeout: 90000}),
-    packageInformationArraySuccessCallback, returnedValue;
+    packageInformationArraySuccessCallback, returnedValue = null;
 
 t.step(function () {
     packageInformationArraySuccessCallback = t.step_func(function (informationArray) {
+        assert_equals(returnedValue, undefined, "Incorect returned value from getPackagesInfo method");
 
         assert_true(Array.isArray(informationArray), "informationArray is not an array.");
         assert_greater_than(informationArray.length, 0, "Incorrect length of informationArray.");
@@ -50,7 +51,6 @@ t.step(function () {
     });
 
     returnedValue = tizen.package.getPackagesInfo(packageInformationArraySuccessCallback);
-    assert_equals(returnedValue, undefined, "Incorect returned value from getPackagesInfo method");
 });
 
 </script>
index 8c684c87d62f9d34a928ef9a197e0201f98ab1ff..7e6841b4e6f94e2fec7c71cc3eee035a5cca54c7 100644 (file)
@@ -37,7 +37,7 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/package.html
 //==== TEST_CRITERIA MMINA MR
 test(function () {
-    var returnedValue;
+    var returnedValue = null;
     try {
         returnedValue = tizen.package.setPackageInfoEventListener({});
         assert_equals(returnedValue, undefined, "Incorrect returned value from setPackageInfoEventListener method");
index 35962e67b61e771db28f48386d1348cebe6bb5e6..763e59c608cec8b4d20a598bd7e39d8c83597b86 100644 (file)
@@ -41,7 +41,7 @@ Authors:
 //==== TEST_CRITERIA MNA MNAST MR
 setup({timeout: 90000});
 
-var packageInformationEventCallback, returnedValue,
+var packageInformationEventCallback, returnedValue = null,
     t = async_test("PackageManager_unsetPackageInfoEventListener",  {timeout: 90000});
 
 t.step(function () {
index f505fa6471372c5a92bf75b31b92f81cec874897..f48e8dda0f3eeee73d08f3f008e7efe77a8a9918 100644 (file)
@@ -38,8 +38,9 @@ Authors:
 //==== TEST_CRITERIA MMINA MR
 setup({timeout: 90000});
 
-var t = async_test("PushManager_connectService", {timeout:90000}), pushRegisterSuccessCallback, pushRegisterErrorCallback,
-    unregisterServiceError, unregisterServiceDone, notificationCallback, returnedValue;
+var t = async_test("PushManager_connectService", {timeout:90000}),
+    pushRegisterSuccessCallback, pushRegisterErrorCallback, unregisterServiceError,
+    unregisterServiceDone, notificationCallback, returnedValue = null;
 
 t.step(function () {
     unregisterServiceDone = t.step_func(function () {
@@ -56,7 +57,7 @@ t.step(function () {
     pushRegisterSuccessCallback = t.step_func(function (registrationId) {
         try {
             returnedValue = tizen.push.connectService(notificationCallback);
-            assert_equals(returnedValue, undefined, "Incorrect returned value.");
+            assert_equals(returnedValue, undefined, "connectService() should return undefined.");
         } finally {
             tizen.push.disconnectService();
             tizen.push.unregisterService(unregisterServiceDone, unregisterServiceError);
index c3483d418e3a7ff2e5e4d14e91d25f5159e2ef5b..e5ba26cac7a7cd236f39b9111b60eba11a888bbf 100644 (file)
@@ -40,7 +40,7 @@ setup({timeout: 90000});
 
 var t = async_test("PushManager_disconnectService", {timeout:90000}), pushRegisterSuccessCallback,
     unregisterServiceDone, unregisterServiceError,
-    notificationCallback, returnedValue, pushRegisterErrorCallback;
+    notificationCallback, returnedValue = null, pushRegisterErrorCallback;
 
 t.step(function () {
     unregisterServiceDone = t.step_func(function () {
@@ -58,7 +58,7 @@ t.step(function () {
         try {
             tizen.push.connectService(notificationCallback);
             returnedValue = tizen.push.disconnectService();
-            assert_equals(returnedValue, undefined, "Incorrect returned value.");
+            assert_equals(returnedValue, undefined, "disconnectService() should return undefined.");
         } finally {
             tizen.push.unregisterService(unregisterServiceDone, unregisterServiceError);
         }
index e40ff74d32f73fa78c36386bd4f3eb245c31aeed..754bbb3e3bfd2d5f35d04c534f3eb053e22a0f0b 100644 (file)
@@ -38,9 +38,9 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/se.html
 //==== TEST_CRITERIA MNA MR
 test(function () {
-    var retVal;
+    var retVal = null;
     retVal = tizen.seService.shutdown();
-    assert_equals(retVal, undefined, "wrong returned value");
+    assert_equals(retVal, undefined, "shutdown() should return undefined.");
 }, "SEService_shutdown");
 
 </script>
index f7a5051454133509030d2b448e60f4912873b69f..0285bbc586b9e662d163196153fb1fdd3cf399f8 100644 (file)
@@ -42,6 +42,7 @@ var t = async_test("SystemSettingManager_getProperty_HOME_SCREEN"),
 
 t.step(function () {
     successCallback = t.step_func(function (value) {
+        assert_equals(returnedValue, undefined, "Incorrect value returned from getProperty method.");
         assert_type(value, "string", "Incorrect type.");
         t.done();
     });
@@ -51,7 +52,6 @@ t.step(function () {
     });
 
     returnedValue = tizen.systemsetting.getProperty("HOME_SCREEN", successCallback, errorCallback);
-    assert_equals(returnedValue, undefined, "Incorrect value returned from getProperty method.");
 });
 
 </script>
index bc5d45fcff1aa7762eaf0ca9651457c532bd9c2e..dbdf57911f98a59ea3567d242f89ac795095ae7e 100644 (file)
@@ -42,6 +42,7 @@ var t = async_test("SystemSettingManager_getProperty_INCOMING_CALL"),
 
 t.step(function () {
     successCallback = t.step_func(function (value) {
+        assert_equals(returnedValue, undefined, "Incorrect value returned from getProperty method.");
         assert_type(value, "string", "Incorrect type.");
         t.done();
     });
@@ -51,7 +52,6 @@ t.step(function () {
     });
 
     returnedValue = tizen.systemsetting.getProperty("INCOMING_CALL", successCallback, errorCallback);
-    assert_equals(returnedValue, undefined, "Incorrect value returned from getProperty method.");
 });
 
 </script>
index 723497bdb2d5149e3b6fcd551ef6794f58758e45..258a4b2d69e08f78fbae846a21e00b139e97241d 100644 (file)
@@ -42,6 +42,7 @@ var t = async_test("SystemSettingManager_getProperty_LOCK_SCREEN"),
 
 t.step(function () {
     successCallback = t.step_func(function (value) {
+        assert_equals(returnedValue, undefined, "Incorrect value returned from getProperty method.");
         assert_type(value, "string", "Incorrect type.");
         t.done();
     });
@@ -51,7 +52,6 @@ t.step(function () {
     });
 
     returnedValue = tizen.systemsetting.getProperty("LOCK_SCREEN", successCallback, errorCallback);
-    assert_equals(returnedValue, undefined, "Incorrect value returned from getProperty method.");
 });
 
 </script>
index 31da1078d17f38f47e6a3e63d4167d246152f59d..aea5fd10828fb3c9ef522a6528fa54a10cc23809 100644 (file)
@@ -42,6 +42,7 @@ var t = async_test("SystemSettingManager_getProperty_NOTIFICATION_EMAIL"),
 
 t.step(function () {
     successCallback = t.step_func(function (value) {
+        assert_equals(returnedValue, undefined, "Incorrect value returned from getProperty method.");
         assert_type(value, "string", "Incorrect type.");
         t.done();
     });
@@ -51,7 +52,6 @@ t.step(function () {
     });
 
     returnedValue = tizen.systemsetting.getProperty("NOTIFICATION_EMAIL", successCallback, errorCallback);
-    assert_equals(returnedValue, undefined, "Incorrect value returned from getProperty method.");
 });
 
 </script>
index 95e41ba80fa0e8f27fe257004184c729400dbea5..ee931d0482ad8dc48bdbc968ed539a6aaac1e340 100644 (file)
@@ -42,12 +42,12 @@ var t = async_test("SystemSettingManager_getProperty_no_errorCallback"),
 
 t.step(function () {
     successCallback = t.step_func(function (value) {
+        assert_equals(returnedValue, undefined, "Incorrect value returned from getProperty method.");
         assert_type(value, "string", "Incorrect type.");
         t.done();
     });
 
     returnedValue = tizen.systemsetting.getProperty("HOME_SCREEN", successCallback);
-    assert_equals(returnedValue, undefined, "Incorrect value returned from getProperty method.");
 });
 
 </script>
index 211a8b85c3e79c77f598a8cef35350d58a20b37f..9f8efeb04d01b9a831570494281e17d6a4e8c082 100644 (file)
@@ -72,6 +72,7 @@ t.step(function () {
     });
 
     setNewValueSuccessCallback = t.step_func(function () {
+        assert_equals(returnedValue, undefined, "Incorrect value returned from setProperty method.");
         tizen.systemsetting.getProperty(type, getNewValueSuccessCallback, getPropertyNewError);
     });
 
@@ -82,7 +83,6 @@ t.step(function () {
     getPreviousValueCallback = t.step_func(function (value) {
         previousValue = value;
         returnedValue = tizen.systemsetting.setProperty(type, newValue, setNewValueSuccessCallback, setPropertyNewError);
-        assert_equals(returnedValue, undefined, "Incorrect value returned from setProperty method.");
     });
 
     getPropertyError = t.step_func(function (error) {
index eba9370372528b6dcd4af76b16395a65307ec449..112e860e4f539db51f720381f6ce6ed7b259e33f 100644 (file)
@@ -72,6 +72,7 @@ t.step(function () {
     });
 
     setNewValueSuccessCallback = t.step_func(function () {
+        assert_equals(returnedValue, undefined, "Incorrect value returned from setProperty method.");
         tizen.systemsetting.getProperty(type, getNewValueSuccessCallback, getPropertyNewError);
     });
 
@@ -82,7 +83,6 @@ t.step(function () {
     getPreviousValueCallback = t.step_func(function (value) {
         previousValue = value;
         returnedValue = tizen.systemsetting.setProperty(type, newValue, setNewValueSuccessCallback, setPropertyNewError);
-        assert_equals(returnedValue, undefined, "Incorrect value returned from setProperty method.");
     });
 
     getPropertyError = t.step_func(function (error) {
index 0be21a141b9adbde391aeb28c7ec133ffe2cb556..40df083b5fc097772e212acb6ea6a51fb8769171 100644 (file)
@@ -72,6 +72,7 @@ t.step(function () {
     });
 
     setNewValueSuccessCallback = t.step_func(function () {
+        assert_equals(returnedValue, undefined, "Incorrect value returned from setProperty method.");
         tizen.systemsetting.getProperty(type, getNewValueSuccessCallback, getPropertyNewError);
     });
 
@@ -82,7 +83,6 @@ t.step(function () {
     getPreviousValueCallback = t.step_func(function (value) {
         previousValue = value;
         returnedValue = tizen.systemsetting.setProperty(type, newValue, setNewValueSuccessCallback, setPropertyNewError);
-        assert_equals(returnedValue, undefined, "Incorrect value returned from setProperty method.");
     });
 
     getPropertyError = t.step_func(function (error) {
index 46e926d8d91f997d07299ba9b9f6637049e249f5..cc4252f316438e0b700c73c685d51e4ca0cb9778 100644 (file)
@@ -72,6 +72,7 @@ t.step(function () {
     });
 
     setNewValueSuccessCallback = t.step_func(function () {
+        assert_equals(returnedValue, undefined, "Incorrect value returned from setProperty method.");
         tizen.systemsetting.getProperty(type, getNewValueSuccessCallback, getPropertyNewError);
     });
 
@@ -82,7 +83,6 @@ t.step(function () {
     getPreviousValueCallback = t.step_func(function (value) {
         previousValue = value;
         returnedValue = tizen.systemsetting.setProperty(type, newValue, setNewValueSuccessCallback, setPropertyNewError);
-        assert_equals(returnedValue, undefined, "Incorrect value returned from setProperty method.");
     });
 
     getPropertyError = t.step_func(function (error) {
index 2ccadf124b188f96d1519e785987ff3b95ec7006..6eeb53c15a7800655551e4bcbe8e78e6495b3f01 100644 (file)
@@ -68,13 +68,13 @@ t.step(function () {
     });
 
     setNewValueSuccessCallback = t.step_func(function () {
+        assert_equals(returnedValue, undefined, "Incorrect value returned from setProperty method.");
         tizen.systemsetting.getProperty(type, getNewValueSuccessCallback);
     });
 
     getPreviousValueCallback = t.step_func(function (value) {
         previousValue = value;
         returnedValue = tizen.systemsetting.setProperty(type, newValue, setNewValueSuccessCallback);
-        assert_equals(returnedValue, undefined, "Incorrect value returned from setProperty method.");
     });
 
     getPropertyError = t.step_func(function (error) {
index 520d688956c39d90332f9bcddb5674798102517c..e5848dbef4183d8953f14cee8089c3c443f76dda 100644 (file)
@@ -35,11 +35,11 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html
 //==== TEST_CRITERIA MMINA MAST MR
 test(function () {
-    var currentTZDate, date, returnedValue;
+    var currentTZDate, date, returnedValue = null;
     date = new Date(2013, 2, 27);
     currentTZDate = new tizen.TZDate(date);
     returnedValue = currentTZDate.setDate(15);
-    assert_equals(returnedValue, undefined, "returnedValue check");
+    assert_equals(returnedValue, undefined, "setDate() should return undefined.");
     assert_equals(currentTZDate.getDate(), 15, "value check");
 }, "TZDate_setDate");
 
index a53ca3c0cbbfb8a6876485ecc8fd4e39bd171697..93c1ea672061fb8d79b913e50b748a87d07c2973 100644 (file)
@@ -35,11 +35,11 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html
 //==== TEST_CRITERIA MMINA MAST MR
 test(function () {
-    var currentTZDate, date, returnedValue;
+    var currentTZDate, date, returnedValue = null;
     date = new Date(2013, 2, 27);
     currentTZDate = new tizen.TZDate(date);
     returnedValue = currentTZDate.setFullYear(2000);
-    assert_equals(returnedValue, undefined, "returnedValue check");
+    assert_equals(returnedValue, undefined, "setFullYear() should return undefined.");
     assert_equals(currentTZDate.getFullYear(), 2000, "value check");
 }, "TZDate_setFullYear");
 
index a06d6cabfc529b552d1a50c050fe8f3634039377..b7a6e264e39f894bb063f5dabe4d76c47586214e 100644 (file)
@@ -35,11 +35,11 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html
 //==== TEST_CRITERIA MMINA MAST MR
 test(function () {
-    var currentTZDate, date, returnedValue;
+    var currentTZDate, date, returnedValue = null;
     date = new Date(2013, 2, 27, 18);
     currentTZDate = new tizen.TZDate(date);
     returnedValue = currentTZDate.setHours(11);
-    assert_equals(returnedValue, undefined, "returnedValue check");
+    assert_equals(returnedValue, undefined, "setHours() should return undefined.");
     assert_equals(currentTZDate.getHours(), 11, "value check");
 }, "TZDate_setHours");
 
index 6ca388e00fa289e208983bf5a1653198f979caf2..aed0e2aa3f8252b65d9029730030bec2521186be 100644 (file)
@@ -35,11 +35,11 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html
 //==== TEST_CRITERIA MMINA MAST MR
 test(function () {
-    var currentTZDate, date, returnedValue;
+    var currentTZDate, date, returnedValue = null;
     date = new Date(2013, 2, 27, 18, 42, 48, 100);
     currentTZDate = new tizen.TZDate(date);
     returnedValue = currentTZDate.setMilliseconds(431);
-    assert_equals(returnedValue, undefined, "returnedValue check");
+    assert_equals(returnedValue, undefined, "setMilliseconds() should return undefined.");
     assert_equals(currentTZDate.getMilliseconds(), 431, "value check");
 }, "TZDate_setMilliseconds");
 
index 7eeefb6b3582757613df3e960c3f506168bb4818..422f891d164e176bacd665a86a984e9e2c59f10e 100644 (file)
@@ -35,11 +35,11 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html
 //==== TEST_CRITERIA MMINA MAST MR
 test(function () {
-    var currentTZDate, date, returnedValue;
+    var currentTZDate, date, returnedValue = null;
     date = new Date(2013, 2, 27, 18, 42);
     currentTZDate = new tizen.TZDate(date);
     returnedValue = currentTZDate.setMinutes(31);
-    assert_equals(returnedValue, undefined, "returnedValue check");
+    assert_equals(returnedValue, undefined, "setMinutes() should return undefined.");
     assert_equals(currentTZDate.getMinutes(), 31, "value check");
 }, "TZDate_setMinutes");
 
index f66c5f174d1f8a43fb5b5918e310be565ed82b06..fc104d181d23f4b6a3d5ce7476d9cf458da983a4 100644 (file)
@@ -35,11 +35,11 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html
 //==== TEST_CRITERIA MMINA MAST MR
 test(function () {
-    var currentTZDate, date, returnedValue;
+    var currentTZDate, date, returnedValue = null;
     date = new Date(2013, 2, 27);
     currentTZDate = new tizen.TZDate(date);
     returnedValue = currentTZDate.setMonth(5);
-    assert_equals(returnedValue, undefined, "returnedValue check");
+    assert_equals(returnedValue, undefined, "setMonth() should return undefined.");
     assert_equals(currentTZDate.getMonth(), 5, "value check");
 }, "TZDate_setMonth");
 
index ed144bd80843ee4ee2998705985d2c6618c70f23..ea67492ef436c353510977500b8393c231d6e116 100644 (file)
@@ -35,11 +35,11 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html
 //==== TEST_CRITERIA MMINA MAST MR
 test(function () {
-    var currentTZDate, date, returnedValue;
+    var currentTZDate, date, returnedValue = null;
     date = new Date(2013, 2, 27, 3, 23, 54);
     currentTZDate = new tizen.TZDate(date);
     returnedValue = currentTZDate.setSeconds(5);
-    assert_equals(returnedValue, undefined, "returnedValue check");
+    assert_equals(returnedValue, undefined, "setSeconds() should return undefined.");
     assert_equals(currentTZDate.getSeconds(), 5, "value check");
 }, "TZDate_setSeconds");
 
index 48738b235df3dfae44a20119c7641da92d87e651..15cf835e4018e17f6f58b8c38f1cc586e196f9e3 100644 (file)
@@ -35,11 +35,11 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html
 //==== TEST_CRITERIA MMINA MAST MR
 test(function () {
-    var currentTZDate, date, returnedValue;
+    var currentTZDate, date, returnedValue = null;
     date = new Date(2013, 2, 27);
     currentTZDate = new tizen.TZDate(date);
     returnedValue = currentTZDate.setUTCDate(31);
-    assert_equals(returnedValue, undefined, "returnedValue check");
+    assert_equals(returnedValue, undefined, "setUTCDate() should return undefined.");
     assert_equals(currentTZDate.getUTCDate(), 31, "value check");
 }, "TZDate_setUTCDate");
 
index e34bdafb5f4b793415c41c4d0e7cda431b50e217..4830c3deb818aa323fe5d7e941925acc578b2165 100644 (file)
@@ -35,11 +35,11 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html
 //==== TEST_CRITERIA MMINA MAST MR
 test(function () {
-    var currentTZDate, date, returnedValue;
+    var currentTZDate, date, returnedValue = null;
     date = new Date(2013, 2, 27);
     currentTZDate = new tizen.TZDate(date);
     returnedValue = currentTZDate.setUTCFullYear(1999);
-    assert_equals(returnedValue, undefined, "returnedValue check");
+    assert_equals(returnedValue, undefined, "setUTCFullYear() should return undefined.");
     assert_equals(currentTZDate.getUTCFullYear(), 1999, "value check");
 }, "TZDate_setUTCFullYear");
 
index 5ce885e55ff6a79f9ae100eac9721dd50c348ca6..8afe2ff08e22b752a8e8db5715390541361fa6df 100644 (file)
@@ -35,11 +35,11 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html
 //==== TEST_CRITERIA MMINA MAST MR
 test(function () {
-    var currentTZDate, date, returnedValue;
+    var currentTZDate, date, returnedValue = null;
     date = new Date(2013, 2, 27, 11);
     currentTZDate = new tizen.TZDate(date);
     returnedValue = currentTZDate.setUTCHours(23);
-    assert_equals(returnedValue, undefined, "returnedValue check");
+    assert_equals(returnedValue, undefined, "setUTCHours() should return undefined.");
     assert_equals(currentTZDate.getUTCHours(), 23, "value check");
 }, "TZDate_setUTCHours");
 
index fb02c4df33e1e408c6a58b562589a13ecc05b0be..2cb7efb5367a7d3ced61cc8f8694f4f68a9a90b3 100644 (file)
@@ -35,11 +35,11 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html
 //==== TEST_CRITERIA MMINA MAST MR
 test(function () {
-    var currentTZDate, date, returnedValue;
+    var currentTZDate, date, returnedValue = null;
     date = new Date(2013, 2, 27, 11, 32, 12, 543);
     currentTZDate = new tizen.TZDate(date);
     returnedValue = currentTZDate.setUTCMilliseconds(999);
-    assert_equals(returnedValue, undefined, "returnedValue check");
+    assert_equals(returnedValue, undefined, "setUTCMilliseconds() should return undefined.");
     assert_equals(currentTZDate.getUTCMilliseconds(), 999, "value check");
 }, "TZDate_setUTCMilliseconds");
 
index a3c213b20f70485a314cd79ff588087162e7d8c4..b44a576e76e9190a946eb1bdc19475f625d0bbb6 100644 (file)
@@ -35,11 +35,11 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html
 //==== TEST_CRITERIA MMINA MAST MR
 test(function () {
-    var currentTZDate, date, returnedValue;
+    var currentTZDate, date, returnedValue = null;
     date = new Date(2013, 2, 27, 11, 32);
     currentTZDate = new tizen.TZDate(date);
     returnedValue = currentTZDate.setUTCMinutes(59);
-    assert_equals(returnedValue, undefined, "returnedValue check");
+    assert_equals(returnedValue, undefined, "setUTCMinutes() should return undefined.");
     assert_equals(currentTZDate.getUTCMinutes(), 59, "value check");
 }, "TZDate_setUTCMinutes");
 
index cb52f1bb7e92ddceed6e4db32c2ebbb44a1aed55..2c8b50c36c4b9f748ce2a3cc7d5341c5052f3429 100644 (file)
@@ -35,11 +35,11 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html
 //==== TEST_CRITERIA MMINA MAST MR
 test(function () {
-    var currentTZDate, date, returnedValue;
+    var currentTZDate, date, returnedValue = null;
     date = new Date(2013, 2, 27);
     currentTZDate = new tizen.TZDate(date);
     returnedValue = currentTZDate.setUTCMonth(11);
-    assert_equals(returnedValue, undefined, "returnedValue check");
+    assert_equals(returnedValue, undefined, "setUTCMonth() should return undefined.");
     assert_equals(currentTZDate.getUTCMonth(), 11, "value check");
 }, "TZDate_setUTCMonth");
 
index 85bde79214d0143b52d8b060511cde5399d21087..bfee6a6f3ef6a55b6bfc81c8f1d65068df98bd48 100644 (file)
@@ -35,11 +35,11 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/time.html
 //==== TEST_CRITERIA MMINA MAST MR
 test(function () {
-    var currentTZDate, date, returnedValue;
+    var currentTZDate, date, returnedValue = null;
     date = new Date(2013, 2, 27, 11, 34, 11);
     currentTZDate = new tizen.TZDate(date);
     returnedValue = currentTZDate.setUTCSeconds(0);
-    assert_equals(returnedValue, undefined, "returnedValue check");
+    assert_equals(returnedValue, undefined, "setUTCSeconds() should return undefined.");
     assert_equals(currentTZDate.getUTCSeconds(), 0, "value check");
 }, "TZDate_setUTCSeconds");
 
index 00dd3c24f3c9eaca7521dfbbc6d827db8276d1d4..966c1cbdbfe7c2bae29012b67abaea0c317fa725 100644 (file)
@@ -37,7 +37,7 @@ Authors:
 //==== TEST_CRITERIA MOA MR
 
 var t = async_test("WebSettingManager_removeAllCookies_with_errorCallback"),
-    errorCallback, returnedValue;
+    errorCallback, returnedValue = null;
 
 t.step(function () {
 
@@ -46,7 +46,7 @@ t.step(function () {
     });
 
     returnedValue  = tizen.websetting.removeAllCookies(null, errorCallback);
-    assert_equals(returnedValue, undefined, "Incorrect returned value.");
+    assert_equals(returnedValue, undefined, "removeAllCookies() should return undefined.");
 
     t.done();
 });