[Download] second stage of code cleanup
authorPiotr Szydelko <p.szydelko@samsung.com>
Mon, 7 Oct 2013 12:55:37 +0000 (14:55 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 8 Oct 2013 07:34:46 +0000 (07:34 +0000)
Change-Id: I1da86a5e2388f2fc6e6a70c01a069b3758be1ed4

45 files changed:
tct-download-tizen-tests/download/DownloadCallback_notexist.html
tct-download-tizen-tests/download/DownloadCallback_oncanceled.html
tct-download-tizen-tests/download/DownloadCallback_oncompleted.html
tct-download-tizen-tests/download/DownloadCallback_onfailed.html
tct-download-tizen-tests/download/DownloadCallback_onpaused.html
tct-download-tizen-tests/download/DownloadCallback_onprogress.html
tct-download-tizen-tests/download/DownloadManagerObject_download_exists.html
tct-download-tizen-tests/download/DownloadManager_cancel.html
tct-download-tizen-tests/download/DownloadManager_cancel_exist.html
tct-download-tizen-tests/download/DownloadManager_getDownloadRequest.html
tct-download-tizen-tests/download/DownloadManager_getDownloadRequest_exist.html
tct-download-tizen-tests/download/DownloadManager_getMIMEType.html
tct-download-tizen-tests/download/DownloadManager_getMIMEType_exist.html
tct-download-tizen-tests/download/DownloadManager_getState.html
tct-download-tizen-tests/download/DownloadManager_getState_exist.html
tct-download-tizen-tests/download/DownloadManager_getState_using.html
tct-download-tizen-tests/download/DownloadManager_in_tizen.html
tct-download-tizen-tests/download/DownloadManager_pause.html
tct-download-tizen-tests/download/DownloadManager_pause_exist.html
tct-download-tizen-tests/download/DownloadManager_resume.html
tct-download-tizen-tests/download/DownloadManager_resume_exist.html
tct-download-tizen-tests/download/DownloadManager_setListener.html
tct-download-tizen-tests/download/DownloadManager_setListener_downloadCallback_TypeMismatch.html
tct-download-tizen-tests/download/DownloadManager_setListener_downloadCallback_invalid_cb.html
tct-download-tizen-tests/download/DownloadManager_setListener_exist.html
tct-download-tizen-tests/download/DownloadManager_setListener_missarg.html
tct-download-tizen-tests/download/DownloadManager_setListener_null.html
tct-download-tizen-tests/download/DownloadManager_start.html
tct-download-tizen-tests/download/DownloadManager_start_downloadCallback_TypeMismatch.html
tct-download-tizen-tests/download/DownloadManager_start_downloadCallback_invalid_cb.html
tct-download-tizen-tests/download/DownloadManager_start_downloadRequest_invalid_obj.html
tct-download-tizen-tests/download/DownloadManager_start_exist.html
tct-download-tizen-tests/download/DownloadManager_start_missarg.html
tct-download-tizen-tests/download/DownloadManager_start_with_downloadCallback.html
tct-download-tizen-tests/download/DownloadManager_start_with_extra_argument.html
tct-download-tizen-tests/download/DownloadRequest_constructor.html
tct-download-tizen-tests/download/DownloadRequest_destination_attribute.html
tct-download-tizen-tests/download/DownloadRequest_extend.html
tct-download-tizen-tests/download/DownloadRequest_fileName_attribute.html
tct-download-tizen-tests/download/DownloadRequest_httpHeader_attribute.html
tct-download-tizen-tests/download/DownloadRequest_networkType_attribute.html
tct-download-tizen-tests/download/DownloadRequest_url_attribute.html
tct-download-tizen-tests/download/support/download_common.js
tct-download-tizen-tests/tests.full.xml
tct-download-tizen-tests/tests.xml

index 9b181355dc1940dc0e016434849eea9c20bc1076..09d58eefcabf6f0a70eba5f20dfd78e3971c423e 100644 (file)
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: DownloadCallback_notexist
-//==== LABEL Check if is possible to call DownloadCallback in new expresion
+//==== LABEL Check if DownloadCallback is NoInterfaceObject and not visible
 //==== PRIORITY: P3
 //==== SPEC: Tizen Web API:Content:Download:DownloadCallback:DownloadCallback U
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
index 4e1f87547f6f3cc088ffb285e65a2cf801a83560..348ce55fa482ae43e894d3db519e70b5e32687bc 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadCallback_oncanceled
-//==== LABEL Test whether the type of each argument is equal to the specified for oncanceled callback.
+//==== LABEL Test whether the type of each argument is equal to the specified for oncanceled callback
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadCallback:oncanceled M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
@@ -50,7 +50,7 @@ t.step(function () {
             assert_unreached("onpaused should not be reached");
         }),
         oncanceled: t.step_func(function (id) {
-            assert_type(id, "number", "id type");
+            assert_type(id, "long", "id type");
             assert_equals(id, downloadId, "id is diffrent");
             t.done();
         }),
@@ -61,7 +61,7 @@ t.step(function () {
             assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
-    downloadRequest = new tizen.DownloadRequest(url_large, "documents");
+    downloadRequest = new tizen.DownloadRequest(URL_LARGE, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
 
index 8634b921186e991d7c9aa9791bec8abdbecebd6d..43b2720422658aa9fa28e23dbd90c6968a1e9b16 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadCallback_oncompleted
-//==== LABEL Test whether the type of each argument is equal to the specified for oncompleted callback.
+//==== LABEL Test whether the type of each argument is equal to the specified for oncompleted callback
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadCallback:oncompleted M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
@@ -50,7 +50,7 @@ t.step(function () {
             assert_unreached("oncanceled should not be reached");
         }),
         oncompleted: t.step_func(function (id, fullPath) {
-            assert_type(id, "number", "id type should be number");
+            assert_type(id, "long", "id type should be number");
             assert_equals(id, downloadId, "id is diffrent");
             assert_type(fullPath, "string", "id type should be a string");
             assert_not_equals(fullPath, "", "fullPath is empty");
@@ -60,7 +60,7 @@ t.step(function () {
             assert_unreached("onfailed reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
-    downloadRequest = new tizen.DownloadRequest(url_small, "documents");
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
 
index 36c2078cd261734b15518a32b08964f6f944f2bd..c2310007ea1617c289cbbc9f722ebe2327422a66 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadCallback_onfailed
-//==== LABEL Test whether the type of each argument is equal to the specified for onfailed callback.
+//==== LABEL Test whether the type of each argument is equal to the specified for onfailed callback
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadCallback:onfailed M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
@@ -54,14 +54,14 @@ t.step(function () {
             assert_unreached("oncompleted should not be reached");
         }),
         onfailed: t.step_func(function (id, err) {
-            assert_type(id, "number", "id type should be a number");
+            assert_type(id, "long", "id type should be a number");
             assert_type(err, "object", "id type should be an object");
             assert_not_equals(id, null, "id null check");
             assert_not_equals(err, null, "id null check");
             t.done();
         })
     };
-    downloadRequest = new tizen.DownloadRequest(url_broken, "documents");
+    downloadRequest = new tizen.DownloadRequest(URL_BROKEN, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
 
index c58dccce1cbdd26d37bf14c61145d2c362734f6f..b5611ad0fbd097564dd2f80ad35e99dd4b41abd3 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadCallback_onpaused
-//==== LABEL Test whether the type of each argument is equal to the specified for onpaused callback.
+//==== LABEL Test whether the type of each argument is equal to the specified for onpaused callback
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadCallback:onpaused M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
@@ -47,7 +47,7 @@ t.step(function () {
             } catch (e) { }
         }),
         onpaused: t.step_func(function (id) {
-            assert_type(id, "number", "id type should be a number");
+            assert_type(id, "long", "id type should be a number");
             try {
                 tizen.download.cancel(downloadId);
             } catch (e) { }
@@ -62,7 +62,7 @@ t.step(function () {
             assert_unreached("onfailed reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
-    downloadRequest = new tizen.DownloadRequest(url_large, "documents");
+    downloadRequest = new tizen.DownloadRequest(URL_LARGE, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
 
index e04b437e387c50439820c4b8613a3641c9a9798b..ea42eff0955ef725bb9aa977132a980c2174828c 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadCallback_onprogress
-//==== LABEL Test whether the type of each argument is equal to the specified for onprogress callback.
+//==== LABEL Test whether the type of each argument is equal to the specified for onprogress callback
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadCallback:onprogress M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
@@ -42,10 +42,10 @@ var t = async_test(document.title, {timeout: 90000}), listener,
 t.step(function () {
     listener = {
         onprogress: t.step_func(function (id, receivedSize, totalSize) {
-            assert_type(id, "number", "id is not a number");
+            assert_type(id, "long", "id is not a number");
             assert_equals(id, downloadId, "The id is diffrent");
-            assert_type(receivedSize, "number", "receivedSize is not a number");
-            assert_type(totalSize, "number", "totalSize type should be a number");
+            assert_type(receivedSize, "unsigned long long", "receivedSize is not a number");
+            assert_type(totalSize, "unsigned long long", "totalSize type should be a number");
             assert_greater_than(totalSize, 0, "totalSize is less than or equals to zero");
             assert_true(receivedSize >= 0 && receivedSize <= totalSize, "The length of receivedSize between zero and totalSize");
             try {
@@ -65,7 +65,7 @@ t.step(function () {
             assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
-    downloadRequest = new tizen.DownloadRequest(url_large, "documents");
+    downloadRequest = new tizen.DownloadRequest(URL_LARGE, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
 
index 79c730b8cd38db439edd12cca38094d6dcf72974..87beedce680f8d8ab7a896e8cccc57108dd7014a 100644 (file)
@@ -40,7 +40,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: DownloadManagerObject_download_exists
-//==== LABEL Check if the readonly attribute download
+//==== LABEL Check if tizen namespace contains download object and DownloadManagerObject interface is not available
 //==== PRIORITY P3
 //==== SPEC Tizen Web API:Content:Download:DownloadManager:DownloadManager U
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
index 858120dc0a95cf60839cadc7128b3cc7815fee8a..3abb6e6a467c91e7ec45876cc08ff0e92de0dddd 100644 (file)
@@ -40,7 +40,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_cancel
-//==== LABEL Check if cancel method with downloadId non-optional argument works
+//==== LABEL Check if DownloadManager::cancel() method with downloadId non-optional argument works
 //==== PRIORITY: P2
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:cancel M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
@@ -62,7 +62,7 @@ t.step(function () {
             assert_unreached("onpaused should not be reached");
         }),
         oncanceled: t.step_func(function (id) {
-            assert_equals(tizen.download.getState(downloadId), "CANCELED", "DownloadId state is not 'CANCELED'");
+            assert_equals(tizen.download.getState(downloadId), "CANCELED", "download state is not 'CANCELED'");
             assert_equals(retValue, undefined, "oncanceled returns wrong value");
 
             t.done();
@@ -74,7 +74,7 @@ t.step(function () {
             assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
-    downloadRequest = new tizen.DownloadRequest(url_large, "documents");
+    downloadRequest = new tizen.DownloadRequest(URL_LARGE, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
 
index d1ed4f3b711bc42aaa98a187b05e399c5c91af5e..a92559ba5366a0bab06b56d6570bb4d21d319911 100644 (file)
@@ -41,7 +41,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_cancel_exist
-//==== LABEL Check if cancel method exists in DownloadManager.
+//==== LABEL Check if cancel() method exists in DownloadManager.
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:cancel M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
index 71bb70109b9d44df7c5e84affad9717039e013ac..db0aef91eef3532ff308fdafac1a77b6e66f6a3d 100644 (file)
@@ -40,7 +40,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_getDownloadRequest
-//==== LABEL Check if getDownloadRequest method with downloadId non-optional argument works
+//==== LABEL Check if getDownloadRequest() method with downloadId non-optional argument works
 //==== PRIORITY: P2
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:getDownloadRequest M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
@@ -49,11 +49,11 @@ Authors:
 
 var t = async_test(document.title, {timeout: 90000}),
     destination = "documents", fileName = "download.html", downloadRequest,
-    downloadId;
+    downloadId, listener;
 setup({timeout: 90000});
 
 t.step(function () {
-    var listener = {
+    listener = {
         onprogress: t.step_func(function (id, receivedSize, totalSize) {
 
         }),
@@ -65,16 +65,16 @@ t.step(function () {
         }),
         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.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) {
-            assert_unreached("onfailed should not be reached");
+            assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
-    downloadRequest = new tizen.DownloadRequest(url_small, destination, fileName);
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, destination, fileName);
     downloadId = tizen.download.start(downloadRequest, listener);
 });
 
index dc388372209015fbfd1d2b3cb8d230b09a0aa7f7..74e9892c84617983868fc5a2aa1649bfc6d4c417 100644 (file)
@@ -41,7 +41,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_getDownloadRequest_exist
-//==== LABEL Check if getDownloadRequest method exists in DownloadManager.
+//==== LABEL Check if getDownloadRequest() method exists in DownloadManager.
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:getDownloadRequest M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
index 9f52e6072d09d0c23678800959fa97564c6a0d5e..db014d13fddee4ac0cb12bae63341464f69aa0b2 100644 (file)
@@ -40,7 +40,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_getMIMEType
-//==== LABEL Check if getMIMEType method with downloadId non-optional argument works
+//==== LABEL Check if DownloadManager::getMIMEType() method with downloadId non-optional argument works
 //==== PRIORITY: P2
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:getMIMEType M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
@@ -48,7 +48,7 @@ Authors:
 //==== TEST_CRITERIA MMINA MR
 
 var t = async_test(document.title, {timeout: 90000}), listener,
-    MIMEtype, expectedMIMEtype, downloadRequest, downloadId;
+    mimeType, expectedMimeType, downloadRequest, downloadId;
 setup({timeout: 90000});
 
 t.step(function () {
@@ -62,16 +62,16 @@ t.step(function () {
             assert_unreached("oncanceled should not be reached");
         }),
         oncompleted: t.step_func(function (id, fullPath) {
-            expectedMIMEtype = "image/png";
-            MIMEtype = tizen.download.getMIMEType(downloadId);
-            assert_equals(MIMEtype, expectedMIMEtype, "different MIMEType value from expected");
+            expectedMimeType = "image/png";
+            mimeType = tizen.download.getMIMEType(downloadId);
+            assert_equals(mimeType, expectedMimeType, "different MIMEType value from expected");
             t.done();
         }),
         onfailed: t.step_func(function (id, error) {
             assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
-    downloadRequest = new tizen.DownloadRequest(url_small, "documents");
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
 
index 5fbdb1d96bd551144a4c81d0ce1139014db71722..7781876a1a13f0f0aae8fcf73d0f4060b2034ca5 100644 (file)
@@ -41,7 +41,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_getMIMEType_exist
-//==== LABEL Check if getMIMEType method exists in DownloadManager.
+//==== LABEL Check if DownloadManager::getMIMEType() method exists in DownloadManager
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:getMIMEType M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
index 33b379c7777f7d0a2828032eb5daa21860dbcb38..608001d73f52f582e52c10f3e8c5d0659bcce381 100644 (file)
@@ -41,7 +41,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_getState
-//==== LABEL Check if getState method with downloadId non-optional argument works
+//==== LABEL Check if DownloadManager::getState() method with downloadId non-optional argument works
 //==== PRIORITY: P2
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:getState M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
@@ -71,7 +71,7 @@ t.step(function () {
             assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
-    downloadRequest = new tizen.DownloadRequest(url_small, "documents");
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
 
index a47b45233f1ed2d3aa87553133251216a2f05d80..5b2e365299f9b3718dba31c183b978e35f3bc5ea 100644 (file)
@@ -41,7 +41,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_getState_exist
-//==== LABEL Check if getState method exists in DownloadManager.
+//==== LABEL Check if getState() method exists in DownloadManager
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:getState M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
index 31c24be4a5026b23aa61c3d09ff37b4568fb9940..33124fc2b6218f45f4d6e4bdb49b93784fd1f0ea 100644 (file)
@@ -40,14 +40,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_getState_using
-//==== LABEL Check if the method getState which is in DownloadManager interface returns proper value
+//==== LABEL Check if the method DownloadManager::getState() returns proper value
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Content:Download:DownloadManager:getState M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA MMINA MR
 
 var t = async_test(document.title, {timeout: 90000}),
-    downloadId = null, DownloadRequest = null, listener, state;
+    downloadId = null, downloadRequest = null, listener, state;
 setup({timeout: 90000});
 t.step(function () {
     listener = {
@@ -70,8 +70,8 @@ t.step(function () {
             assert_unreached("onfailed should not be reached");
         })
     };
-    DownloadRequest = new tizen.DownloadRequest(url_small, "documents");
-    downloadId = tizen.download.start(DownloadRequest, listener);
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, "documents");
+    downloadId = tizen.download.start(downloadRequest, listener);
 });
 
 </script>
index e98f0f635d5435a4338d5e11eaff5c5c11d20066..f3ba39de23f7fff6049b6e1b4b8a14cbd05e28ec 100644 (file)
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_in_tizen
-//==== LABEL Check download attribute
+//==== LABEL Check if tizen namespace contains download
 //==== PRIORITY: P3
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:DownloadManager U
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
index 32488eedba1cdb8a3b77837c1fdb627bcb273847..9824fbc3fbb094f4298749217d11b642d7282b07 100644 (file)
@@ -42,7 +42,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_pause
-//==== LABEL Check if pause method with downloadId non-optional argument works
+//==== LABEL Check if DownloadManager::pause() method with downloadId non-optional argument works
 //==== PRIORITY: P2
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:pause M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
@@ -78,7 +78,7 @@ t.step(function () {
             assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
-    downloadRequest = new tizen.DownloadRequest(url_large, "documents");
+    downloadRequest = new tizen.DownloadRequest(URL_LARGE, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
 
index 97225bab9fd873b3b1378b1c18262f8090e5ba32..48bdc74e12be6caf3f4713889f2686a6da3d58d1 100644 (file)
@@ -41,7 +41,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_pause_exist
-//==== LABEL Check if pause method exists in DownloadManager.
+//==== LABEL Check if pause() method exists in DownloadManager
 //==== PRIORITY: P1
 //==== SPEC Tizen Web API:Content:Download:DownloadManager:pause M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
index a51c17c01e92fad50bfe196b255a0fa2e8dc13fe..ab26c558ad4d39e14d28061bc1638d4e6f27ef28 100644 (file)
@@ -42,7 +42,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_resume
-//==== LABEL Check if resume method with downloadId non-optional argument works
+//==== LABEL Check if DownloadManager::resume() method with downloadId non-optional argument works
 //==== PRIORITY: P2
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:resume M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
@@ -55,6 +55,7 @@ setup({timeout: 90000});
 t.step(function () {
     listener = {
         onprogress: t.step_func(function (id, receivedSize, totalSize) {
+            // onprogress can be call can be queued and executed after we already paused download
             if (flag === true) {
                 tizen.download.pause(downloadId);
                 flag = false;
@@ -79,7 +80,7 @@ t.step(function () {
             assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
-    downloadRequest = new tizen.DownloadRequest(url_large, "documents");
+    downloadRequest = new tizen.DownloadRequest(URL_LARGE, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
 
index 276b5a6cd787cdaf0c72b1178c250fd14b6c34e8..1d282d665a871817e4fe73bdf027b788e020e623 100644 (file)
@@ -41,7 +41,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_resume_exist
-//==== LABEL Check if resume method exists in DownloadManager.
+//==== LABEL Check if resume() method exists in DownloadManager
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:resume M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
index 5ce7f1cf7b83745ecdcf7fe2504ea8a7bff9792e..55c1f692a3ac84cff5dc06cc9aa59a21d89e4a17 100644 (file)
@@ -41,7 +41,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_setListener
-//==== LABEL Check if setListener method with downloadId non-optional argument works
+//==== LABEL Check if DownloadManager::setListener() method with downloadId non-optional argument works
 //==== PRIORITY: P2
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:setListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
@@ -68,7 +68,7 @@ t.step(function () {
             assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
-    downloadRequest = new tizen.DownloadRequest(url_small, "documents");
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, "documents");
     downloadId = tizen.download.start(downloadRequest);
     retValue = tizen.download.setListener(downloadId, listener);
 });
index e96ca839e567757e42911b17052b851e07f02ec4..6f39980a35941ab787da4483113eef113c063f81 100644 (file)
@@ -42,7 +42,7 @@ setup({timeout: 90000});
 var t = async_test(document.title, {timeout: 90000}),
     downloadRequest, downloadId, listener, exceptionName, conversionTable, i;
 t.step(function () {
-    downloadRequest = new tizen.DownloadRequest(url_small, "documents");
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, "documents");
     downloadId = tizen.download.start(downloadRequest);
     conversionTable = getTypeConversionExceptions("object", false);
     for (i = 0; i < conversionTable.length; i++) {
index b378e39f755fda9505cff36dc5851906f95695fd..f86aa8780f093249d26cbd97bd09fda7cfa0113f 100644 (file)
@@ -44,7 +44,7 @@ var t = async_test(document.title, {timeout: 90000}),
 t.step(function () {
     incorrectListeners = getListenerConversionExceptions(["onprogress",
         "onpaused", "oncanceled", "oncompleted", "onfailed"]);
-    downloadRequest = new tizen.DownloadRequest(url_small, "documents");
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, "documents");
     downloadId = tizen.download.start(downloadRequest);
     for (i = 0; i < incorrectListeners.length; i++) {
         listener  = incorrectListeners[i][0];
index 5acdc1d18179da181e4aa17e91ee462a4bfb5aeb..969836d819f5f7e536ca6cba8de0754b89bc0717 100644 (file)
@@ -41,7 +41,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_setListener_exist
-//==== LABEL Check if setListener method exists in DownloadManager.
+//==== LABEL Check if setListener() method exists in DownloadManager
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:setListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
index 1d4484083c3d8eab8b25007bfae4ffd5f6d1d5aa..c1c594ad590ffb530d79e165250edb1ca1359327 100644 (file)
@@ -39,7 +39,7 @@ test(function () {
     assert_throws(TYPE_MISMATCH_EXCEPTION,
         function () {
             tizen.download.setListener();
-        }, TYPE_MISMATCH_ERR + " exception should be thrown (given no nonoptional arguments).");
+        }, "Missing mandatory argument");
 }, document.title);
 
 </script>
index afa45e7f1b000c44e066b035f2f510b9db059cba..e94cc2ada839931c3683c8e3894c14395621157d 100644 (file)
@@ -38,7 +38,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_setListener_null
-//==== LABEL Check if method setListener throw an TypeMismatchError when the input download id is null.
+//==== LABEL Check if DownloadManager::setListener() method throw an TypeMismatchError when the input download id is null
 //==== PRIORITY P2
 //==== SPEC Tizen Web API:Content:Download:DownloadManager:setListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
index 3caa0a1299ff175908ced63b4d1f3c5e0c7fa4d6..7127e490bce74a9da50787a7ac2af6dd946c7fea 100644 (file)
@@ -35,14 +35,14 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA MMINA MR MAST
 
-var destination, DownloadRequest, downloadId = null;
+var destination, downloadRequest, downloadId = null;
 test(function () {
     destination = "documents";
-    DownloadRequest = new tizen.DownloadRequest(url_small, destination);
-    downloadId = tizen.download.start(DownloadRequest);
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, destination);
+    downloadId = tizen.download.start(downloadRequest);
     assert_not_equals(downloadId, null, "downloadId should not be null");
-    assert_equals(DownloadRequest.url, url_small, "url should not change");
-    assert_equals(DownloadRequest.destination, destination, "destination should not change");
+    assert_equals(downloadRequest.url, URL_SMALL, "url should not change");
+    assert_equals(downloadRequest.destination, destination, "destination should not change");
     tizen.download.cancel(downloadId);
 }, document.title);
 
index 1d51faad82555b0a83ff0e89e7b625ca29a326e4..acf88642cc12711ddaf22db94e715cf3bd1e272b 100644 (file)
@@ -43,7 +43,7 @@ setup({timeout: 90000});
 var t = async_test(document.title, {timeout: 90000}),
     downloadRequest, listener, exceptionName, conversionTable, i;
 t.step(function () {
-    downloadRequest = new tizen.DownloadRequest(url_small, "documents");
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, "documents");
     conversionTable = getTypeConversionExceptions("object", true);
     for (i = 0; i < conversionTable.length; i++) {
         listener = conversionTable[i][0];
index a1de2bceb0f4a5ab0cdba9020a70bea064db2670..b84b85fd169c6c093c67911bd359858d3a8fe292 100644 (file)
@@ -43,7 +43,7 @@ var t = async_test(document.title, {timeout: 90000}),
 t.step(function () {
     incorrectListeners = getListenerConversionExceptions(["onprogress",
         "onpaused", "oncanceled", "oncompleted", "onfailed"]);
-    downloadRequest = new tizen.DownloadRequest(url_small, "documents");
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, "documents");
     for (i = 0; i < incorrectListeners.length; i++) {
         listener  = incorrectListeners[i][0];
         exceptionName = incorrectListeners[i][1];
index 819d094ee3a2b6e9c9d126032697b461d8f00b9d..3715d87e0e4b96b6dc2c15897af2c8d2206702f7 100644 (file)
@@ -43,7 +43,7 @@ var t = async_test(document.title, {timeout: 90000}),
     downloadRequest, exceptionName = "TypeMismatchError";
 t.step(function () {
     downloadRequest = [];
-    downloadRequest[0] = {url: url_small, destination: "documents",
+    downloadRequest[0] = {url: URL_SMALL, destination: "documents",
         fileName: "file_name.png"};
 
     assert_throws({name: exceptionName},
index 2385364f4fc33b91b03ded7d600098fedfc080d7..dc7cf97d64619aa4db7f5193e783131a9976df75 100644 (file)
@@ -41,7 +41,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_start_exist
-//==== LABEL Check if start method exists in DownloadManager.
+//==== LABEL Check if start() method exists in DownloadManager
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:start M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
index 1a6bd70fa40ac7951c2db3160dc665ac6186ff36..7b02dcb0c8798521aea0ba26ee6e7c684bfc38a6 100644 (file)
@@ -40,7 +40,7 @@ test(function () {
     assert_throws(TYPE_MISMATCH_EXCEPTION,
         function () {
             tizen.download.start();
-        }, TYPE_MISMATCH_ERR + " exception should be thrown (given no non-optional arguments).");
+        }, "Missing mandatory argument");
 }, document.title);
 
 </script>
index f7086a7905ab4f68320d1e4ddcd5e12f54ddffb9..c2700018070f18b84e804d001438e18cc7163c7c 100644 (file)
@@ -41,7 +41,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_start_with_downloadCallback
-//==== LABEL Check if start method with downloadCallback optional argument works
+//==== LABEL Check if DownloadManager::start() method with downloadCallback optional argument works
 //==== PRIORITY: P2
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:start M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
@@ -50,15 +50,15 @@ Authors:
 
 setup({timeout: 90000});
 var t = async_test(document.title, {timeout: 90000}),
-    listener, destination = "documents", DownloadRequest;
+    listener, destination = "documents", downloadRequest;
 t.step(function () {
     listener = {
         oncompleted: t.step_func(function (id, fullPath) {
             t.done();
         })
     };
-    DownloadRequest = new tizen.DownloadRequest(url_small, destination);
-    tizen.download.start(DownloadRequest, listener);
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, destination);
+    tizen.download.start(downloadRequest, listener);
 });
 
 </script>
index d3531e0f6313597bcb52595e5705dfc077b6c01a..0a1f83298b435e8b98a5f4d90b42c695911b2cd9 100644 (file)
@@ -40,7 +40,7 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA MOA MR
 test(function () {
-    var downloadRequest = new tizen.DownloadRequest(url_small), downloadId, i,
+    var downloadRequest = new tizen.DownloadRequest(URL_SMALL), downloadId, i,
         extraArguments = [
             null,
             undefined,
@@ -55,9 +55,7 @@ test(function () {
     for (i = 0; i < extraArguments.length; i++) {
         downloadId = tizen.download.start(downloadRequest, null, extraArguments[i]);
         tizen.download.cancel(downloadId);
-        assert_type(downloadId, "number", "Not a number");
-        assert_greater_than_equal(downloadId, -2147483648, "downloadId is not in range - lower limit");
-        assert_less_than_equal(downloadId, 2147483647, "downloadId is not in range - upper limit");
+        assert_type(downloadId, "long", "Not a number");
     }
 
 }, document.title);
index e0de4c7dcb1a6add483221a52072953645928b54..226eecab0f126a73fc43707e26b0a907e37040bd 100644 (file)
@@ -38,9 +38,9 @@ Authors:
 var downloadRequest, destination = "documents",
     fileName = "download.html";
 test(function (){
-    downloadRequest = new tizen.DownloadRequest(url_small, destination, fileName);
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, destination, fileName);
     assert_type(downloadRequest, "object", "DownloadRequest should be an object.");
-    assert_equals(downloadRequest.url, url_small, "url should not change");
+    assert_equals(downloadRequest.url, URL_SMALL, "url should not change");
     assert_equals(downloadRequest.destination, destination, "destination should not change");
     assert_equals(downloadRequest.fileName, fileName, "fileName should not change");
 }, document.title);
index 96b36f8426228ed996fe1c8db621602f2a3a8438..414f1df57211e0c576486dc7c2d403fa56a3827e 100644 (file)
@@ -31,18 +31,18 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: DownloadRequest_destination_attribute
-//==== LABEL Check attribute destination
+//==== LABEL Check attribute DownloadRequest::destination existence and type
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadRequest:destination A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA AE AT ASG ADV
 
-var downloadRequest = null, default_val = "";
+var downloadRequest = null, defaultVal = "";
 test(function () {
-    downloadRequest = new tizen.DownloadRequest(url_small);
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL);
     assert_true("destination" in downloadRequest, "destination not in downloadRequest");
-    assert_equals(downloadRequest.destination, default_val, "Default value is incorrect");
-    check_attribute(downloadRequest, "destination", default_val, "string", "documents");
+    assert_equals(downloadRequest.destination, defaultVal, "Default value is incorrect");
+    check_attribute(downloadRequest, "destination", defaultVal, "string", "documents");
 }, document.title);
 
 </script>
index 0c441032c9133519223c0af582234b73e7c9b13f..a93fea3ccc7f477ffbbc94ead370e6821b7ba033 100644 (file)
@@ -36,7 +36,7 @@ Authors:
 //==== TEST_CRITERIA OBX
 var downloadRequest = null;
 test(function () {
-    downloadRequest = new tizen.DownloadRequest(url_small, "downloads", "file_name.html");
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, "downloads", "file_name.html");
     check_extensibility(downloadRequest);
 }, document.title);
 
index e4f78cb4d3fb2d65b22ba672ff2be22b70407aa8..02fc1c0b5468eb086739ea18486729c9e6fb6fec 100644 (file)
@@ -30,18 +30,18 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: DownloadRequest_fileName_attribute
-//==== LABEL Check fileName attribute
+//==== LABEL Check attribute DownloadRequest::fileName existence and type
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadRequest:fileName A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA AE AT ASG ADV
 
-var downloadRequest = null, default_val = "";
+var downloadRequest = null, defaultVal = "";
 test(function () {
-    downloadRequest = new tizen.DownloadRequest(url_small, "documents");
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, "documents");
     assert_true("fileName" in downloadRequest, "fileName is not in downloadRequest");
-    assert_equals(downloadRequest.fileName, default_val, "fileName should not change");
-    check_attribute(downloadRequest, "fileName", default_val, "string", "file_name.html");
+    assert_equals(downloadRequest.fileName, defaultVal, "fileName should not change");
+    check_attribute(downloadRequest, "fileName", defaultVal, "string", "file_name.html");
 }, document.title);
 
 </script>
index 04907ebd18e7ff1c28bea3251e0d187d5e3b672c..f98fdf88e99d4528e02e85642011a20f465ff155 100644 (file)
@@ -28,7 +28,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: DownloadRequest_httpHeader_attribute
-//==== LABEL Check httpHeader attribute
+//==== LABEL Check attribute DownloadRequest::httpHeader existence and type
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadRequest:httpHeader A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
@@ -36,7 +36,7 @@ Authors:
 
 var downloadRequest = null;
 test(function () {
-    downloadRequest = new tizen.DownloadRequest(url_small, "documents", "file_name.html");
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, "documents", "file_name.html");
     assert_true("httpHeader" in downloadRequest, "httpHeader not in downloadRequest");
     assert_type(downloadRequest.httpHeader, "object", "Type is incorrect");
     assert_equals(Object.getOwnPropertyNames(downloadRequest.httpHeader).length, 0,
index 4810e3c6e65c1759881adc91b5f9ad6a586886b1..2b47472f5372e3b5abe5ad9388c65fcd75636bce 100644 (file)
@@ -28,7 +28,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: DownloadRequest_networkType_attribute
-//==== LABEL Check networkType attribute
+//==== LABEL Check attribute DownloadRequest::networkType existence and possible values
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadRequest:networkType A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
@@ -36,7 +36,7 @@ Authors:
 
 var downloadRequest = null;
 test(function () {
-    downloadRequest = new tizen.DownloadRequest(url_small, "documents", "file_name.html");
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL, "documents", "file_name.html");
     assert_true("networkType" in downloadRequest, "networkType not in downloadRequest");
     assert_equals(downloadRequest.networkType, "ALL", "Default value is incorrect");
     downloadRequest.networkType = "WIFI";
index d67a936069957a7962ed4417481f670d5c0308c5..57bd64b8696234ee84e66e81389f4da49279e519 100644 (file)
@@ -28,19 +28,18 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: DownloadRequest_url_attribute
-//==== LABEL Check url attribute
+//==== LABEL Check attribute DownloadRequest::url existence and type
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadRequest:url A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA AE AT ASG AN
 
-var downloadRequest = null, default_val = null;
+var downloadRequest = null;
 test(function () {
-    downloadRequest = new tizen.DownloadRequest(url_small);
+    downloadRequest = new tizen.DownloadRequest(URL_SMALL);
     assert_true("url" in downloadRequest, "url not in downloadRequest");
-    default_val = url_small;
-    assert_equals(downloadRequest.url, default_val, "Default value is incorrect");
-    check_attribute(downloadRequest, "url", default_val, "string", "http://www.samsung.com/");
+    assert_equals(downloadRequest.url, URL_SMALL, "Default value is incorrect");
+    check_attribute(downloadRequest, "url", URL_SMALL, "string", "http://www.samsung.com/");
     downloadRequest.url = null;
     assert_not_equals(downloadRequest.url, null, "url should not be set to null");
 }, document.title);
index 15ff3b401bbdfa9739117f11901304cebfc60773..0673521ff578374e652840fa6a10ef7ab6e24f69 100644 (file)
@@ -20,20 +20,11 @@ Authors:
 
 */
 
-function assert_type_if_valid(obj, type, msg) {
-    if(obj !== undefined) {
-        if(obj !== null) {
-            assert_equals(typeof(obj), type, msg);
-            return;
-        }
-    }
-}
-
 var TYPE_MISMATCH_ERR = 'TypeMismatchError';
 var INVALID_VALUES_ERR = 'InvalidValuesError';
 var NOT_SUPPORTED_ERR = 'NotSupportedError';
 var NOT_FOUND_ERR = 'NotFoundError';
 
-var url_large = "http://download.tizen.org/tct/2_1/webapi-tizen-download-test-image-hq.png";
-var url_small = "http://download.tizen.org/tct/2_1/webapi-tizen-download-test-image-lq.png";
-var url_broken = "http://download.tizen.org/tct/2_1/broken_file";
+var URL_LARGE = "http://download.tizen.org/tct/tct-download-tizen-tests-image-hq.png";
+var URL_SMALL = "http://download.tizen.org/tct/tct-download-tizen-tests-image-lq.png";
+var URL_BROKEN = "http://download.tizen.org/tct/not_existing_file";
index 00ad93aa37c0b806b3b38b2e81ab23a60ad24501..2b72c2311011d0e8df92b5eef08c16b7f0a7b741 100644 (file)
@@ -3,7 +3,7 @@
 <test_definition>
   <suite name="tct-download-tizen-tests" launcher="WRTLauncher" category="Tizen Web Device APIs">
     <set name="Download">
-      <testcase purpose="Check if start method exists in DownloadManager." type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_start_exist">
+      <testcase purpose="Check if start() method exists in DownloadManager" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_start_exist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_start_exist.html</test_script_entry>
         </description>
@@ -15,7 +15,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if cancel method exists in DownloadManager." type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_cancel_exist">
+      <testcase purpose="Check if cancel() method exists in DownloadManager." type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_cancel_exist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_cancel_exist.html</test_script_entry>
         </description>
@@ -27,7 +27,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if pause method exists in DownloadManager." type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_pause_exist">
+      <testcase purpose="Check if pause() method exists in DownloadManager" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_pause_exist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_pause_exist.html</test_script_entry>
         </description>
@@ -39,7 +39,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if resume method exists in DownloadManager." type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_resume_exist">
+      <testcase purpose="Check if resume() method exists in DownloadManager" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_resume_exist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_resume_exist.html</test_script_entry>
         </description>
@@ -51,7 +51,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if getState method exists in DownloadManager." type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_getState_exist">
+      <testcase purpose="Check if getState() method exists in DownloadManager" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_getState_exist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_getState_exist.html</test_script_entry>
         </description>
@@ -63,7 +63,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if the method getState which is in DownloadManager interface returns proper value" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_getState_using">
+      <testcase purpose="Check if the method DownloadManager::getState() returns proper value" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_getState_using">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_getState_using.html</test_script_entry>
         </description>
@@ -75,7 +75,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Test whether the type of each argument is equal to the specified for onprogress callback." type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadCallback_onprogress">
+      <testcase purpose="Test whether the type of each argument is equal to the specified for onprogress callback" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadCallback_onprogress">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadCallback_onprogress.html</test_script_entry>
         </description>
@@ -87,7 +87,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check attribute destination" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadRequest_destination_attribute">
+      <testcase purpose="Check attribute DownloadRequest::destination existence and type" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadRequest_destination_attribute">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadRequest_destination_attribute.html</test_script_entry>
         </description>
@@ -99,7 +99,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check fileName attribute" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadRequest_fileName_attribute">
+      <testcase purpose="Check attribute DownloadRequest::fileName existence and type" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadRequest_fileName_attribute">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadRequest_fileName_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if cancel method with downloadId non-optional argument works" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_cancel">
+      <testcase purpose="Check if DownloadManager::cancel() method with downloadId non-optional argument works" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_cancel">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_cancel.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if getState method with downloadId non-optional argument works" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_getState">
+      <testcase purpose="Check if DownloadManager::getState() method with downloadId non-optional argument works" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_getState">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_getState.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if pause method with downloadId non-optional argument works" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_pause">
+      <testcase purpose="Check if DownloadManager::pause() method with downloadId non-optional argument works" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_pause">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_pause.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if resume method with downloadId non-optional argument works" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_resume">
+      <testcase purpose="Check if DownloadManager::resume() method with downloadId non-optional argument works" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_resume">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_resume.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if the readonly attribute download" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P3" id="DownloadManagerObject_download_exists">
+      <testcase purpose="Check if tizen namespace contains download object and DownloadManagerObject interface is not available" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P3" id="DownloadManagerObject_download_exists">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManagerObject_download_exists.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check url attribute" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadRequest_url_attribute">
+      <testcase purpose="Check attribute DownloadRequest::url existence and type" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadRequest_url_attribute">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadRequest_url_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if getDownloadRequest method exists in DownloadManager." type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_getDownloadRequest_exist">
+      <testcase purpose="Check if getDownloadRequest() method exists in DownloadManager." type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_getDownloadRequest_exist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_getDownloadRequest_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if getMIMEType method exists in DownloadManager." type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_getMIMEType_exist">
+      <testcase purpose="Check if DownloadManager::getMIMEType() method exists in DownloadManager" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_getMIMEType_exist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_getMIMEType_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if setListener method exists in DownloadManager." type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_setListener_exist">
+      <testcase purpose="Check if setListener() method exists in DownloadManager" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadManager_setListener_exist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_setListener_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if getDownloadRequest method with downloadId non-optional argument works" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_getDownloadRequest">
+      <testcase purpose="Check if getDownloadRequest() method with downloadId non-optional argument works" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_getDownloadRequest">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_getDownloadRequest.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if getMIMEType method with downloadId non-optional argument works" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_getMIMEType">
+      <testcase purpose="Check if DownloadManager::getMIMEType() method with downloadId non-optional argument works" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_getMIMEType">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_getMIMEType.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if setListener method with downloadId non-optional argument works" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_setListener">
+      <testcase purpose="Check if DownloadManager::setListener() method with downloadId non-optional argument works" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_setListener">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_setListener.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method setListener throw an TypeMismatchError when the input download id is null." type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_setListener_null">
+      <testcase purpose="Check if DownloadManager::setListener() method throw an TypeMismatchError when the input download id is null" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_setListener_null">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_setListener_null.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if is possible to call DownloadCallback in new expresion" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P3" id="DownloadCallback_notexist">
+      <testcase purpose="Check if DownloadCallback is NoInterfaceObject and not visible" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P3" id="DownloadCallback_notexist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadCallback_notexist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check download attribute" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P3" id="DownloadManager_in_tizen">
+      <testcase purpose="Check if tizen namespace contains download" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P3" id="DownloadManager_in_tizen">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_in_tizen.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if start method with downloadCallback optional argument works" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_start_with_downloadCallback">
+      <testcase purpose="Check if DownloadManager::start() method with downloadCallback optional argument works" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P2" id="DownloadManager_start_with_downloadCallback">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_start_with_downloadCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Test whether the type of each argument is equal to the specified for onpaused callback." type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadCallback_onpaused">
+      <testcase purpose="Test whether the type of each argument is equal to the specified for onpaused callback" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadCallback_onpaused">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadCallback_onpaused.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Test whether the type of each argument is equal to the specified for oncanceled callback." type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadCallback_oncanceled">
+      <testcase purpose="Test whether the type of each argument is equal to the specified for oncanceled callback" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadCallback_oncanceled">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadCallback_oncanceled.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Test whether the type of each argument is equal to the specified for oncompleted callback." type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadCallback_oncompleted">
+      <testcase purpose="Test whether the type of each argument is equal to the specified for oncompleted callback" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadCallback_oncompleted">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadCallback_oncompleted.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Test whether the type of each argument is equal to the specified for onfailed callback." type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadCallback_onfailed">
+      <testcase purpose="Test whether the type of each argument is equal to the specified for onfailed callback" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadCallback_onfailed">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadCallback_onfailed.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check networkType attribute" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadRequest_networkType_attribute">
+      <testcase purpose="Check attribute DownloadRequest::networkType existence and possible values" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadRequest_networkType_attribute">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadRequest_networkType_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check httpHeader attribute" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadRequest_httpHeader_attribute">
+      <testcase purpose="Check attribute DownloadRequest::httpHeader existence and type" type="compliance" status="approved" component="TizenAPI/Content/Download" execution_type="auto" priority="P1" id="DownloadRequest_httpHeader_attribute">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadRequest_httpHeader_attribute.html</test_script_entry>
         </description>
index 26f743463135a7dcce05d4adcbec32b6337dd3e2..01f1ef6f58d18ee5ea7ba47fcc380e7348e2c674 100644 (file)
@@ -3,67 +3,67 @@
 <test_definition>
   <suite name="tct-download-tizen-tests" launcher="WRTLauncher" category="Tizen Web Device APIs">
     <set name="Download">
-      <testcase purpose="Check if start method exists in DownloadManager." component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_start_exist">
+      <testcase purpose="Check if start() method exists in DownloadManager" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_start_exist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_start_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if cancel method exists in DownloadManager." component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_cancel_exist">
+      <testcase purpose="Check if cancel() method exists in DownloadManager." component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_cancel_exist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_cancel_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if pause method exists in DownloadManager." component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_pause_exist">
+      <testcase purpose="Check if pause() method exists in DownloadManager" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_pause_exist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_pause_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if resume method exists in DownloadManager." component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_resume_exist">
+      <testcase purpose="Check if resume() method exists in DownloadManager" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_resume_exist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_resume_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if getState method exists in DownloadManager." component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_getState_exist">
+      <testcase purpose="Check if getState() method exists in DownloadManager" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_getState_exist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_getState_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if the method getState which is in DownloadManager interface returns proper value" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_getState_using">
+      <testcase purpose="Check if the method DownloadManager::getState() returns proper value" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_getState_using">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_getState_using.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Test whether the type of each argument is equal to the specified for onprogress callback." onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadCallback_onprogress">
+      <testcase purpose="Test whether the type of each argument is equal to the specified for onprogress callback" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadCallback_onprogress">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadCallback_onprogress.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check attribute destination" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadRequest_destination_attribute">
+      <testcase purpose="Check attribute DownloadRequest::destination existence and type" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadRequest_destination_attribute">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadRequest_destination_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check fileName attribute" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadRequest_fileName_attribute">
+      <testcase purpose="Check attribute DownloadRequest::fileName existence and type" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadRequest_fileName_attribute">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadRequest_fileName_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if cancel method with downloadId non-optional argument works" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_cancel">
+      <testcase purpose="Check if DownloadManager::cancel() method with downloadId non-optional argument works" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_cancel">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_cancel.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if getState method with downloadId non-optional argument works" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_getState">
+      <testcase purpose="Check if DownloadManager::getState() method with downloadId non-optional argument works" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_getState">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_getState.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if pause method with downloadId non-optional argument works" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_pause">
+      <testcase purpose="Check if DownloadManager::pause() method with downloadId non-optional argument works" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_pause">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_pause.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if resume method with downloadId non-optional argument works" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_resume">
+      <testcase purpose="Check if DownloadManager::resume() method with downloadId non-optional argument works" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_resume">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_resume.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_start.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if the readonly attribute download" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManagerObject_download_exists">
+      <testcase purpose="Check if tizen namespace contains download object and DownloadManagerObject interface is not available" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManagerObject_download_exists">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManagerObject_download_exists.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check url attribute" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadRequest_url_attribute">
+      <testcase purpose="Check attribute DownloadRequest::url existence and type" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadRequest_url_attribute">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadRequest_url_attribute.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_start_with_extra_argument.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if getDownloadRequest method exists in DownloadManager." component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_getDownloadRequest_exist">
+      <testcase purpose="Check if getDownloadRequest() method exists in DownloadManager." component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_getDownloadRequest_exist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_getDownloadRequest_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if getMIMEType method exists in DownloadManager." component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_getMIMEType_exist">
+      <testcase purpose="Check if DownloadManager::getMIMEType() method exists in DownloadManager" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_getMIMEType_exist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_getMIMEType_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if setListener method exists in DownloadManager." component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_setListener_exist">
+      <testcase purpose="Check if setListener() method exists in DownloadManager" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_setListener_exist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_setListener_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if getDownloadRequest method with downloadId non-optional argument works" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_getDownloadRequest">
+      <testcase purpose="Check if getDownloadRequest() method with downloadId non-optional argument works" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_getDownloadRequest">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_getDownloadRequest.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if getMIMEType method with downloadId non-optional argument works" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_getMIMEType">
+      <testcase purpose="Check if DownloadManager::getMIMEType() method with downloadId non-optional argument works" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_getMIMEType">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_getMIMEType.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if setListener method with downloadId non-optional argument works" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_setListener">
+      <testcase purpose="Check if DownloadManager::setListener() method with downloadId non-optional argument works" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_setListener">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_setListener.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if method setListener throw an TypeMismatchError when the input download id is null." component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_setListener_null">
+      <testcase purpose="Check if DownloadManager::setListener() method throw an TypeMismatchError when the input download id is null" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_setListener_null">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_setListener_null.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_extend.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if is possible to call DownloadCallback in new expresion" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadCallback_notexist">
+      <testcase purpose="Check if DownloadCallback is NoInterfaceObject and not visible" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadCallback_notexist">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadCallback_notexist.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_notexist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check download attribute" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_in_tizen">
+      <testcase purpose="Check if tizen namespace contains download" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_in_tizen">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_in_tizen.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_start_downloadRequest_invalid_obj.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if start method with downloadCallback optional argument works" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_start_with_downloadCallback">
+      <testcase purpose="Check if DownloadManager::start() method with downloadCallback optional argument works" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadManager_start_with_downloadCallback">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_start_with_downloadCallback.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadManager_start_downloadCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Test whether the type of each argument is equal to the specified for onpaused callback." onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadCallback_onpaused">
+      <testcase purpose="Test whether the type of each argument is equal to the specified for onpaused callback" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadCallback_onpaused">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadCallback_onpaused.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Test whether the type of each argument is equal to the specified for oncanceled callback." onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadCallback_oncanceled">
+      <testcase purpose="Test whether the type of each argument is equal to the specified for oncanceled callback" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadCallback_oncanceled">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadCallback_oncanceled.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Test whether the type of each argument is equal to the specified for oncompleted callback." onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadCallback_oncompleted">
+      <testcase purpose="Test whether the type of each argument is equal to the specified for oncompleted callback" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadCallback_oncompleted">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadCallback_oncompleted.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Test whether the type of each argument is equal to the specified for onfailed callback." onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadCallback_onfailed">
+      <testcase purpose="Test whether the type of each argument is equal to the specified for onfailed callback" onload_delay="90" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadCallback_onfailed">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadCallback_onfailed.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check networkType attribute" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadRequest_networkType_attribute">
+      <testcase purpose="Check attribute DownloadRequest::networkType existence and possible values" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadRequest_networkType_attribute">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadRequest_networkType_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check httpHeader attribute" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadRequest_httpHeader_attribute">
+      <testcase purpose="Check attribute DownloadRequest::httpHeader existence and type" component="TizenAPI/Content/Download" execution_type="auto" id="DownloadRequest_httpHeader_attribute">
         <description>
           <test_script_entry>/opt/tct-download-tizen-tests/download/DownloadRequest_httpHeader_attribute.html</test_script_entry>
         </description>