[Download] clean up
authorTomasz Kusmierz <t.kusmierz@samsung.com>
Thu, 19 Sep 2013 13:39:31 +0000 (15:39 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 24 Sep 2013 14:49:46 +0000 (14:49 +0000)
Change-Id: Ib16b6b9b511be41c5af8c23f47335650c9c30936

47 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/DownloadManagerObject_notexist.html
tct-download-tizen-tests/download/DownloadManager_cancel.html
tct-download-tizen-tests/download/DownloadManager_cancel_exist.html
tct-download-tizen-tests/download/DownloadManager_extend.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_notexist.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_TypeMismatch.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_exist.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

index 25f16f72f705f98b24f3a6c1229c98eeab6452a0..358699a2e11332693b6acd1910eb4b70bfca4944 100644 (file)
@@ -33,12 +33,13 @@ Authors:
 //==== LABEL: check if is possible to call DownloadCallback in new expresion
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA CBNIO
 
 test(function () {
     check_no_interface_object("DownloadCallback");
 }, "DownloadCallback_notexist");
+
 </script>
 </body>
 </html>
index 015b2dc35a43411187436545e9ff5d1f68fced77..d13a2edd0ac74db9a2fda7acb1b2b91a0db30637 100644 (file)
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
@@ -32,7 +32,7 @@ Authors:
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA CBT CBOA
 
@@ -47,7 +47,7 @@ t.step(function () {
             } catch (e) { }
         }),
         onpaused : t.step_func(function (id) {
-            assert_unreached("onpaused reached");
+            assert_unreached("onpaused should not be reached");
         }),
         oncanceled: t.step_func(function (id) {
             assert_type(id, "number", "id type");
@@ -55,15 +55,16 @@ t.step(function () {
             t.done();
         }),
         oncompleted : t.step_func(function (id, fullPath) {
-            assert_unreached("oncompleted reached");
+            assert_unreached("oncompleted should not be reached");
         }),
         onfailed : t.step_func(function (id, error) {
-            assert_unreached("onfailed reached:: name: " + error.name + ", msg: " + error.message);
+            assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
     downloadRequest = new tizen.DownloadRequest(url_large, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
+
 </script>
 </body>
 </html>
index c58e64a103927d30be2f6606cf2b48dbc7956509..48a448a44b28fac91d00c7258dac8b268a2915ae 100644 (file)
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
@@ -32,7 +32,7 @@ Authors:
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA CBT CBOA
 
@@ -44,15 +44,15 @@ t.step(function () {
         onprogress : t.step_func(function (id, receivedSize, totalSize) {
         }),
         onpaused : t.step_func(function (id) {
-            assert_unreached("onpaused reached");
+            assert_unreached("onpaused should not be reached");
         }),
         oncanceled : t.step_func(function (id) {
-            assert_unreached("oncanceled reached");
+            assert_unreached("oncanceled should not be reached");
         }),
         oncompleted: t.step_func(function (id, fullPath) {
-            assert_type(id, "number", "id type");
+            assert_type(id, "number", "id type should be number");
             assert_equals(id, downloadId, "id is diffrent");
-            assert_type(fullPath, "string", "id type");
+            assert_type(fullPath, "string", "id type should be a string");
             assert_not_equals(fullPath, "", "fullPath is empty");
             t.done();
         }),
@@ -63,6 +63,7 @@ t.step(function () {
     downloadRequest = new tizen.DownloadRequest(url_small, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
+
 </script>
 </body>
 </html>
index f8fef3f2129ea4b5d32229cf0b66660eb463dbdd..b475278f8f06e75012c99a3448bcc6a608f8ef4c 100644 (file)
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
@@ -32,7 +32,7 @@ Authors:
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA CBT CBOA
 
@@ -42,20 +42,20 @@ var t = async_test("DownloadCallback_onfailed", {timeout:90000}), listener,
 t.step(function () {
     listener = {
         onprogress: t.step_func(function (id, receivedSize, totalSize) {
-            assert_unreached("onprogress reached");
+            assert_unreached("onprogress should not be reached");
         }),
         onpaused: t.step_func(function (id) {
-            assert_unreached("onpaused reached");
+            assert_unreached("onpaused should not be reached");
         }),
         oncanceled : t.step_func(function (id) {
-            assert_unreached("oncanceled reached");
+            assert_unreached("oncanceled should not be reached");
         }),
         oncompleted : t.step_func(function (id, fullPath) {
-            assert_unreached("oncompleted reached");
+            assert_unreached("oncompleted should not be reached");
         }),
         onfailed: t.step_func(function (id, err) {
-            assert_type(id, "number", "id type");
-            assert_type(err, "object", "id type");
+            assert_type(id, "number", "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();
@@ -64,6 +64,7 @@ t.step(function () {
     downloadRequest = new tizen.DownloadRequest(url_broken, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
+
 </script>
 </body>
 </html>
index 7f1af1c67e7cd1dee05ebf443345370f63772381..7d64b21b58848f425e9121fffb7cee9af4bb45c3 100644 (file)
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
@@ -32,7 +32,7 @@ Authors:
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA CBT CBOA
 
@@ -47,7 +47,7 @@ t.step(function () {
             } catch (e) { }
         }),
         onpaused: t.step_func(function (id) {
-            assert_type(id, "number", "id type");
+            assert_type(id, "number", "id type should be a number");
             try {
                 tizen.download.cancel(downloadId);
             } catch (e) { }
@@ -56,7 +56,7 @@ t.step(function () {
             t.done();
         }),
         oncompleted : t.step_func(function (id, path) {
-            assert_unreached("oncompleted reached");
+            assert_unreached("oncompleted should not be reached");
         }),
         onfailed : t.step_func(function (id, error) {
             assert_unreached("onfailed reached:: name: " + error.name + ", msg: " + error.message);
@@ -65,6 +65,7 @@ t.step(function () {
     downloadRequest = new tizen.DownloadRequest(url_large, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
+
 </script>
 </body>
 </html>
index 8a818e7b4af1e7bb51f04c272c8f723d5d683bd2..22a529e2a60cfc9aebe4a7d9b0bab6e076be2798 100644 (file)
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
@@ -32,7 +32,7 @@ Authors:
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA CBT CBOA
 
@@ -45,29 +45,30 @@ t.step(function () {
             assert_type(id, "number", "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");
-            assert_true(totalSize > 0, "totalSize is less than or equals to zero");
+            assert_type(totalSize, "number", "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 {
                 tizen.download.cancel(downloadId);
             } catch (e) { }
         }),
         onpaused : t.step_func(function (id) {
-            assert_unreached("onpaused reached");
+            assert_unreached("onpaused should not be reached");
         }),
         oncanceled : t.step_func(function (id) {
             t.done();
         }),
         oncompleted : t.step_func(function (id, path) {
-            assert_unreached("oncompleted reached");
+            assert_unreached("oncompleted should not be reached");
         }),
         onfailed : t.step_func(function (id, error) {
-            assert_unreached("onfailed reached:: name: " + error.name + ", msg: " + error.message);
+            assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
     downloadRequest = new tizen.DownloadRequest(url_large, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
+
 </script>
 </body>
 </html>
index 15f8b03380e70ade488278cfb37084212e40aaf3..6b95cecfc44313c1ec9b71cb44930a3ab7b27777 100644 (file)
@@ -32,19 +32,18 @@ Authors:
 
 <html>
 <head>
-<title> DownloadManagerObject_download_exists</title>
-<link rel="author" title="Intel" href="http://www.intel.com" />
-<link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html" />
-<meta name="flags" content="" />
-<meta name="assert" content="To check if the attribute download which in DownloadManagerObject interface exists" />
+<title>DownloadManagerObject_download_exists</title>
 <script src="../resources/unitcommon.js"></script>
+</head>
+<body>
+
 <div id="log"></div>
-<script type="text/javascript">
+<script>
 //==== TEST: DownloadManagerObject_download_exists
 //==== LABEL check if the readonly attribute download
 //==== PRIORITY P3
 //==== SPEC Tizen Web API:Content:Download:DownloadManager:DownloadManager U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/download.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA OBME
 
 test(function () {
@@ -52,6 +51,7 @@ test(function () {
     check_readonly(tizen, "download", tizen.download, "object", "dummyValue");
     check_no_interface_object("DownloadManagerObject");
 }, "DownloadManagerObject_download_exists");
+
 </script>
-</head>
+</body>
 </html>
index 5339f0266da0c762a7f93972bfc4155f1b755052..ed148774d5313dbb8633a7258c8cd816f4d001c6 100644 (file)
@@ -28,17 +28,19 @@ Authors:
 <script src="support/bluetooth_common.js"></script>
 </head>
 <body>
+
 <div id="log"></div>
 <script>
 //==== TEST: DownloadManagerObject_notexist
 //==== LABEL check if is possible to call DownloadManagerObject in new expresion
 //==== PRIORITY P3
 //==== SPEC: Tizen Web API:Content:Download:DownloadManagerObject:DownloadManagerObject U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA NIO
 test(function () {
     check_no_interface_object("DownloadManagerObject");
 }, "DownloadManagerObject_notexist");
+
 </script>
 </body>
 </html>
index 6c411cdf5163d22bb5c57009df45051c287b3f7b..fc747ed78cf51a3bdf08fc592eff7193309c1d34 100644 (file)
@@ -43,7 +43,7 @@ Authors:
 //==== LABEL: Check if 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MMINA MAST MR
 
@@ -59,24 +59,25 @@ t.step(function () {
             } catch(e) { }
         }),
         onpaused : t.step_func(function (id) {
-            assert_unreached("onpaused reached");
+            assert_unreached("onpaused should not be reached");
         }),
         oncanceled : t.step_func(function (id) {
-            assert_equals(tizen.download.getState(downloadId), "CANCELED", "DownloadId not cancelled");
-            assert_equals(retValue, undefined, "cancel returns wrong value");
+            assert_equals(tizen.download.getState(downloadId), "CANCELED", "DownloadId state is not 'CANCELED'");
+            assert_equals(retValue, undefined, "oncanceled returns wrong value");
 
             t.done();
         }),
         oncompleted : t.step_func(function (id, path) {
-            assert_unreached("oncompleted reached");
+            assert_unreached("oncompleted should not be reached");
         }),
         onfailed : t.step_func(function (id, error) {
-            assert_unreached("onfailed reached:: name: " + error.name + ", msg: " + error.message);
+            assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
     downloadRequest = new tizen.DownloadRequest(url_large, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
+
 </script>
 </body>
 </html>
index 6f685c7b37f62b7b429a87c8930c360f5debfa84..a2a218603c4e90100f5306a542fab9c641b3b69f 100644 (file)
@@ -44,13 +44,14 @@ Authors:
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA ME
 
 test(function () {
-    assert_true("cancel" in tizen.download, "cancel method exists");
+    assert_true("cancel" in tizen.download, "cancel method not exists");
     check_method_exists(tizen.download, "cancel");
 }, "DownloadManager_cancel_exist");
+
 </script>
 </body>
 </html>
index 4e38d81073b87a9b4b0276b41acf304856900e36..65f8f39f6d87f649090291308fe9bef5f407bd57 100644 (file)
@@ -16,11 +16,11 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 <html>
 <head>
-<title> DownloadManager_extend</title>
+<title>DownloadManager_extend</title>
 <script src="support/downloadcommon.js"></script>
 <script src="../resources/unitcommon.js"></script>
 </head>
@@ -32,7 +32,7 @@ Authors:
 //==== LABEL: test whether the DownloadManager object can have new attribute added
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA OBX
 
 test(function () {
index 6992f1785b14b83b7f98ef3fdad10f1680765dec..cd06bfe2bc55ea00bf029cbaa1c69ea2de6f64d3 100644 (file)
@@ -26,15 +26,13 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Yue, Jianhui<jianhuix.a.yue@intel.com>
+        Yue, Jianhui <jianhuix.a.yue@intel.com>
         Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
 <head>
 <title>DownloadManager_getDownloadRequest</title>
-<link rel="author" title="Intel" href="http://www.intel.com/" />
-<link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html" />
 <script src="../resources/unitcommon.js"></script>
 <script src="support/downloadcommon.js"></script>
 </head>
@@ -45,7 +43,7 @@ Authors:
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MR MMINA
 
@@ -54,33 +52,34 @@ var t = async_test("DownloadManager_getDownloadRequest", {timeout:90000}),
     downloadId, first = true;
 setup({timeout: 90000});
 
-t.step(function() {
+t.step(function () {
     var listener = {
-        onprogress : t.step_func(function(id, receivedSize, totalSize) {
+        onprogress : t.step_func(function (id, receivedSize, totalSize) {
             if (first) {
                 downloadRequest = tizen.download.getDownloadRequest(downloadId);
-                assert_equals(downloadRequest.url, url_small, "url value");
-                assert_equals(downloadRequest.destination, destination, "destination value");
-                assert_equals(downloadRequest.fileName, fileName, "fileName value");
+                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 reached");
+            assert_unreached("onpaused should not be reached");
         }),
         oncanceled : t.step_func(function (id) {
-            assert_unreached("oncanceled reached");
+            assert_unreached("oncanceled should not be reached");
         }),
         oncompleted : t.step_func(function (id, fullPath) {
             t.done();
         }),
         onfailed : t.step_func(function (id, error) {
-            assert_unreached("onfailed reached");
+            assert_unreached("onfailed should not be reached");
         })
     };
     downloadRequest = new tizen.DownloadRequest(url_small, destination, fileName);
     downloadId = tizen.download.start(downloadRequest, listener);
 });
+
 </script>
 </body>
 </html>
index 16680df23d8a42baa15c4fb3bbd68fef78839f19..0a9cc77da02206d0827ae6f679b5abf4f85d4e11 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Yue, Jianhui<jianhuix.a.yue@intel.com>
+        Yue, Jianhui <jianhuix.a.yue@intel.com>
         Beata Koziarek <b.koziarek@samsung.com>
 -->
 
@@ -44,13 +44,14 @@ Authors:
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA ME
 
 test(function () {
-    assert_true("getDownloadRequest" in tizen.download, "getDownloadRequest method exists");
+    assert_true("getDownloadRequest" in tizen.download, "getDownloadRequest method not exist");
     check_method_exists(tizen.download, "getDownloadRequest");
 }, "DownloadManager_getDownloadRequest_exist");
+
 </script>
 </body>
 </html>
index 6146f100b94c018291a1addc1ed508e572fa01f2..94790e21e4be420c5c65af9e97d9a94e4c7ff82d 100644 (file)
@@ -26,15 +26,13 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Yue, Jianhui<jianhuix.a.yue@intel.com>
+        Yue, Jianhui <jianhuix.a.yue@intel.com>
         Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
 <head>
 <title>DownloadManager_getMIMEType</title>
-<link rel="author" title="Intel" href="http://www.intel.com/" />
-<link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html" />
 <script src="../resources/unitcommon.js"></script>
 <script src="support/downloadcommon.js"></script>
 </head>
@@ -45,7 +43,7 @@ Authors:
 //==== LABEL: Check if 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MMINA MR
 
@@ -58,10 +56,10 @@ t.step(function () {
         onprogress : t.step_func(function (id, receivedSize, totalSize) {
         }),
         onpaused : t.step_func(function (id) {
-            assert_unreached("onpaused reached");
+            assert_unreached("onpaused should not be reached");
         }),
         oncanceled : t.step_func(function (id) {
-            assert_unreached("oncanceled reached");
+            assert_unreached("oncanceled should not be reached");
         }),
         oncompleted : t.step_func(function (id, fullPath) {
             expectedMIMEtype = "image/png";
@@ -70,12 +68,13 @@ t.step(function () {
             t.done();
         }),
         onfailed : t.step_func(function (id, error) {
-            assert_unreached("onfailed reached:: name: " + error.name + ", msg: " + error.message);
+            assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
     downloadRequest = new tizen.DownloadRequest(url_small, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
+
 </script>
 </body>
 </html>
index b6e6f82da154e2f2f865d00ca1530811b444a189..4659442b8eefec5da4166780750e92053b36781a 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Yue, Jianhui<jianhuix.a.yue@intel.com>
+        Yue, Jianhui <jianhuix.a.yue@intel.com>
         Beata Koziarek <b.koziarek@samsung.com>
 -->
 
@@ -44,13 +44,14 @@ Authors:
 //==== LABEL: Check if 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA ME
 
 test(function () {
     assert_true("getMIMEType" in tizen.download, "getMIMEType method exists");
     check_method_exists(tizen.download, "getMIMEType");
 }, "DownloadManager_getMIMEType_exist");
+
 </script>
 </body>
 </html>
index fcaa7b38cbcd1724a650a82171492819eefe8f75..c1beee8c69e4a6c60e7a77e14d0632e47367360c 100644 (file)
@@ -26,16 +26,14 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-    leizhan <zhanx.lei@intel.com>
-    Yue, Jianhui<jianhuix.a.yue@intel.com>
-    Beata Koziarek <b.koziarek@samsung.com>
+        leizhan <zhanx.lei@intel.com>
+        Yue, Jianhui <jianhuix.a.yue@intel.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
 <head>
 <title>DownloadManager_getState</title>
-<link rel="author" title="Intel" href="http://www.intel.com/" />
-<link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html" />
 <script src="../resources/unitcommon.js"></script>
 <script src="support/downloadcommon.js"></script>
 </head>
@@ -46,7 +44,7 @@ Authors:
 //==== LABEL: Check if 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MMINA MR
 
@@ -59,10 +57,10 @@ t.step(function () {
         onprogress : t.step_func(function (id, receivedSize, totalSize) {
         }),
         onpaused : t.step_func(function (id) {
-            assert_unreached("onpaused reached");
+            assert_unreached("onpaused should not be reached");
         }),
         oncanceled : t.step_func(function (id) {
-            assert_unreached("oncanceled reached");
+            assert_unreached("oncanceled should not be reached");
         }),
         oncompleted: t.step_func(function (id, fullPath) {
             state = tizen.download.getState(downloadId);
@@ -70,12 +68,13 @@ t.step(function () {
             t.done();
         }),
         onfailed : t.step_func(function (id, error) {
-            assert_unreached("onfailed reached:: name: " + error.name + ", msg: " + error.message);
+            assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
     downloadRequest = new tizen.DownloadRequest(url_small, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
+
 </script>
 </body>
 </html>
index af14ead8be5956f21c66dcac820479eaa52ff422..14c995fb0c83924c3812f9d3cfa9b5d1b6e0863d 100644 (file)
@@ -44,13 +44,14 @@ Authors:
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA ME
 
 test(function () {
     assert_true("getState" in tizen.download, "getState method exists");
     check_method_exists(tizen.download, "getState");
 }, "DownloadManager_getState_exist");
+
 </script>
 </body>
 </html>
index 9716c06dbd1ee7b903aa156955bef1909f6d1f6b..497e0159b96f1993a83d304f9703a971513b3dac 100644 (file)
@@ -26,29 +26,24 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-    leizhan <zhanx.lei@intel.com>
-    Yue, Jianhui<jianhuix.a.yue@intel.com>
+        leizhan <zhanx.lei@intel.com>
+        Yue, Jianhui <jianhuix.a.yue@intel.com>
 -->
 
 <html>
 <head>
-<title>Download Test: DownloadManager_getState_using</title>
-<link rel="author" title="Intel" href="http://www.intel.com/" />
-<link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html" />
-<meta name="assert" content="To check if the method getState which in DownloadManager interface success" />
-<meta name="flags" content="" />
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
+<title>DownloadManager_getState_using</title>
+<script src="../resources/unitcommon.js"></script>
 <script src="support/downloadcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_getState_using
-//==== LABEL check if the method getState which in DownloadManager interface success
+//==== LABEL check if the method getState which is in DownloadManager interface 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.help.web.api.device/tizen/download.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA MMINA MR
 
 var t = async_test("DownloadManager_getState_using", {timeout:90000}),
@@ -61,7 +56,7 @@ t.step(function () {
             assert_true(state === "DOWNLOADING" || state === "COMPLETED", "The state is not DOWNLOADING nor COMPLETED");
         }),
         onpaused : t.step_func(function (id) {
-            assert_unreached("onpaused reached");
+            assert_unreached("onpaused should not be reached");
         }),
         oncanceled : t.step_func(function (id) {
         }),
@@ -69,12 +64,13 @@ t.step(function () {
             t.done();
         }),
         onfailed : t.step_func(function (id, error) {
-            assert_unreached("onfailed reached");
+            assert_unreached("onfailed should not be reached");
         })
     };
     DownloadRequest = new tizen.DownloadRequest(url_small, "documents");
     downloadId = tizen.download.start(DownloadRequest, listener);
 });
+
 </script>
 </body>
 </html>
index a95dfbbecbc90d1982021f660ed526fcdc8b2f6e..dbe0b9ed80e760df00bf7e957b821b9d39bdce7a 100644 (file)
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
@@ -30,15 +30,16 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_in_tizen
-//==== LABEL: check attribute download
+//==== LABEL: check download attribute
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA OBME
 
 test(function () {
     check_readonly(tizen, "download", tizen.download, "object", "Tizen");
 }, "DownloadManager_in_tizen");
+
 </script>
 </body>
 </html>
index 32cce8ab524eef2bfc170da2eb8988a39d6f38e6..ef22e2b042cd20ecdeaa2a9cbf18f1d87dac4729 100644 (file)
@@ -33,11 +33,12 @@ Authors:
 //==== LABEL: check if is possible to call DownloadManager in new expresion
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA NIO
 test(function () {
     check_no_interface_object("DownloadManager");
 }, "DownloadManager_notexist");
+
 </script>
 </body>
 </html>
index 8e62b8a950c5495465a35d6e9ee3bf1a6bb2f3dd..ca1ec1bdbbf97765169633098f18ec6e0de5e6d6 100644 (file)
@@ -26,9 +26,9 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-    leizhan <zhanx.lei@intel.com>
-    Yue, Jianhui<jianhuix.a.yue@intel.com>
-    Beata Koziarek <b.koziarek@samsung.com>
+        leizhan <zhanx.lei@intel.com>
+        Yue, Jianhui <jianhuix.a.yue@intel.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
@@ -38,13 +38,14 @@ Authors:
 <script src="support/downloadcommon.js"></script>
 </head>
 <body>
+
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_pause
 //==== LABEL: Check if 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MMINA MAST MR
 
@@ -55,7 +56,7 @@ setup({timeout: 90000});
 t.step(function () {
     listener = {
         onprogress : t.step_func(function (id, receivedSize, totalSize) {
-            assert_not_equals(id, null, "id null");
+            assert_not_equals(id, null, "id should not be null");
             try {
                 retValue = tizen.download.pause(downloadId);
                 assert_equals(retValue, undefined, "pause returns wrong value");
@@ -71,15 +72,16 @@ t.step(function () {
             t.done();
         }),
         oncompleted : t.step_func(function (id, path) {
-            assert_unreached("oncompleted reached");
+            assert_unreached("oncompleted should not be reached");
         }),
         onfailed : t.step_func(function (id, error) {
-            assert_unreached("onfailed reached:: name: " + error.name + ", msg: " + error.message);
+            assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
     downloadRequest = new tizen.DownloadRequest(url_large, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
+
 </script>
 </body>
 </html>
index 927d63651c3051b83d0b0094fd8988edc9fe94e9..5676d9100c09c567d135e42ee82b306059acc733 100644 (file)
@@ -44,13 +44,14 @@ Authors:
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA ME
 
 test(function () {
-    assert_true("pause" in tizen.download, "pause method exists");
+    assert_true("pause" in tizen.download, "pause method not exist");
     check_method_exists(tizen.download, "pause");
 }, "DownloadManager_pause_exist");
+
 </script>
 </body>
 </html>
index bd8653fcb8c21fc6c7ef8d814d7d1c5878b0bd2a..2c7a1391e27ce068ea748fd4de0ee8ffe2d755f1 100644 (file)
@@ -26,27 +26,26 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-    leizhan <zhanx.lei@intel.com>
-    Yue, Jianhui<jianhuix.a.yue@intel.com>
-    Beata Koziarek <b.koziarek@samsung.com>
+        leizhan <zhanx.lei@intel.com>
+        Yue, Jianhui <jianhuix.a.yue@intel.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
 <head>
 <title>DownloadManager_resume</title>
-<link rel="author" title="Intel" href="http://www.intel.com/" />
-<link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html" />
 <script src="../resources/unitcommon.js"></script>
 <script src="support/downloadcommon.js"></script>
 </head>
 <body>
+
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_resume
 //==== LABEL: Check if 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MMINA MAST MR
 
@@ -74,15 +73,16 @@ t.step(function () {
             t.done();
         }),
         oncompleted : t.step_func(function (id, path) {
-            assert_unreached("oncompleted reached");
+            assert_unreached("oncompleted should not be reached");
         }),
         onfailed : t.step_func(function (id, error) {
-            assert_unreached("onfailed reached:: name: " + error.name + ", msg: " + error.message);
+            assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
     downloadRequest = new tizen.DownloadRequest(url_large, "documents");
     downloadId = tizen.download.start(downloadRequest, listener);
 });
+
 </script>
 </body>
 </html>
index d40836a2d422eb10c1e8a600d966a66f143bc748..96b0a5e0e85b5441f07775ef369bf8861d30d466 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-     leizhan <zhanx.lei@intel.com>
+        leizhan <zhanx.lei@intel.com>
         Beata Koziarek <b.koziarek@samsung.com>
 -->
 
@@ -44,13 +44,14 @@ Authors:
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA ME
 
 test(function () {
-    assert_true("resume" in tizen.download, "resume method exists");
+    assert_true("resume" in tizen.download, "resume method not exist");
     check_method_exists(tizen.download, "resume");
 }, "DownloadManager_resume_exist");
+
 </script>
 </body>
 </html>
index d06f8a54fe16b937e7ffe8865bd661edf15efaee..6af65237ea798fcce73f100ecc105e4cc03e1c3d 100644 (file)
@@ -26,26 +26,25 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Yue, Jianhui<jianhuix.a.yue@intel.com>
+        Yue, Jianhui <jianhuix.a.yue@intel.com>
         Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
 <head>
-<title>DownloadManager_getMIMEType</title>
-<link rel="author" title="Intel" href="http://www.intel.com/" />
-<link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html" />
+<title>DownloadManager_setListener</title>
 <script src="../resources/unitcommon.js"></script>
 <script src="support/downloadcommon.js"></script>
 </head>
 <body>
+
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_setListener
 //==== LABEL: Check if 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MMINA MAST MR
 var t = async_test("DownloadManager_setListener", {timeout:90000}), listener,
@@ -56,23 +55,24 @@ t.step(function () {
         onprogress : t.step_func(function (id, receivedSize, totalSize) {
         }),
         onpaused : t.step_func(function (id) {
-            assert_unreached("onpaused reached");
+            assert_unreached("onpaused should not be reached");
         }),
         oncanceled : t.step_func(function (id) {
-            assert_unreached("oncanceled reached");
+            assert_unreached("oncanceled should not be reached");
         }),
         oncompleted : t.step_func(function (id, fullPath) {
             assert_equals(retValue, undefined, "setListener returns wrong value");
             t.done();
         }),
         onfailed : t.step_func(function (id, error) {
-            assert_unreached("onfailed reached:: name: " + error.name + ", msg: " + error.message);
+            assert_unreached("onfailed should not be reached:: name: " + error.name + ", msg: " + error.message);
         })
     };
     downloadRequest = new tizen.DownloadRequest(url_small, "documents");
     downloadId = tizen.download.start(downloadRequest);
     retValue = tizen.download.setListener(downloadId, listener);
 });
+
 </script>
 </body>
 </html>
index 4cfc842b5a804fd0c1dbee3432839bb5067f1a75..fa285684484e41256c1dbb289ea6c580375879d7 100644 (file)
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziare <b.koziarek@samsung.com>
+        Beata Koziare <b.koziarek@samsung.com>
 -->
 
 <html>
@@ -34,25 +34,25 @@ Authors:
 //==== PRIORITY: P2
 //==== ONLOAD_DELAY 90
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA MC
 
 setup({timeout: 90000});
 
 var t = async_test("DownloadManager_setListener_downloadCallback_TypeMismatch", {timeout: 90000}),
-    downloadRequest, downloadId, successCallback, exceptionName, conversionTable, i;
+    downloadRequest, downloadId, listener, exceptionName, conversionTable, i;
 t.step(function () {
     downloadRequest = new tizen.DownloadRequest(url_small, "documents");
     downloadId = tizen.download.start(downloadRequest);
     conversionTable = getTypeConversionExceptions("object", false);
     for (i = 0; i < conversionTable.length; i++) {
-        successCallback = conversionTable[i][0];
+        listener = conversionTable[i][0];
         exceptionName = conversionTable[i][1];
 
         assert_throws({name : exceptionName},
             function () {
-                tizen.download.setListener(downloadId, successCallback);
-            }, exceptionName + " should be thrown - given incorrect successCallback.");
+                tizen.download.setListener(downloadId, listener);
+            }, exceptionName + " should be thrown - given incorrect listener.");
     }
     try {
         tizen.download.cancel(downloadId);
index 36e2392650a477f81fae7719e1e5c113dc96de04..fa69bcc47e7f07cd8e02c344f33437f3ce042400 100644 (file)
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
@@ -30,11 +30,11 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_setListener_downloadCallback_invalid_cb
-//==== LABEL: Test whether the constructor of the interface is defined or not for setListener method.
+//==== LABEL: Check if setListener method throws exception when giving invalid listener.
 //==== PRIORITY: P2
 //==== ONLOAD_DELAY 90
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA MTL
 
 setup({timeout: 90000});
@@ -53,7 +53,7 @@ t.step(function () {
         assert_throws({name : exceptionName},
             function () {
                 tizen.download.setListener(downloadId, listener);
-            }, exceptionName + " should be thrown - given incorrect successCallback.");
+            }, exceptionName + " should be thrown - given incorrect listener.");
     }
     try {
         tizen.download.cancel(downloadId);
index e6acbc6a03f493a63ed4eec57fe2e024cda17394..e2651bee4c1286dd242af6d159a30ca197065115 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Yue, Jianhui<jianhuix.a.yue@intel.com>
+        Yue, Jianhui <jianhuix.a.yue@intel.com>
         Beata Koziarek <b.koziarek@samsung.com>
 -->
 
@@ -44,12 +44,13 @@ Authors:
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA ME
 test(function () {
-    assert_true("setListener" in tizen.download, "setListener method exists");
+    assert_true("setListener" in tizen.download, "setListener method not exist");
     check_method_exists(tizen.download, "setListener");
 }, "DownloadManager_setListener_exist");
+
 </script>
 </body>
 </html>
index 95ba61dd7fd1ad1be37b3f2c452304008c23479c..98e4f44c4fc37c5c32120171d1798766b5fa9744 100644 (file)
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
@@ -30,10 +30,10 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_setListener_missarg
-//==== LABEL: Check if setListener method with missing non-optional argument works
+//==== LABEL: Check if setListener method with missing non-optional argument throws exception
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA MMA
 test(function () {
     assert_throws({name: TYPE_MISMATCH_ERR},
index 4ea66fd7fdba1ea03af87e00a6de34340639b67b..abe5ed2650a4b12504f839b8b7533b2415b2dd10 100644 (file)
@@ -26,16 +26,12 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Yue, Jianhui<jianhuix.a.yue@intel.com>
+        Yue, Jianhui <jianhuix.a.yue@intel.com>
 -->
 
 <html>
 <head>
-<title>Download Test: DownloadManager_setListener_null</title>
-<link rel="author" title="Intel" href="http://www.intel.com" />
-<link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html" />
-<meta name="flags" content="" />
-<meta name="assert" content="DownloadManager_setListener_InvalidValuesError" />
+<title>DownloadManager_setListener_null</title>
 <script src="../resources/testharness.js"></script>
 <script src="../resources/testharnessreport.js"></script>
 </head>
@@ -46,7 +42,7 @@ Authors:
 //==== LABEL Check if method setListener 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.help.web.api.device/tizen/download.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA MC
 
 test(function () {
@@ -55,6 +51,7 @@ test(function () {
             tizen.download.setListener(null, null);
         }, "TypeMismatchError exception should be thrown (given null arguments).");
 }, "DownloadManager_setListener_null");
+
 </script>
 </body>
 </html>
index 61e9572a3d5ab109fe61c7cd609a5616ecf3389e..bbda495d0527059b775df36e81001d2b40201877 100644 (file)
@@ -16,14 +16,12 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
 <head>
 <title>DownloadManager_start</title>
-<link rel="author" title="Intel" href="http://www.intel.com/" />
-<link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html" />
 <script src="../resources/unitcommon.js"></script>
 <script src="support/downloadcommon.js"></script>
 </head>
@@ -34,7 +32,7 @@ Authors:
 //==== LABEL: Check if start method with downloadRequest non-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
+//==== 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;
@@ -42,11 +40,12 @@ test(function () {
     destination = "documents";
     DownloadRequest = new tizen.DownloadRequest(url_small, destination);
     downloadId = tizen.download.start(DownloadRequest);
-    assert_not_equals(downloadId, null, "downloadId is null");
-    assert_equals(DownloadRequest.url, url_small, "urls are different");
-    assert_equals(DownloadRequest.destination, destination, "destinations are different");
+    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");
     tizen.download.cancel(downloadId);
 }, "DownloadManager_start");
+
 </script>
 </body>
 </html>
index 0b71492b056c91f33360c51e209c80e5f761af73..719fc487c7f45cb16050dae5b2914e8b5e8fa3c7 100644 (file)
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziare <b.koziarek@samsung.com>
+        Beata Koziare <b.koziarek@samsung.com>
 -->
 
 <html>
@@ -34,25 +34,25 @@ Authors:
 //==== PRIORITY: P2
 //==== ONLOAD_DELAY 90
 //==== SPEC: Tizen Web API:Content:Download:DownloadManager:start M
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/download.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA MC
 
 //  DownloadManager_start_downloadCallback_TypeMismatch for start method.
 setup({timeout: 90000});
 
 var t = async_test("DownloadManager_start_downloadCallback_TypeMismatch", {timeout: 90000}),
-    downloadRequest, successCallback, exceptionName, conversionTable, i;
+    downloadRequest, listener, exceptionName, conversionTable, i;
 t.step(function () {
     downloadRequest = new tizen.DownloadRequest(url_small, "documents");
     conversionTable = getTypeConversionExceptions("object", true);
     for (i = 0; i < conversionTable.length; i++) {
-        successCallback = conversionTable[i][0];
+        listener = conversionTable[i][0];
         exceptionName = conversionTable[i][1];
 
         assert_throws({name : exceptionName},
             function () {
-                tizen.download.start(downloadRequest, successCallback);
-            }, exceptionName + " should be thrown - given incorrect successCallback.");
+                tizen.download.start(downloadRequest, listener);
+            }, exceptionName + " should be thrown - given incorrect listener.");
     }
     t.done();
 });
index 7ee66d00f3a812107060bd98536879280139f237..0f7256dcb9b910ee67b9028dfa68244afeee13e4 100644 (file)
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
@@ -30,10 +30,10 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_start_downloadCallback_invalid_cb
-//==== LABEL: Test whether the constructor of the interface is defined or not for callback in start method.
+//==== LABEL: Check if start method throws exception when giving invalid listener.
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MTL
 
@@ -51,7 +51,7 @@ t.step(function () {
         assert_throws({name : exceptionName},
             function () {
                 tizen.download.start(downloadRequest, listener);
-            }, exceptionName + " should be thrown - given incorrect successCallback.");
+            }, exceptionName + " should be thrown - given incorrect listener.");
     }
     t.done();
 });
index b3df038d85b642afc10635c8cf1942b46a2b00b3..c08149b9293c60365944f9583f9be938965601ee 100644 (file)
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziare <b.koziarek@samsung.com>
+        Beata Koziare <b.koziarek@samsung.com>
 -->
 
 <html>
@@ -34,7 +34,7 @@ Authors:
 //==== PRIORITY: P2
 //==== ONLOAD_DELAY 90
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA MC
 
 setup({timeout: 90000});
@@ -50,7 +50,7 @@ t.step(function () {
         assert_throws({name : exceptionName},
             function () {
                 tizen.download.start(downloadRequest);
-            }, exceptionName + " should be thrown - given incorrect successCallback.");
+            }, exceptionName + " should be thrown - given incorrect downloadRequest.");
     }
     t.done();
 });
index 3f99e094c8718278fc2e6c7a530132aedbdeab97..7d729e482de4ab109bbac9b3379a297e56d8efda 100644 (file)
@@ -16,12 +16,12 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
 <head>
-<title>DownloadManager_start_downloadCallback_invalid_obj</title>
+<title>DownloadManager_start_downloadRequest_invalid_obj</title>
 <script src="support/downloadcommon.js"></script>
 <script src="../resources/unitcommon.js"></script>
 </head>
@@ -30,11 +30,11 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: DownloadManager_start_downloadRequest_invalid_obj
-//==== LABEL: check if the parameter downloadRequest which in setListener method invalid
+//==== LABEL: check if giving incorrect downloadRequest for setListener method throws exception
 //==== PRIORITY: P2
 //==== ONLOAD_DELAY 90
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA MTO
 
 setup({timeout: 90000});
@@ -49,7 +49,7 @@ t.step(function () {
     assert_throws({name : exceptionName},
         function () {
             tizen.download.start(downloadRequest[0]);
-        }, exceptionName + " should be thrown - given incorrect success callback.");
+        }, exceptionName + " should be thrown - given incorrect downloadRequest.");
     t.done();
 });
 
index b3f6d94616257556ede5efe113e34a4adf9be775..a3aefa4685aedd354becab002e57921643d23a44 100644 (file)
@@ -44,13 +44,14 @@ Authors:
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA ME
 
 test(function () {
-    assert_true("start" in tizen.download, "start method exists");
+    assert_true("start" in tizen.download, "start method not exist");
     check_method_exists(tizen.download, "start");
 }, "DownloadManager_start_exist");
+
 </script>
 </body>
 </html>
index c2157ade37a5e37c4026ae2c84766b8ebc991239..510c780a931cb2859a16d8c8d715f48a450f14db 100644 (file)
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
@@ -33,7 +33,7 @@ Authors:
 //==== LABEL: Check if start method with missing non-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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA MMA
 
 test(function () {
index 2e8fb5afaf28847e7f3c33e0dd9f6f30433a7a60..d7b922f13bca8ab31fe5c7d1e8990d7cedda09c0 100644 (file)
@@ -26,16 +26,14 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-    leizhan <zhanx.lei@intel.com>
-    Yue, Jianhui<jianhuix.a.yue@intel.com>
-    Beata Koziarek <b.koziarek@samsung.com>
+        leizhan <zhanx.lei@intel.com>
+        Yue, Jianhui <jianhuix.a.yue@intel.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
 <head>
 <title>DownloadManager_start_with_downloadCallback</title>
-<link rel="author" title="Intel" href="http://www.intel.com/" />
-<link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html" />
 <script src="../resources/unitcommon.js"></script>
 <script src="support/downloadcommon.js"></script>
 </head>
@@ -46,7 +44,7 @@ Authors:
 //==== LABEL: Check if 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MOA MAST
 
@@ -62,6 +60,7 @@ t.step(function () {
     DownloadRequest = new tizen.DownloadRequest(url_small, destination);
     tizen.download.start(DownloadRequest, listener);
 });
+
 </script>
 </body>
 </html>
index b3f5a7ad977d0158fcd82296c0d0076513214efd..735efb123e7d74163ac8cfc726b3ff49eee9c5c8 100644 (file)
@@ -18,13 +18,13 @@ limitations under the License.
 
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
-<html lang="en">
+<html>
 
 <head>
-<title>download/UTC_download</title>
+<title>DownloadManager_start_with_extra_argument</title>
 <meta charset="utf-8">
 <script src="../resources/unitcommon.js"></script>
 <script src="support/downloadcommon.js"></script>
@@ -37,7 +37,7 @@ Authors:
 //==== TEST: DownloadManager_start_with_extra_argument
 //==== LABEL check whether 'start' method returns correct value when extra argument is given
 //==== 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#startid2381395
+//==== 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,
@@ -61,7 +61,7 @@ test(function () {
     }
 
 }, "DownloadManager_start_with_extra_argument");
+
 </script>
 </body>
 </html>
-
index a610163f551fc87135dee23bd22b4bc590d87597..1e8596a1e9a1e33729755da8d798c2cca3c6a83f 100644 (file)
@@ -33,16 +33,16 @@ Authors:
 //==== LABEL: check if the values of the attributes are equal to the arguments passed
 //==== PRIORITY: P1
 //==== SPEC: Tizen Web API:Content:Download:DownloadRequest:constructor C
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA CONSTRA CONSTRM
 var downloadRequest, destination = "documents",
     fileName = "download.html";
 test(function (){
     downloadRequest = new tizen.DownloadRequest(url_small, destination, fileName);
-    assert_type(downloadRequest, "object", "DownloadRequest constructor test.");
-    assert_equals(downloadRequest.url, url_small, "urls are different");
-    assert_equals(downloadRequest.destination, destination, "destinations are different");
-    assert_equals(downloadRequest.fileName, fileName, "fileName are different");
+    assert_type(downloadRequest, "object", "DownloadRequest should be an object.");
+    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");
 }, "DownloadRequest_constructor");
 
 </script>
index 1739a506e22aee93a763cbd307f40674ce765762..4c28d82d1a40fdbd2b6466c0e4b6fddc08878cd8 100644 (file)
@@ -18,11 +18,11 @@ limitations under the License.
 
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 <html>
 <head>
-<title> DownloadRequest_destination_attribute</title>
+<title>DownloadRequest_destination_attribute</title>
 <script src="support/downloadcommon.js"></script>
 <script src="../resources/unitcommon.js"></script>
 </head>
@@ -34,7 +34,7 @@ Authors:
 //==== LABEL: check attribute destination
 //==== 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
+//==== 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 = "";
index f0e50690c7cb6882a8e6a4fd8de69a06355b1d69..24d969fd15c44dd70a4b65f65fa174052b9f75a0 100644 (file)
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 
 <html>
@@ -33,7 +33,7 @@ Authors:
 //==== LABEL: Test whether the constructor of the interface is defined or not for DownloadRequest.
 //==== PRIORITY: P0
 //==== SPEC: Tizen Web API:Content:Download:DownloadRequest:constructor C
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA CONSTRF
 
 test(function () {
index 6f5f9c84a951e477cf8a8dc3e3fe03ee3296c7d2..e313be5dbf3dd253f3410f155a46713ef6ca2a5f 100644 (file)
@@ -16,11 +16,11 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 <html>
 <head>
-<title> DownloadRequest_extend</title>
+<title>DownloadRequest_extend</title>
 <script src="support/downloadcommon.js"></script>
 <script src="../resources/unitcommon.js"></script>
 </head>
@@ -32,7 +32,7 @@ Authors:
 //==== LABEL: test whether the object can have new attribute added
 //==== PRIORITY: P3
 //==== SPEC: Tizen Web API:Content:Download:DownloadRequest:DownloadRequest U
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA OBX
 var downloadRequest = null;
 test(function () {
index ed23a70bc12b33592ce823113213d09d0467279e..b36d6823f1af30b114c30f0bfced7e1a0a974087 100644 (file)
@@ -16,11 +16,11 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 <html>
 <head>
-<title> DownloadRequest_fileName_attribute</title>
+<title>DownloadRequest_fileName_attribute</title>
 <script src="support/downloadcommon.js"></script>
 <script src="../resources/unitcommon.js"></script>
 </head>
@@ -30,17 +30,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: DownloadRequest_fileName_attribute
-//==== LABEL: check attribute fileName
+//==== LABEL: check fileName attribute
 //==== 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
+//==== 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 = "";
 test(function () {
     downloadRequest = new tizen.DownloadRequest(url_small, "documents");
-    assert_true("fileName" in downloadRequest,"fileName not in downloadRequest");
-    assert_equals(downloadRequest.fileName, default_val, "Default value is incorrect");
+    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");
 }, "DownloadRequest_fileName_attribute");
 
index bba40865b617f59cc6f928bf43894229c6bc8dbc..47bf53ae83211e9a5c09d606f44169b0107492ba 100644 (file)
@@ -16,11 +16,11 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 <html>
 <head>
-<title> DownloadRequest_httpHeader_attribute</title>
+<title>DownloadRequest_httpHeader_attribute</title>
 <script src="support/downloadcommon.js"></script>
 <script src="../resources/unitcommon.js"></script>
 </head>
@@ -28,10 +28,10 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: DownloadRequest_httpHeader_attribute
-//==== LABEL: check attribute httpHeader
+//==== LABEL: check httpHeader attribute
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
 //==== TEST_CRITERIA AE AT ADV ASG
 
 var downloadRequest = null;
index e1c0ab4e833b6e6d620fb85df96713267bca9b2d..64b0e02cdcf0f452b5dc8ba895b660ce3f28f498 100644 (file)
@@ -16,11 +16,11 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 <html>
 <head>
-<title> DownloadRequest_networkType_attribute</title>
+<title>DownloadRequest_networkType_attribute</title>
 <script src="support/downloadcommon.js"></script>
 <script src="../resources/unitcommon.js"></script>
 </head>
@@ -28,10 +28,10 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: DownloadRequest_networkType_attribute
-//==== LABEL: check attribute networkType
+//==== LABEL: check networkType attribute
 //==== 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
+//==== 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;
index b7b00f8af02e224685625f4b20792714a1d72ee8..72fdc787b6da8455f2f673baa511bb33f304921b 100644 (file)
@@ -16,11 +16,11 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 Authors:
-    Beata Koziarek <b.koziarek@samsung.com>
+        Beata Koziarek <b.koziarek@samsung.com>
 -->
 <html>
 <head>
-<title> DownloadRequest_url_attribute</title>
+<title>DownloadRequest_url_attribute</title>
 <script src="support/downloadcommon.js"></script>
 <script src="../resources/unitcommon.js"></script>
 </head>
@@ -28,10 +28,10 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: DownloadRequest_url_attribute
-//==== LABEL: check attribute url
+//==== LABEL: check url attribute
 //==== 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
+//==== 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;
@@ -42,7 +42,7 @@ test(function () {
     assert_equals(downloadRequest.url, default_val, "Default value is incorrect");
     check_attribute(downloadRequest, "url", default_val, "string", "http://www.samsung.com/");
     downloadRequest.url = null;
-    assert_not_equals(downloadRequest.url, null, "url can be set to null");
+    assert_not_equals(downloadRequest.url, null, "url should not be set to null");
 }, "DownloadRequest_url_attribute");
 
 </script>