<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
<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
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();
}),
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);
});
<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
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");
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);
});
<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
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);
});
<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
} 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) { }
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);
});
<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
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 {
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);
});
<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
<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
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();
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);
});
<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
<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
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) {
}),
}),
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);
});
<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
<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
//==== 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 () {
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);
});
<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
<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
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);
});
<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
<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 = {
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>
<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
<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
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);
});
<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
<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
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;
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);
});
<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
<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
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);
});
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++) {
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];
<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
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>
<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
//==== 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);
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];
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];
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},
<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
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>
<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
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>
//==== 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,
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);
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);
<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>
//==== 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);
<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>
<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
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,
<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
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";
<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);
*/
-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";
<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>
</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>
</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>
</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>
</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>
</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>
</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>
</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>
</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>
<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>