//==== 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>
limitations under the License.
Authors:
- Beata Koziarek <b.koziarek@samsung.com>
+ Beata Koziarek <b.koziarek@samsung.com>
-->
<html>
//==== 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
} 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");
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>
limitations under the License.
Authors:
- Beata Koziarek <b.koziarek@samsung.com>
+ Beata Koziarek <b.koziarek@samsung.com>
-->
<html>
//==== 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
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();
}),
downloadRequest = new tizen.DownloadRequest(url_small, "documents");
downloadId = tizen.download.start(downloadRequest, listener);
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Beata Koziarek <b.koziarek@samsung.com>
+ Beata Koziarek <b.koziarek@samsung.com>
-->
<html>
//==== 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
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();
downloadRequest = new tizen.DownloadRequest(url_broken, "documents");
downloadId = tizen.download.start(downloadRequest, listener);
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Beata Koziarek <b.koziarek@samsung.com>
+ Beata Koziarek <b.koziarek@samsung.com>
-->
<html>
//==== 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
} 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) { }
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);
downloadRequest = new tizen.DownloadRequest(url_large, "documents");
downloadId = tizen.download.start(downloadRequest, listener);
});
+
</script>
</body>
</html>
limitations under the License.
Authors:
- Beata Koziarek <b.koziarek@samsung.com>
+ Beata Koziarek <b.koziarek@samsung.com>
-->
<html>
//==== 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
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>
<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 () {
check_readonly(tizen, "download", tizen.download, "object", "dummyValue");
check_no_interface_object("DownloadManagerObject");
}, "DownloadManagerObject_download_exists");
+
</script>
-</head>
+</body>
</html>
<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>
//==== 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
} 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>
//==== 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>
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>
//==== 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 () {
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>
//==== 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
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>
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>
-->
//==== 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>
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>
//==== 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
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";
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>
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>
-->
//==== 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>
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>
//==== 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
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);
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>
//==== 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>
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}),
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) {
}),
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>
limitations under the License.
Authors:
- Beata Koziarek <b.koziarek@samsung.com>
+ Beata Koziarek <b.koziarek@samsung.com>
-->
<html>
<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>
//==== 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>
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>
<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
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");
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>
//==== 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>
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
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>
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>
-->
//==== 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>
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,
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>
limitations under the License.
Authors:
- Beata Koziare <b.koziarek@samsung.com>
+ Beata Koziare <b.koziarek@samsung.com>
-->
<html>
//==== 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);
limitations under the License.
Authors:
- Beata Koziarek <b.koziarek@samsung.com>
+ Beata Koziarek <b.koziarek@samsung.com>
-->
<html>
<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});
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);
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>
-->
//==== 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>
limitations under the License.
Authors:
- Beata Koziarek <b.koziarek@samsung.com>
+ Beata Koziarek <b.koziarek@samsung.com>
-->
<html>
<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},
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>
//==== 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 () {
tizen.download.setListener(null, null);
}, "TypeMismatchError exception should be thrown (given null arguments).");
}, "DownloadManager_setListener_null");
+
</script>
</body>
</html>
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>
//==== 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;
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>
limitations under the License.
Authors:
- Beata Koziare <b.koziarek@samsung.com>
+ Beata Koziare <b.koziarek@samsung.com>
-->
<html>
//==== 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();
});
limitations under the License.
Authors:
- Beata Koziarek <b.koziarek@samsung.com>
+ Beata Koziarek <b.koziarek@samsung.com>
-->
<html>
<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
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();
});
limitations under the License.
Authors:
- Beata Koziare <b.koziarek@samsung.com>
+ Beata Koziare <b.koziarek@samsung.com>
-->
<html>
//==== 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});
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();
});
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>
<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});
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();
});
//==== 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>
limitations under the License.
Authors:
- Beata Koziarek <b.koziarek@samsung.com>
+ Beata Koziarek <b.koziarek@samsung.com>
-->
<html>
//==== 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 () {
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>
//==== 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
DownloadRequest = new tizen.DownloadRequest(url_small, destination);
tizen.download.start(DownloadRequest, listener);
});
+
</script>
</body>
</html>
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>
//==== 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,
}
}, "DownloadManager_start_with_extra_argument");
+
</script>
</body>
</html>
-
//==== 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>
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>
//==== 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 = "";
limitations under the License.
Authors:
- Beata Koziarek <b.koziarek@samsung.com>
+ Beata Koziarek <b.koziarek@samsung.com>
-->
<html>
//==== 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 () {
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>
//==== 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 () {
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>
<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");
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>
<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;
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>
<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;
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>
<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;
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>