From: Piotr Szydelko
Date: Mon, 7 Oct 2013 12:55:37 +0000 (+0200)
Subject: [Download] second stage of code cleanup
X-Git-Tag: 2.2.1_release~105^2~30
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c81799ab6b797dc909c7038f91e42cc4a05834d4;p=test%2Ftct%2Fweb%2Fapi.git
[Download] second stage of code cleanup
Change-Id: I1da86a5e2388f2fc6e6a70c01a069b3758be1ed4
---
diff --git a/tct-download-tizen-tests/download/DownloadCallback_notexist.html b/tct-download-tizen-tests/download/DownloadCallback_notexist.html
index 9b181355d..09d58eefc 100644
--- a/tct-download-tizen-tests/download/DownloadCallback_notexist.html
+++ b/tct-download-tizen-tests/download/DownloadCallback_notexist.html
@@ -30,7 +30,7 @@ Authors:
diff --git a/tct-download-tizen-tests/download/DownloadManager_in_tizen.html b/tct-download-tizen-tests/download/DownloadManager_in_tizen.html
index e98f0f635..f3ba39de2 100644
--- a/tct-download-tizen-tests/download/DownloadManager_in_tizen.html
+++ b/tct-download-tizen-tests/download/DownloadManager_in_tizen.html
@@ -30,7 +30,7 @@ Authors:
diff --git a/tct-download-tizen-tests/download/DownloadManager_setListener_null.html b/tct-download-tizen-tests/download/DownloadManager_setListener_null.html
index afa45e7f1..e94cc2ada 100644
--- a/tct-download-tizen-tests/download/DownloadManager_setListener_null.html
+++ b/tct-download-tizen-tests/download/DownloadManager_setListener_null.html
@@ -38,7 +38,7 @@ Authors:
diff --git a/tct-download-tizen-tests/download/DownloadManager_start_with_downloadCallback.html b/tct-download-tizen-tests/download/DownloadManager_start_with_downloadCallback.html
index f7086a790..c27000180 100644
--- a/tct-download-tizen-tests/download/DownloadManager_start_with_downloadCallback.html
+++ b/tct-download-tizen-tests/download/DownloadManager_start_with_downloadCallback.html
@@ -41,7 +41,7 @@ Authors:
diff --git a/tct-download-tizen-tests/download/DownloadManager_start_with_extra_argument.html b/tct-download-tizen-tests/download/DownloadManager_start_with_extra_argument.html
index d3531e0f6..0a1f83298 100644
--- a/tct-download-tizen-tests/download/DownloadManager_start_with_extra_argument.html
+++ b/tct-download-tizen-tests/download/DownloadManager_start_with_extra_argument.html
@@ -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);
diff --git a/tct-download-tizen-tests/download/DownloadRequest_constructor.html b/tct-download-tizen-tests/download/DownloadRequest_constructor.html
index e0de4c7dc..226eecab0 100644
--- a/tct-download-tizen-tests/download/DownloadRequest_constructor.html
+++ b/tct-download-tizen-tests/download/DownloadRequest_constructor.html
@@ -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);
diff --git a/tct-download-tizen-tests/download/DownloadRequest_destination_attribute.html b/tct-download-tizen-tests/download/DownloadRequest_destination_attribute.html
index 96b36f842..414f1df57 100644
--- a/tct-download-tizen-tests/download/DownloadRequest_destination_attribute.html
+++ b/tct-download-tizen-tests/download/DownloadRequest_destination_attribute.html
@@ -31,18 +31,18 @@ Authors:
diff --git a/tct-download-tizen-tests/download/DownloadRequest_extend.html b/tct-download-tizen-tests/download/DownloadRequest_extend.html
index 0c441032c..a93fea3cc 100644
--- a/tct-download-tizen-tests/download/DownloadRequest_extend.html
+++ b/tct-download-tizen-tests/download/DownloadRequest_extend.html
@@ -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);
diff --git a/tct-download-tizen-tests/download/DownloadRequest_fileName_attribute.html b/tct-download-tizen-tests/download/DownloadRequest_fileName_attribute.html
index e4f78cb4d..02fc1c0b5 100644
--- a/tct-download-tizen-tests/download/DownloadRequest_fileName_attribute.html
+++ b/tct-download-tizen-tests/download/DownloadRequest_fileName_attribute.html
@@ -30,18 +30,18 @@ Authors:
diff --git a/tct-download-tizen-tests/download/DownloadRequest_httpHeader_attribute.html b/tct-download-tizen-tests/download/DownloadRequest_httpHeader_attribute.html
index 04907ebd1..f98fdf88e 100644
--- a/tct-download-tizen-tests/download/DownloadRequest_httpHeader_attribute.html
+++ b/tct-download-tizen-tests/download/DownloadRequest_httpHeader_attribute.html
@@ -28,7 +28,7 @@ Authors: