<title>CallHistoryChangeCallback_notexist</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistoryChangeCallback_notexist
//==== LABEL Check if CallHistoryChangeCallback cannot be called in new expression and as a function
//==== PRIORITY P3
-//==== SPEC: Tizen Web API:Social:Callhistory:CallHistoryChangeCallback:CallHistoryChangeCallback U
+//==== SPEC Tizen Web API:Social:Callhistory:CallHistoryChangeCallback:CallHistoryChangeCallback U
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA CBNIO
+
test(function () {
check_no_interface_object("CallHistoryChangeCallback");
}, document.title);
</head>
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistoryChangeCallback_onadded
//==== LABEL Check if CallHistoryChangeCallback onadded is called and if its arguments have proper type
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== SPEC: Tizen Web API:Social:Callhistory:CallHistoryChangeCallback:onadded M
+//==== SPEC Tizen Web API:Social:Callhistory:CallHistoryChangeCallback:onadded M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA CBT CBOA
</script>
</body>
-</html>
+</html>
\ No newline at end of file
</head>
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistoryChangeCallback_onchanged
//==== LABEL Check if CallHistoryChangeCallback onchanged is called properly
//==== PRIORITY P1
//==== EXECUTION_TYPE: manual
-//==== SPEC: Tizen Web API:Social:Callhistory:CallHistoryChangeCallback:onchanged M
+//==== SPEC Tizen Web API:Social:Callhistory:CallHistoryChangeCallback:onchanged M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA CBT CBOA
//==== PRE Make an untouched MISSED call
</script>
</body>
-</html>
+</html>
\ No newline at end of file
-->
<html>
-
<head>
<title>CallHistoryChangeCallback_onremoved</title>
<meta charset="utf-8"/>
</head>
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistoryChangeCallback_onremoved
//==== LABEL Check if CallHistoryChangeCallback onremoved is called properly
//==== PRIORITY P1
//==== EXECUTION_TYPE: manual
-//==== SPEC: Tizen Web API:Social:Callhistory:CallHistoryChangeCallback:onremoved M
+//==== SPEC Tizen Web API:Social:Callhistory:CallHistoryChangeCallback:onremoved M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA CBT CBOA
//==== PRE Make a call
setup({timeout: 90000});
+
var t = async_test(document.title, {timeout: 90000}), onListenerCB, handle;
t.step(function () {
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistoryEntry
//==== LABEL Check CallHistoryEntry attributes and functions
//==== PRIORITY P3
//==== TEST_CRITERIA AT ARO AE
//==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntry:duration A
//==== TEST_CRITERIA AT ARO AE
-//==== SPEC: Tizen Web API:Social:Callhistory:RemoteParty:RemoteParty U
+//==== SPEC Tizen Web API:Social:Callhistory:RemoteParty:RemoteParty U
//==== TEST_CRITERIA OBX
-//==== SPEC: Tizen Web API:Social:Callhistory:RemoteParty:personId A
+//==== SPEC Tizen Web API:Social:Callhistory:RemoteParty:personId A
//==== TEST_CRITERIA AT ARO AE
-//==== SPEC: Tizen Web API:Social:Callhistory:RemoteParty:remoteParty A
+//==== SPEC Tizen Web API:Social:Callhistory:RemoteParty:remoteParty A
//==== TEST_CRITERIA AT ARO AE
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
-//==== PRE: Make an existence call history
+//==== PRE Make an existence call history
executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
<title>CallHistoryEntryArraySuccessCallback_notexist</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistoryEntryArraySuccessCallback_notexist
//==== LABEL Check if CallHistoryEntryArraySuccessCallback cannot be called in new expression and as a function
//==== PRIORITY P3
-//==== SPEC: Tizen Web API:Social:Callhistory:CallHistoryEntryArraySuccessCallback:CallHistoryEntryArraySuccessCallback U
+//==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntryArraySuccessCallback:CallHistoryEntryArraySuccessCallback U
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA CBNIO
+
test(function () {
check_no_interface_object("CallHistoryEntryArraySuccessCallback");
}, document.title);
</head>
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistoryEntryArraySuccessCallback_onsuccess
//==== LABEL Check if CallHistoryEntryArraySuccessCallback onsuccess is called properly
//==== PRIORITY P1
//==== EXECUTION_TYPE: manual
-//==== SPEC: Tizen Web API:Social:Callhistory:CallHistoryEntryArraySuccessCallback:onsuccess M
+//==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntryArraySuccessCallback:onsuccess M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA CBT CBOA
//==== PRE Make an existence call history
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistoryEntry_direction_DIALED
//==== LABEL Check if direction value is DIALED when user dialed a call
-//==== PRIORITY P1
-//==== EXECUTION_TYPE manual
//==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntry:direction A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
-//==== TEST_CRITERIA AT
+//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
//==== PRE Make a call
+//==== TEST_CRITERIA AT
executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistoryEntry_direction_MISSED
//==== LABEL Check if direction value is MISSED when user missed calls
-//==== PRIORITY P1
-//==== EXECUTION_TYPE manual
//==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntry:direction A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
-//==== TEST_CRITERIA AT
+//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
//==== PRE Make at least one MISSED call, which was seen
+//==== TEST_CRITERIA AT
executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSED, new Date()));
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistoryEntry_direction_MISSEDNEW
//==== LABEL Check if direction value is MISSEDNEW when user missed call which is not seen
-//==== PRIORITY P1
-//==== EXECUTION_TYPE manual
//==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntry:direction A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
-//==== TEST_CRITERIA AT
+//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
//==== PRE Make at least one MISSED call which is NOT SEEN
+//==== TEST_CRITERIA AT
executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSEDNEW, new Date()));
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistoryEntry_direction_RECEIVED
//==== LABEL Check if direction value is RECEIVED when user received a call
-//==== PRIORITY P1
-//==== EXECUTION_TYPE manual
//==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntry:direction A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
-//==== TEST_CRITERIA AT
+//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
//==== PRE Make a RECEIVED call
+//==== TEST_CRITERIA AT
executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistoryEntry_direction_REJECTED
//==== LABEL Check if direction value is REJECTED when user rejected a call
-//==== PRIORITY P1
-//==== EXECUTION_TYPE manual
//==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntry:direction A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
-//==== TEST_CRITERIA AT
+//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
//==== PRE Make a REJECTED call
+//==== TEST_CRITERIA AT
executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.REJECTED, new Date()));
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistoryEntry_direction_attribute
//==== LABEL Check if CallHistoryEntry have direction attribute with proper type, not null
-//==== PRIORITY P1
-//==== EXECUTION_TYPE: manual
-//==== SPEC: Tizen Web API:Social:Callhistory:CallHistoryEntry:direction A
+//==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntry:direction A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
+//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
+//==== PRE Make an existence call history with one new missed call which was not seen
//==== TEST_CRITERIA AE AT AVL ASG AN
-//==== PRE: Make an existence call history with one new missed call which was not seen
executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSEDNEW, new Date()));
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistoryEntry_features_VOICECALL
//==== LABEL Check if features value is VOICECALL for voice-only calls
-//==== PRIORITY P1
-//==== EXECUTION_TYPE manual
//==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntry:features A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
-//==== TEST_CRITERIA
+//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
//==== PRE Make a VOICE ONLY call
+//==== TEST_CRITERIA
executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
<title>CallHistoryEntry_notexist</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistoryEntry_notexist
//==== LABEL Check if CallHistoryEntry cannot be called in new expression and as a function or in new expression
-//==== PRIORITY: P3
-//==== SPEC: Tizen Web API:Social:Callhistory:CallHistoryEntry:CallHistoryEntry U
+//==== PRIORITY P3
+//==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntry:CallHistoryEntry U
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA NIO
+
test(function () {
check_no_interface_object("CallHistoryEntry");
}, document.title);
</head>
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistoryEntry_type_TEL
//==== LABEL Check if attribute type value is TEL
//==== PRIORITY P1
-->
<html>
-
<head>
<title>CallHistoryObject_notexist</title>
<meta charset="utf-8">
-<script type="text/javascript" src="support/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
-
+<script>
//==== TEST: CallHistoryObject_notexist
//==== LABEL Check if CallHistoryObject not exist
-//==== SPEC: Tizen Web API:Social:Callhistory:CallHistoryObject:CallHistoryObject U
+//==== SPEC Tizen Web API:Social:Callhistory:CallHistoryObject:CallHistoryObject U
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== PRIORITY P3
//==== TEST_CRITERIA NIO
<meta charset="utf-8"/>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
-
+<script>
//==== TEST: CallHistory_addChangeListener
//==== LABEL Check if addChangeListener method works properly
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:addChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MMINA MR
+
test(function () {
var listener = {
onadded: function (newItems) {},
<meta name="assert" content="Check if addChangeListener method exists" />
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_addChangeListener_exist
//==== LABEL Check if addChangeListener method exists
//==== PRIORITY P0
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:addChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA ME
+
test(function () {
assert_true("addChangeListener" in tizen.callhistory, "CallHistory has addChangeListener method");
check_method_exists(tizen.callhistory, "addChangeListener");
-->
<html>
-
<head>
<title>CallHistory_addChangeListener_missarg</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_addChangeListener_missarg
//==== LABEL Check if addChangeListener called with missing non-optional argument throws an exception
//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:addChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MMA
+
test(function () {
assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
tizen.callhistory.addChangeListener();
-->
<html>
-
<head>
<title>CallHistory_addChangeListener_observer_TypeMismatch</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_addChangeListener_observer_TypeMismatch
//==== LABEL Check if addChangeListener throws exception when observer is incorrect
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:addChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MC
+
test(function () {
var conversionTable, observer, exceptionName, i;
<title>CallHistory_addChangeListener_observer_invalid_cb</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_addChangeListener_observer_invalid_cb
//==== LABEL Check if addChangeListener throws exception when observer is invalid
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:addChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MTL
+
test(function () {
var exceptionName, incorrectListeners, i, callHistoryChangeCallback;
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_addChangeListener_observer_onadded_invalid
//==== LABEL Check whether invoking 'addChangeListener' method with incorect onadded argument throws exception properly
//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:addChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MTL
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<title>CallHistory_addChangeListener_observer_onadded_null</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_addChangeListener_observer_onadded_null
//==== LABEL Check whether addChangeListener() registers listener with null onadded argument
//==== ONLOAD_DELAY 90
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MTL
//==== PRIORITY P2
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<title>CallHistory_addChangeListener_observer_onadded_undefined</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_addChangeListener_observer_onadded_undefined
//==== LABEL Check whether addChangeListener() registers listener with undefined onadded argument
//==== ONLOAD_DELAY 90
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MTL
//==== PRIORITY P2
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_addChangeListener_observer_onchanged_invalid
//==== LABEL Check whether invoking 'addChangeListener' method with incorect onchanged argument throws exception properly
//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:addChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MTL
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<title>CallHistory_addChangeListener_observer_onchanged_null</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_addChangeListener_observer_onchanged_null
//==== LABEL Check whether addChangeListener() registers listener with null onchanged argument
//==== ONLOAD_DELAY 90
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MTL
//==== PRIORITY P2
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<title>CallHistory_addChangeListener_observer_onchanged_undefined</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_addChangeListener_observer_onchanged_undefined
//==== LABEL Check whether addChangeListener() registers listener with undefined onchanged argument
//==== ONLOAD_DELAY 90
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MTL
//==== PRIORITY P2
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_addChangeListener_onadded
//==== LABEL Check whether addChangeListener() registers listener with onadded argument
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:addChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MMINA MR
+
test(function () {
var handle,
listener = {
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_addChangeListener_onchanged
//==== LABEL Check whether addChangeListener() registers listener with onchanged argument
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:addChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MMINA MR
+
test(function () {
var handle,
listener = {
-->
<html>
-
<head>
<title>CallHistory_extend</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_extend
//==== LABEL Check if callhistory object can have new properties added
//==== PRIORITY P3
-//==== SPEC: Tizen Web API:Social:Callhistory:CallHistory:CallHistory U
+//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:CallHistory U
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA OBX
+
test(function () {
check_extensibility(tizen.callhistory);
}, document.title);
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find
//==== LABEL Check if fetch call history items
//==== PRIORITY P1
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_errorCallback_TypeMismatch
//==== LABEL Check if find throws exception when errorCallback is incorrect
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MC
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_errorCallback_invalid_cb
//==== LABEL Check if find throws exception when error callback is incorrect
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MTCB
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_errorCallback_null
//==== LABEL Check whether find() method called with null errorCallback lists CallHistory items
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_errorCallback_null_filter
//==== LABEL Check whether find() method called with null errorCallback and specified filter lists CallHistory items
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_errorCallback_undefined
//==== LABEL Check whether find() method called with undefined errorCallback lists CallHistory items
//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MC
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_exist
//==== LABEL Check if find method exists
//==== PRIORITY P0
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA ME
+
test(function () {
assert_true("find" in tizen.callhistory, "CallHistory has find method");
check_method_exists(tizen.callhistory, "find");
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_filter
//==== LABEL Check if CallHistory items matching the supplied filter are found properly
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_filter_TypeMismatch
//==== LABEL Check if find throws exception when filter is incorrect
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MC
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_filter_compositeFilters
//==== LABEL Check whether find() method lists CallHistory items for various composite filters
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_filter_invalid_obj
//==== LABEL Check if find throws exception when filter is a simple object
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MTO
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_filter_null
//==== LABEL Check whether find() method called with null filter lists CallHistory items
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_filter_null_sortMode
//==== LABEL Check whether find() method called with null filter and specified sortMode lists CallHistory items
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_filter_rangeFilters
//==== LABEL Check whether find() method lists CallHistory items for various range filters
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_filter_sortMode_limit_null_offset
//==== LABEL Check whether find() method called with null filter, sortMode, limit and specified offset lists CallHistory items
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_filter_sortMode_null
//==== LABEL Check whether find() method called with null filter, null sortMode and specified limit lists CallHistory items
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_filter_undefined
//==== LABEL Check whether find() method called with undefined filter lists CallHistory items
//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MC
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_filter_various
//==== LABEL Check whether find() method lists CallHistory items for various filters
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_limit
//==== LABEL Check whether find() method called with successCallback, errorCallback, filter, sortMode and limit lists CallHistory items
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_limit_0
//==== LABEL Check if no limit the query result
//==== PRIORITY P1
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_limit_1
//==== LABEL Check whether find() method called with additional arguments lists CallHistory items
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_limit_2
//==== LABEL Check if limit the query result
//==== PRIORITY P1
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_limit_null
//==== LABEL Check whether find() method called with null filter, sortMode and limit lists CallHistory items
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
-->
<html>
-
<head>
<title>CallHistory_find_missarg</title>
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_missarg
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== LABEL Check if method called with missing non-optional argument throws an exception
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MMA
+
test(function () {
assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
tizen.callhistory.find();
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_nullableArgs_null
//==== LABEL Check if callhistory.find performs successCallback when all optional arguments are null
//==== PRIORITY P2
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_offset
//==== LABEL Check whether find() method called with successCallback, errorCallback, filter, sortMode limit and offset lists CallHistory items
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_offset_0
//==== LABEL Check if find() method calls successCallback function properly for offset equal 0
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_offset_null
//==== LABEL Check whether find() method called with null filter, sortMode, limit and offset lists CallHistory items
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_sortMode
//==== LABEL Check whether find() method called with successCallback, errorCallback, filter and sortMode lists CallHistory items
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_sortMode_TypeMismatch
//==== LABEL Check if find throws exception when sortMode is incorrect
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MC
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_sortMode_invalid_obj
//==== LABEL Check if find throws exception when sortMode is a simple object
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MTO
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_sortMode_null
//==== LABEL Check whether find() method called with null filter and sortMode lists CallHistory items
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_sortMode_undefined
//==== LABEL Check whether find() method called with null filter and undefined sortMode lists CallHistory items
//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MC
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_successCallback_TypeMismatch
//==== LABEL Check if find throws exception when successCallback is incorrect
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== ONLOAD_DELAY 90
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MC
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
-->
<html>
-
<head>
<title>CallHistory_find_successCallback_invalid_cb</title>
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_successCallback_invalid_cb
//==== LABEL Check if find throws exception when success callback is incorrect
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MTCB
+
test(function () {
var exceptionName = "TypeMismatchError", incorrectCallback;
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_with_errorCallback
//==== LABEL Check if find called with optional errorCallback works as expected
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_with_filter
//==== LABEL Check if find called with optional filter works as expected
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}), returnedValue = null,
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_with_limit
//==== LABEL Check if find called with optional limit works as expected
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
-->
<html>
-
<head>
<title>CallHistory_find_with_offset</title>
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_with_offset
//==== LABEL Check if find called with optional offset works as expected
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_with_sortMode
//==== LABEL Check if find called with optional sortMode works as expected
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}), returnedValue = null,
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_find_without_errorCallback
//==== LABEL Check if find() method calls successCallback function properly
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MMINA MR
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<title>CallHistory_in_tizen</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_in_tizen
//==== LABEL Check if CallHistory exists and implements methods
//==== PRIORITY P1
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA OBME
//==== PRIORITY P3
+
test(function () {
assert_true("callhistory" in tizen, "Tizen should implement CallHistoryObject");
<title>CallHistory_notexist</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_notexist
//==== LABEL Check if CallHistory cannot be called in new expression and as a function or in new expression
//==== PRIORITY P3
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:CallHistory U
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA NIO
+
test(function () {
check_no_interface_object("CallHistory");
}, document.title);
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_remove
//==== LABEL Check if delete a call history entry synchronously
//==== PRIORITY P1
<title>CallHistory_removeAll</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
-
+<script>
//==== TEST: CallHistory_removeAll
//==== LABEL Check if removeAll called without arguments works
//==== PRIORITY P1
test(function () {
var retVal = null;
+
retVal = tizen.callhistory.removeAll();
assert_equals(retVal, undefined, "wrong value returned by remove method");
}, document.title);
<title>CallHistory_removeAll_errorCallback_TypeMismatch</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeAll_errorCallback_TypeMismatch
//==== LABEL Check if removeAll throws exception when errorCallback is incorrect
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeAll M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MC
+
test(function () {
var conversionTable, successCallback, errorCallback, exceptionName, i;
<title>CallHistory_removeAll_errorCallback_invalid_cb</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeAll_errorCallback_invalid_cb
//==== LABEL Check if removeAll throws exception when errorCallback is invalid
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeAll M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MTCB
+
test(function () {
var exceptionName = "TypeMismatchError", onSuccess, incorrectCallback;
<meta name="assert" content="Check if removeAll method exists" />
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeAll_exist
//==== LABEL Check if removeAll method exists
//==== PRIORITY P0
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeAll M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA ME
+
test(function () {
assert_true("removeAll" in tizen.callhistory, "CallHistory has removeAll method");
check_method_exists(tizen.callhistory, "removeAll");
<title>CallHistory_removeAll_successCallback_TypeMismatch</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeAll_successCallback_TypeMismatch
//==== LABEL Check if removeAll throws exception when successCallback is incorrect
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeAll M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MC
+
test(function () {
var conversionTable, successCallback, exceptionName, i;
<title>CallHistory_removeAll_successCallback_invalid_cb</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeAll_successCallback_invalid_cb
//==== LABEL Check if removeAll throws exception when successCallback is invalid
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeAll M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MTCB
+
test(function () {
var exceptionName = "TypeMismatchError", incorrectCallback;
<title>CallHistory_removeAll_with_errorCallback</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeAll_with_errorCallback
//==== LABEL Check if removeAll called with optional errorCallback works as expected
//==== PRIORITY P1
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeAll M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MOA
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
-
+<script>
//==== TEST: CallHistory_removeAll_with_successCallback
//==== LABEL Check if removeAll called with optional successCallback works as expected - delete all call history
//==== PRIORITY P1
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeBatch
//==== LABEL Check if delete a list of call history entries asynchronously
//==== PRIORITY P1
-->
<html>
-
<head>
<title>CallHistory_removeBatch_entries_TypeMismatch</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeBatch_entries_TypeMismatch
//==== LABEL Check if removeBatch throws exception when entries is incorrect
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MC
+
test(function () {
var conversionTable, entries, exceptionName, i;
-->
<html>
-
<head>
<title>CallHistory_removeBatch_errorCallback_TypeMismatch</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeBatch_errorCallback_TypeMismatch
//==== LABEL Check if removeBatch throws exception when errorCallback is invalid
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MC
+
test(function () {
var conversionTable, successCallback, errorCallback, exceptionName, i;
<title>CallHistory_removeBatch_errorCallback_invalid_cb</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeBatch_errorCallback_invalid_cb
//==== LABEL Check if removeBatch throws exception when error callback is incorrect
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MTCB
+
test(function () {
var exceptionName = "TypeMismatchError", onSuccess, incorrectCallback;
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeBatch_errorCallback_null
//==== LABEL Check whether removeBatch() method called with null errorCallback deletes two entries from call history entries
//==== PRIORITY P1
-->
<html>
-
<head>
<title>CallHistory_removeBatch_errorCallback_undefined</title>
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeBatch_errorCallback_undefined
//==== LABEL Check whether removeBatch() method called with undefined errorCallback throws exception
//==== EXECUTION_TYPE manual
<meta name="assert" content="Check if removeBatch method exists" />
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeBatch_exist
//==== LABEL Check if removeBatch method exists
//==== PRIORITY P0
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA ME
+
test(function () {
assert_true("removeBatch" in tizen.callhistory, "CallHistory has removeBatch method");
check_method_exists(tizen.callhistory, "removeBatch");
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeBatch_findByDirection
//==== LABEL Check if find call history items by REJECTED and then delete them from call history entries
-//==== PRIORITY P1
-//==== EXECUTION_TYPE manual
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
-//==== TEST_CRITERIA MOA MAST
+//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
//==== PRE Make at least 1 REJECTED call
+//==== TEST_CRITERIA MOA MAST
executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.REJECTED, new Date()));
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeBatch_findByType
//==== LABEL Check if find call history entries by TEL and then delete all of them from call history entries
//==== PRIORITY P1
<title>CallHistory_removeBatch_missarg</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeBatch_missarg
//==== LABEL Check if removeBatch called with missing non-optional argument throws an exception
//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MMA
+
test(function () {
assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
tizen.callhistory.removeBatch();
-->
<html>
-
<head>
<title>CallHistory_removeBatch_successCallback_TypeMismatch</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeBatch_successCallback_TypeMismatch
//==== LABEL Check if removeBatch throws exception when successCallback is invalid
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MC
+
test(function () {
var conversionTable, successCallback, exceptionName, i;
<title>CallHistory_removeBatch_successCallback_invalid_cb</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeBatch_successCallback_invalid_cb
//==== LABEL Check if removeBatch throws exception when success callback is incorrect
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MTCB
+
test(function () {
var exceptionName = "TypeMismatchError", incorrectCallback;
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeBatch_successCallback_null
//==== LABEL Check whether removeBatch() method called with null successCallback deletes two entries from call history
//==== PRIORITY P1
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeBatch_successCallback_undefined
//==== LABEL Check whether removeBatch() method called with undefined successCallback throws exception
-//==== EXECUTION_TYPE manual
-//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
-//==== TEST_CRITERIA MC
+//==== EXECUTION_TYPE manual
//==== PRE Make at least 3 existence call history
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
-->
<html>
-
<head>
<title>CallHistory_removeBatch_with_errorCallback</title>
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeBatch_with_errorCallback
//==== LABEL Check if removeBatch called with optional errorCallback works as expected
-//==== PRIORITY P1
-//==== EXECUTION_TYPE manual
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
-//==== TEST_CRITERIA MOA MAST
+//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
//==== PRE Make an existence call history
+//==== TEST_CRITERIA MOA MAST
executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeBatch_with_successCallback
//==== LABEL Check if removeBatch called with optional successCallback works as expected
-//==== PRIORITY P1
-//==== EXECUTION_TYPE manual
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
-//==== TEST_CRITERIA MOA MR
+//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
//==== PRE Make an existence call history
+//==== TEST_CRITERIA MOA MR
executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
<title>CallHistory_removeChangeListener</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeChangeListener
//==== LABEL Check if unregister a previously registered listener
//==== PRIORITY P1
<meta name="assert" content="Check if removeChangeListener method exists" />
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_removeChangeListener_exist
//==== LABEL Check if removeChangeListener method exists
//==== PRIORITY P0
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA ME
+
test(function () {
assert_true("removeChangeListener" in tizen.callhistory, "CallHistory has removeChangeListener method");
check_method_exists(tizen.callhistory, "removeChangeListener");
-->
<html>
-
<head>
<title>CallHistory_remove_entry_TypeMismatch</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_remove_entry_TypeMismatch
//==== LABEL Check if remove throws exception when entry is incorrect
-//==== PRIORITY: P2
+//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:remove M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MC
+
test(function () {
var conversionTable, entry, exceptionName, i;
<meta name="assert" content="Check if remove method exists" />
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_remove_exist
//==== LABEL Check if remove method exists
//==== PRIORITY P0
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:remove M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA ME
+
test(function () {
assert_true("remove" in tizen.callhistory, "CallHistory has remove method");
check_method_exists(tizen.callhistory, "remove");
<script src="support/unitcommon.js"></script>
<script src="support/callcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_remove_findBySortMode
//==== LABEL Check if find call history items by startTime desc and then delete the first call history entry
//==== PRIORITY P1
-->
<html>
-
<head>
<title>CallHistory_remove_missarg</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: CallHistory_remove_missarg
//==== LABEL Check if remove called with missing non-optional argument throws an exception
//==== PRIORITY P2
//==== SPEC Tizen Web API:Social:Callhistory:CallHistory:remove M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA MMA
+
test(function () {
assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
tizen.callhistory.remove();
<title>RemoteParty_notexist</title>
<script src="support/unitcommon.js"></script>
</head>
-
<body>
<div id="log"></div>
-<script type="text/javascript">
+<script>
//==== TEST: RemoteParty_notexist
//==== LABEL Check if RemoteParty cannot be called in new expression and as a function or in new expression
-//==== PRIORITY: P3
-//==== SPEC: Tizen Web API:Social:Callhistory:RemoteParty:RemoteParty U
+//==== PRIORITY P3
+//==== SPEC Tizen Web API:Social:Callhistory:RemoteParty:RemoteParty U
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
//==== TEST_CRITERIA NIO
+
test(function () {
check_no_interface_object("RemoteParty");
}, document.title);