[CallHistory] review
authorWitold Choinkowski <w.choinkowsk@samsung.com>
Fri, 4 Oct 2013 14:16:53 +0000 (16:16 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 8 Oct 2013 12:44:51 +0000 (12:44 +0000)
Change-Id: Ia1da083d9184b242c12e3f1e04aab9afd0d6774f

111 files changed:
tct-callhistory-tizen-tests/callhistory/CallHistoryChangeCallback_notexist.html
tct-callhistory-tizen-tests/callhistory/CallHistoryChangeCallback_onadded.html
tct-callhistory-tizen-tests/callhistory/CallHistoryChangeCallback_onchanged.html
tct-callhistory-tizen-tests/callhistory/CallHistoryChangeCallback_onremoved.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntryArraySuccessCallback_notexist.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntryArraySuccessCallback_onsuccess.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_DIALED.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSED.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSEDNEW.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_RECEIVED.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_REJECTED.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_attribute.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_features_VOICECALL.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_notexist.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_type_TEL.html
tct-callhistory-tizen-tests/callhistory/CallHistoryObject_notexist.html
tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener.html
tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_exist.html
tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_missarg.html
tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_TypeMismatch.html
tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_invalid_cb.html
tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onadded_invalid.html
tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onadded_null.html
tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onadded_undefined.html
tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onchanged_invalid.html
tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onchanged_null.html
tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onchanged_undefined.html
tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_onadded.html
tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_onchanged.html
tct-callhistory-tizen-tests/callhistory/CallHistory_extend.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_errorCallback_TypeMismatch.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_errorCallback_invalid_cb.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_errorCallback_null.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_errorCallback_null_filter.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_errorCallback_undefined.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_exist.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_TypeMismatch.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_compositeFilters.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_invalid_obj.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_null.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_null_sortMode.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_rangeFilters.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_sortMode_limit_null_offset.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_sortMode_null.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_undefined.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_various.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_0.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_1.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_2.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_null.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_missarg.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_nullableArgs_null.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_offset.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_offset_0.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_offset_null.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_sortMode.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_sortMode_TypeMismatch.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_sortMode_invalid_obj.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_sortMode_null.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_sortMode_undefined.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_successCallback_TypeMismatch.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_successCallback_invalid_cb.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_with_errorCallback.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_with_filter.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_with_limit.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_with_offset.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_with_sortMode.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_without_errorCallback.html
tct-callhistory-tizen-tests/callhistory/CallHistory_in_tizen.html
tct-callhistory-tizen-tests/callhistory/CallHistory_notexist.html
tct-callhistory-tizen-tests/callhistory/CallHistory_remove.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_errorCallback_TypeMismatch.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_errorCallback_invalid_cb.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_exist.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_successCallback_TypeMismatch.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_successCallback_invalid_cb.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_with_errorCallback.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_with_successCallback.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_entries_TypeMismatch.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_TypeMismatch.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_invalid_cb.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_null.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_undefined.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_exist.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByDirection.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByType.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_missarg.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_TypeMismatch.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_invalid_cb.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_null.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_undefined.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_errorCallback.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_successCallback.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeChangeListener.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeChangeListener_exist.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeChangeListener_handle_InvalidValue.html
tct-callhistory-tizen-tests/callhistory/CallHistory_remove_entry_TypeMismatch.html
tct-callhistory-tizen-tests/callhistory/CallHistory_remove_exist.html
tct-callhistory-tizen-tests/callhistory/CallHistory_remove_findBySortMode.html
tct-callhistory-tizen-tests/callhistory/CallHistory_remove_missarg.html
tct-callhistory-tizen-tests/callhistory/RemoteParty_notexist.html
tct-callhistory-tizen-tests/callhistory/support/unitcommon.js [new file with mode: 0644]
tct-callhistory-tizen-tests/resources/unitcommon.js [deleted file]
tct-callhistory-tizen-tests/tests.full.xml
tct-callhistory-tizen-tests/tests.xml

index bc1cdfb55082c78c5f17c4edc74a1c4308d14a27..02fe35087a9f43d1596a8b7363a79f2fe4b317cc 100644 (file)
@@ -22,21 +22,22 @@ Authors:
 <html>
 <head>
 <title>CallHistoryChangeCallback_notexist</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistoryChangeCallback_notexist
-//==== LABEL: Check if CallHistoryChangeCallback cannot be called in new expression and as a function
+//==== 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_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
+//==== 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");
-}, "CallHistoryChangeCallback_notexist");
+}, document.title);
+
 </script>
 </body>
 </html>
index 9766eb809cd9045e14d32a92a51a4c14a6d7339a..bf78f0d5435e3d42156537b9749d1aa487e48b1c 100644 (file)
@@ -22,21 +22,21 @@ Authors:
 <html>
 <head>
 <title>CallHistoryChangeCallback_onadded</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistoryChangeCallback_onadded
-//==== LABEL: Check if CallHistoryChangeCallback onadded is called and if its arguments have proper type
+//==== LABEL Check if CallHistoryChangeCallback onadded is called and if its arguments have proper type
 //==== EXECUTION_TYPE manual
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA CBT CBOA
 setup({timeout: 90000});
 
-var t = async_test("CallHistoryChangeCallback_onadded", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     listener, handle;
 
 t.step(function () {
@@ -77,6 +77,7 @@ t.step(function () {
 
     confirm("Please make a call, end it and then click the button OK");
 });
+
 </script>
 </body>
 </html>
index 74b87ca8d143a0796a90ea5b2cab31127e08cbe8..69d2283f840d064cbe493494f912e4ebe5e03f89 100644 (file)
@@ -23,23 +23,23 @@ Authors:
 
 <head>
 <title>CallHistoryChangeCallback_onchanged</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistoryChangeCallback_onchanged
-//==== LABEL: Check if CallHistoryChangeCallback onchanged is called properly
+//==== LABEL Check if CallHistoryChangeCallback onchanged is called properly
 //==== EXECUTION_TYPE: manual
 //==== 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
+//==== 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
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistoryChangeCallback_onchanged", { timeout: 90000 }), onListenerCB, handle;
+var t = async_test(document.title, {timeout: 90000}), onListenerCB, handle;
 
 t.step(function () {
     onListenerCB = {
@@ -80,6 +80,7 @@ t.step(function () {
 
     confirm("Please touch missed call and then click the button OK");
 });
+
 </script>
 </body>
 </html>
index 4d07da697187fe8048dd92d247712b3419d83d8b..2ad60a7da7d19de65301c0cf9df0fdfff5d238d1 100644 (file)
@@ -23,22 +23,22 @@ Authors:
 
 <head>
 <title>CallHistoryChangeCallback_onremoved</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistoryChangeCallback_onremoved
-//==== LABEL: Check if CallHistoryChangeCallback onremoved is called properly
+//==== LABEL Check if CallHistoryChangeCallback onremoved is called properly
 //==== EXECUTION_TYPE: manual
 //==== 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
+//==== 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("CallHistoryChangeCallback_onremoved", { timeout: 90000 }), onListenerCB, handle;
+setup({timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), onListenerCB, handle;
 
 t.step(function () {
     onListenerCB = {
@@ -57,6 +57,7 @@ t.step(function () {
 
     confirm("Please remove call and then click the button OK");
 });
+
 </script>
 </body>
 </html>
index e560bd4de5ec08b62fd2b7be6397a91eb6134a1e..a398daad2b7e5837234da9713feea21a31c7a72e 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <html>
 <head>
 <title>CallHistoryEntry</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistoryEntry
-//==== LABEL check CallHistoryEntry attributes and functions
+//==== LABEL Check CallHistoryEntry attributes and functions
 //==== PRIORITY P3
 //==== EXECUTION_TYPE: manual
 //==== STEP several tests executed from base test
@@ -60,7 +60,7 @@ Authors:
 //==== PRE: Make an existence call history
 setup({timeout: 90000});
 
-var t = async_test("CallHistoryEntry", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     onSuccess, onError, result, tmp, i, remotePartie;
 
 t.step(function () {
@@ -171,6 +171,7 @@ t.step(function () {
 
     tizen.callhistory.find(onSuccess, onError);
 });
+
 </script>
 </body>
 </html>
index 411ceeb391c60c29103029bb2cccf37008f2ca01..aa4617b6ddad12a67f99b2cdcef25878cb34d34a 100644 (file)
@@ -22,21 +22,22 @@ Authors:
 <html>
 <head>
 <title>CallHistoryEntryArraySuccessCallback_notexist</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistoryEntryArraySuccessCallback_notexist
-//==== LABEL: Check if CallHistoryEntryArraySuccessCallback cannot be called in new expression and as a function
+//==== 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_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
+//==== 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");
-}, "CallHistoryEntryArraySuccessCallback_notexist");
+}, document.title);
+
 </script>
 </body>
 </html>
index 5c3b9b5411dc36ab82aeb802a35aa47675331e3e..1818e94708ccc9ca40955df2b358a11005947e81 100644 (file)
@@ -22,8 +22,8 @@ Authors:
 <html>
 
 <head>
-<title>CallHistoryChangeCallback_onsuccess</title>
-<script src="../resources/unitcommon.js"></script>
+<title>CallHistoryEntryArraySuccessCallback_onsuccess</title>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -31,16 +31,16 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistoryEntryArraySuccessCallback_onsuccess
-//==== LABEL: Check if CallHistoryEntryArraySuccessCallback onsuccess is called properly
+//==== LABEL Check if CallHistoryEntryArraySuccessCallback onsuccess is called properly
 //==== EXECUTION_TYPE: manual
 //==== 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
+//==== 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
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistoryEntryArraySuccessCallback_onsuccess", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     onSuccess, onError;
 
 t.step(function () {
@@ -80,6 +80,7 @@ t.step(function () {
 
     tizen.callhistory.find(onSuccess, onError);
 });
+
 </script>
 </body>
 </html>
index 8574752d6bb9da19cca2cb6b2b1c45173bd17938..880fb897404648616365e19adcc347c142b810a1 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -34,7 +34,7 @@ Authors:
 <html>
 <head>
 <title>CallHistoryEntry_direction_DIALED</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -51,7 +51,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistoryEntry_direction_DIALED", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, expected = "DIALED",
     filter = new tizen.AttributeFilter("direction", "EXACTLY", expected);
 
@@ -69,6 +69,7 @@ t.step(function () {
 
     tizen.callhistory.find(findSuccess, findError, filter);
 });
+
 </script>
 </body>
 </html>
index 6e07f13756b2e51a7f92f809564e8697683ea3a0..321a0f544a32081959b39023cab9833a55fb7088 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -34,7 +34,7 @@ Authors:
 <html>
 <head>
 <title>CallHistoryEntry_direction_MISSED</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -51,7 +51,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistoryEntry_direction_MISSED", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, expected = "MISSED",
     filter = new tizen.AttributeFilter("direction", "EXACTLY", expected);
 
@@ -69,6 +69,7 @@ t.step(function () {
 
     tizen.callhistory.find(findSuccess, findError, filter);
 });
+
 </script>
 </body>
 </html>
index 3f081235bd2f408965a55b85fcd565d3734fc33a..d66cbb4f1b4a480731a416f4095ee447025720d1 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -34,7 +34,7 @@ Authors:
 <html>
 <head>
 <title>CallHistoryEntry_direction_MISSEDNEW</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -51,7 +51,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistoryEntry_direction_MISSEDNEW", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, expected = "MISSEDNEW",
     filter = new tizen.AttributeFilter("direction", "EXACTLY", expected);
 
@@ -69,6 +69,7 @@ t.step(function () {
 
     tizen.callhistory.find(findSuccess, findError, filter);
 });
+
 </script>
 </body>
 </html>
index e8646cf99f37fa2a668f434b73dd008bd73ef4c3..96100bbdc4d80a9614951f453e10050521f0ad72 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -34,7 +34,7 @@ Authors:
 <html>
 <head>
 <title>CallHistoryEntry_direction_RECEIVED</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -51,7 +51,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistoryEntry_direction_RECEIVED", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, expected = "RECEIVED",
     filter = new tizen.AttributeFilter("direction", "EXACTLY", expected);
 
@@ -69,6 +69,7 @@ t.step(function () {
 
     tizen.callhistory.find(findSuccess, findError, filter);
 });
+
 </script>
 </body>
 </html>
index 3a0c992c5e0504280524115c975aa0b007dd3b8a..1ac0bb43f40e06d696b29ada68aa418abac117af 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -34,7 +34,7 @@ Authors:
 <html>
 <head>
 <title>CallHistoryEntry_direction_REJECTED</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -51,7 +51,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistoryEntry_direction_REJECTED", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, expected = "REJECTED",
     filter = new tizen.AttributeFilter("direction", "EXACTLY", expected);
 
@@ -69,6 +69,7 @@ t.step(function () {
 
     tizen.callhistory.find(findSuccess, findError, filter);
 });
+
 </script>
 </body>
 </html>
index 35c2310958f6b4291757513957d6a521208ba2af..33f76484f369bf145036358a4b3c16efedee57ac 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <html>
 <head>
 <title>CallHistoryEntry_direction_attribute</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -31,16 +31,16 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistoryEntry_direction_attribute
-//==== LABEL: Check if CallHistoryEntry have direction attribute with proper type, not null
+//==== LABEL Check if CallHistoryEntry have direction attribute with proper type, not null
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA AE AT AVL ASG AN
 //==== PRE: Make an existence call history with one new missed call which was not seen
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistoryEntry_direction_attribute", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     onSuccess, onError, result, i, tmp;
 
 t.step(function () {
@@ -61,7 +61,7 @@ t.step(function () {
 
             tmp = result.direction;
             result.direction = null;
-            assert_equals(result.direction, tmp ,"possible assign null to direction");
+            assert_equals(result.direction, tmp , "possible assign null to direction");
 
             if(result.direction === "MISSEDNEW") {
                 result.direction = "MISSED";
@@ -74,6 +74,7 @@ t.step(function () {
 
     tizen.callhistory.find(onSuccess, onError);
 });
+
 </script>
 </body>
 </html>
index f51d21ca04bdd5d5615f87597083bfd27f8e657a..c0562560d62bb5685da10cb0a5c44114abf68e96 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -34,7 +34,7 @@ Authors:
 <html>
 <head>
 <title>CallHistoryEntry_features_VOICECALL</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -51,7 +51,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistoryEntry_features_VOICECALL", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, expected = "VOICECALL",
     filter = new tizen.AttributeFilter("features", "EXACTLY", expected);
 
@@ -70,6 +70,7 @@ t.step(function () {
 
     tizen.callhistory.find(findSuccess, findError, filter);
 });
+
 </script>
 </body>
 </html>
index eda5ddf7313665c7bbedfb4f40098893eeb58344..aeca4aea4a9d9ee7b3c0e97231046421da749220 100644 (file)
@@ -22,21 +22,22 @@ Authors:
 <html>
 <head>
 <title>CallHistoryEntry_notexist</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistoryEntry_notexist
-//==== LABEL: Check if CallHistoryEntry cannot be called in new expression and as a function or in new expression
+//==== 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
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
+//==== 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");
-}, "CallHistoryEntry_notexist");
+}, document.title);
+
 </script>
 </body>
 </html>
index 76a0141483e87736505141dbfe8dc283cdcdf2c9..32aa1846d40736a004ca8d9913fe3289b1745e4e 100644 (file)
@@ -26,18 +26,18 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
-<title>Callhistory Test: CallHistoryEntry_type_TEL</title>
+<title>CallHistoryEntry_type_TEL</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/callhistory.html" />
 <meta name="flags" content="" />
 <meta name="assert" content="Check if attribute type value is TEL" />
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 <body>
@@ -53,10 +53,9 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistoryEntry_type_TEL", { timeout: 90000 });
+var t = async_test(document.title, {timeout: 90000}), onSuccess, onError, filter, expected = "TEL";
 
 t.step(function () {
-    var onSuccess, onError, filter, expected = "TEL";
 
     filter = new tizen.AttributeFilter("type", "EXACTLY", expected);
 
@@ -73,6 +72,7 @@ t.step(function () {
 
     tizen.callhistory.find(onSuccess, onError, filter);
 });
+
 </script>
 </body>
 </html>
index c4f3d1596707c7277555eeb4033db23dbce8adc7..54dc42dcdf95a5fae8c6ae1dcbe1fec167a3e681 100644 (file)
@@ -24,12 +24,12 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 
 <head>
 <title>CallHistoryObject_notexist</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -37,15 +37,15 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: CallHistoryObject_notexist
-//==== LABEL check if CallHistoryObject not exist
+//==== LABEL Check if CallHistoryObject not exist
 //==== 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
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== PRIORITY P3
 //==== TEST_CRITERIA NIO
 
 test(function () {
     check_no_interface_object("CallHistoryObject");
-}, "CallHistoryObject_notexist");
+}, document.title);
 
 </script>
 </body>
index b4f96132723691486dc1b5388b274cab99bf6673..a0f6216a7b0ab1730f323f52612b44f9b2eb3bcc 100644 (file)
@@ -26,17 +26,17 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Guan,JingX <jingx.guan@intel.com>
+        Guan, JingX <jingx.guan@intel.com>
         HaoYunfen <yunfenx.hao@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
 
-<html lang="en">
+<html>
 <head>
 <title>CallHistory_addChangeListener</title>
 <meta charset="utf-8"/>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -61,7 +61,8 @@ test(function () {
     } finally {
         tizen.callhistory.removeChangeListener(handle);
     }
-}, "CallHistory_addChangeListener");
+}, document.title);
+
 </script>
 </body>
 </html>
index 5ba296f41c336fa35a974839b7b059e0090dc22b..f2c05d3a365e9c253cfc3b3880589300941b9b21 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Guan,JingX <jingx.guan@intel.com>
+        Guan, JingX <jingx.guan@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -38,7 +38,7 @@ Authors:
 <link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html" />
 <meta name="flags" content="" />
 <meta name="assert" content="Check if addChangeListener method is exist and can be overriden" />
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -49,10 +49,11 @@ Authors:
 //==== 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() {
+test(function () {
     assert_true("addChangeListener" in tizen.callhistory, "CallHistory has addChangeListener method");
     check_method_exists(tizen.callhistory, "addChangeListener");
-}, "CallHistory_addChangeListener_exist");
+}, document.title);
+
 </script>
 </body>
 </html>
index 84b5466ff6772cc3d055c38b5e556d9dbb473c64..b290de179cac82fb29397a91745284461972ec61 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 
 <head>
 <title>CallHistory_addChangeListener_missarg</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -34,11 +34,12 @@ Authors:
 //==== 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({ name: "TypeMismatchError" }, function () {
+test(function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         tizen.callhistory.addChangeListener();
     }, "Method should throw an exception");
-}, "CallHistory_addChangeListener_missarg");
+}, document.title);
+
 </script>
 </body>
 </html>
index ac3c4cf44b7f5d4abf0ef49e5777d43debdbb3c0..acee71603db787a7a229ea2835fefa0eec57dac2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 
 <head>
 <title>CallHistory_addChangeListener_observer_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -35,7 +35,7 @@ Authors:
 //==== 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() {
+test(function () {
     var conversionTable, observer, exceptionName, i;
 
     conversionTable = getTypeConversionExceptions("object", false);
@@ -49,7 +49,8 @@ test(function() {
                 tizen.callhistory.addChangeListener(observer);
             }, exceptionName + " should be thrown - given incorrect listener.");
     }
-});
+}, document.title);
+
 </script>
 </body>
 </html>
index 83f92fb49d5349012eaa137b9b38cadee996194f..ed9e00e4e495640a36410c5504d8be2b70a8e9c0 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_addChangeListener_observer_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -34,7 +34,7 @@ Authors:
 //==== 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() {
+test(function () {
     var exceptionName, incorrectListeners, i, callHistoryChangeCallback;
 
     incorrectListeners = getListenerConversionExceptions(["onadded", "onchanged", "onremoved"]);
@@ -42,13 +42,14 @@ test(function() {
         callHistoryChangeCallback  = incorrectListeners[i][0];
         exceptionName = incorrectListeners[i][1];
 
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
            function () {
                 tizen.callhistory.addChangeListener(callHistoryChangeCallback);
             }, exceptionName + " should be thrown - given incorrect listener.");
     }
 
-}, "CallHistory_addChangeListener_observer_invalid_cb");
+}, document.title);
+
 </script>
 </body>
 </html>
index feda5d3eacd823e652233462b005e1bbdfb8e7d1..23266743b9f51600ff00687b69495386af60e778 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_addChangeListener_observer_onadded_invalid</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_addChangeListener_observer_onadded_invalid
-//==== LABEL check whether invoking 'addChangeListener' method with incorect onadded argument throws exception properly
+//==== LABEL Check whether invoking 'addChangeListener' method with incorect onadded argument throws exception properly
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:addChangeListener M
@@ -38,7 +38,7 @@ Authors:
 //==== TEST_CRITERIA MTL
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_addChangeListener_observer_onadded_invalid", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     listener;
 
 t.step(function () {
@@ -49,14 +49,13 @@ t.step(function () {
         })
     };
 
-    assert_throws({
-        name: TYPE_MISMATCH_ERR
-    }, function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         tizen.callhistory.addChangeListener(listener);
     });
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index b398c7cbb0e6b9f165a62692acd608c6e4738b46..41fcd7da16c49bb8c5ccb7a9f12d5e19cf112933 100644 (file)
@@ -22,14 +22,14 @@ Authors:
 <html>
 <head>
 <title>CallHistory_addChangeListener_observer_onadded_null</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_addChangeListener_observer_onadded_null
-//==== LABEL check whether addChangeListener() registers listener with null onadded argument
+//==== LABEL Check whether addChangeListener() registers listener with null onadded argument
 //==== ONLOAD_DELAY 90
 //==== 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
@@ -37,7 +37,7 @@ Authors:
 //==== PRIORITY P2
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_addChangeListener_observer_onadded_null", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     listener, exceptionName = "TypeMismatchError";
 
 t.step(function () {
@@ -55,6 +55,7 @@ t.step(function () {
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index cd456ec6ed633118aa1d57dba1892bda94391df4..1f90e09b54565f3b1b1aaec30de5b652f16c90f5 100644 (file)
@@ -22,14 +22,14 @@ Authors:
 <html>
 <head>
 <title>CallHistory_addChangeListener_observer_onadded_undefined</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_addChangeListener_observer_onadded_undefined
-//==== LABEL check whether addChangeListener() registers listener with undefined onadded argument
+//==== LABEL Check whether addChangeListener() registers listener with undefined onadded argument
 //==== ONLOAD_DELAY 90
 //==== 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
@@ -37,7 +37,7 @@ Authors:
 //==== PRIORITY P2
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_addChangeListener_observer_onadded_undefined", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     listener, exceptionName = "TypeMismatchError";
 
 t.step(function () {
@@ -55,6 +55,7 @@ t.step(function () {
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index cb54abdfc1f927546053e6bd4e4b98814af63552..ad72a1a550b6af75683197e3b633b37bdead9245 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_addChangeListener_observer_onchanged_invalid</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,15 +30,15 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_addChangeListener_observer_onchanged_invalid
-//==== LABEL check whether invoking 'addChangeListener' method with incorect onchanged argument throws exception properly
+//==== LABEL Check whether invoking 'addChangeListener' method with incorect onchanged argument throws exception properly
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== 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#addChangeListenerid2509112
+//==== 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("CallHistory_addChangeListener_observer_onchanged_invalid", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     listener;
 
 t.step(function () {
@@ -49,14 +49,13 @@ t.step(function () {
         onchanged: 1234
     };
 
-    assert_throws({
-        name: TYPE_MISMATCH_ERR
-    }, function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         tizen.callhistory.addChangeListener(listener);
     });
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index ac845ff646fef720dbe0a2cb4cfbe9cf642f7c1d..31a3ce36cb6852f05eac2390ee7882b031eab28b 100644 (file)
@@ -22,14 +22,14 @@ Authors:
 <html>
 <head>
 <title>CallHistory_addChangeListener_observer_onchanged_null</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_addChangeListener_observer_onchanged_null
-//==== LABEL check whether addChangeListener() registers listener with null onchanged argument
+//==== LABEL Check whether addChangeListener() registers listener with null onchanged argument
 //==== ONLOAD_DELAY 90
 //==== 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
@@ -37,7 +37,7 @@ Authors:
 //==== PRIORITY P2
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_addChangeListener_observer_onchanged_null", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     listener, exceptionName = "TypeMismatchError";
 
 t.step(function () {
@@ -55,6 +55,7 @@ t.step(function () {
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index 36faa6ff698c7882cd424834bafcd17b09b2c124..920e53d855b84006e4e834a6e9c97043b5be547d 100644 (file)
@@ -22,14 +22,14 @@ Authors:
 <html>
 <head>
 <title>CallHistory_addChangeListener_observer_onchanged_undefined</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_addChangeListener_observer_onchanged_undefined
-//==== LABEL check whether addChangeListener() registers listener with undefined onchanged argument
+//==== LABEL Check whether addChangeListener() registers listener with undefined onchanged argument
 //==== ONLOAD_DELAY 90
 //==== 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
@@ -37,7 +37,7 @@ Authors:
 //==== PRIORITY P2
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_addChangeListener_observer_onchanged_undefined", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     listener, exceptionName = "TypeMismatchError";
 
 t.step(function () {
@@ -55,6 +55,7 @@ t.step(function () {
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index 89f6b93834f4809f76bb885c0267b03d21d83900..b2988d2a931d6b0471f96e4421c3944a1c98f170 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_addChangeListener_onadded</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_addChangeListener_onadded
-//==== LABEL check whether addChangeListener() registers listener with onadded argument
+//==== LABEL Check whether addChangeListener() registers listener with onadded argument
 //==== 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
@@ -46,7 +46,8 @@ test(function () {
     } finally {
         tizen.callhistory.removeChangeListener(handle);
     }
-}, "CallHistory_addChangeListener_onadded");
+}, document.title);
+
 </script>
 </body>
 </html>
index 5607a40b4ccb8a3b152f323b0e356d289dbb40c4..5724f314ef021f6072f21877cebc1461a959834a 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_addChangeListener_onchanged</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_addChangeListener_onchanged
-//==== LABEL check whether addChangeListener() registers listener with onchanged argument
+//==== LABEL Check whether addChangeListener() registers listener with onchanged argument
 //==== 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
@@ -46,7 +46,8 @@ test(function () {
     } finally {
         tizen.callhistory.removeChangeListener(handle);
     }
-}, "CallHistory_addChangeListener_onchanged");
+}, document.title);
+
 </script>
 </body>
 </html>
index 5be8ded296f519a01ee1289c8b92758045741ab0..fcbccde29eae6d75be192a35fa3a8369de61fbf9 100644 (file)
@@ -23,21 +23,22 @@ Authors:
 
 <head>
 <title>CallHistory_extend</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_extend
-//==== LABEL: Check if callhistory object can have new properties added
+//==== LABEL Check if callhistory object can have new properties added
 //==== 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
+//==== 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);
-}, "CallHistory_extend");
+}, document.title);
+
 </script>
 </body>
 </html>
index 94273174aa3ab3df18de33a36abf4201c7837b3d..c0ba9ced855330769df52555e7e91a04ead9eb46 100644 (file)
@@ -26,8 +26,8 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Guan,JingX <jingx.guan@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Guan, JingX <jingx.guan@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
         Mariusz Polasinski <m.polasinski@samsung.com>
 
@@ -36,7 +36,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -53,7 +53,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find", { timeout: 90000 }), returnedValue = null,
+var t = async_test(document.title, {timeout: 90000}), returnedValue = null,
     findSuccess, findError;
 
 t.step(function () {
@@ -83,6 +83,7 @@ t.step(function () {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError);
 });
+
 </script>
 </body>
 </html>
index 9037d4d13bbc886f2f85e414ba1e85e9bf933969..d00a8485cbd73b376a142b52249e0a38db27bc81 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_errorCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_errorCallback_TypeMismatch", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     conversionTable, findSuccess, errorCallback, exceptionName, i;
 
 t.step(function () {
@@ -60,6 +60,7 @@ t.step(function () {
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index ead7e4d0e5094ad36ee1d64e641d075d7889d645..729c856da4f3e21adec08eeb9d8bdb45a91442b3 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_errorCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -38,13 +38,13 @@ Authors:
 //==== TEST_CRITERIA MTCB
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_errorCallback_invalid_cb", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     exceptionName = "TypeMismatchError", findSuccess, incorrectCallback;
 
 t.step(function () {
 
     incorrectCallback = {
-        onerror: t.step_func(function(error) {
+        onerror: t.step_func(function (error) {
             assert_unreached("Invalid errorCallback invoked: " + error.name + ": " + error.message);
         })
     };
@@ -53,13 +53,14 @@ t.step(function () {
         assert_unreached("find() success callback invoked.");
     });
 
-    assert_throws({name : exceptionName},
+    assert_throws({name: exceptionName},
         function () {
             tizen.callhistory.find(findSuccess, incorrectCallback);
         }, exceptionName + "should be thrown - given incorrect error callback.");
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index b449f866de46ebc468a7fd538306c1511563e4ea..15cb4b594320047c1c2d0ec5e5d262dd0c71fc8f 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_errorCallback_null</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -31,14 +31,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_errorCallback_null
-//==== LABEL check whether find() method called with null errorCallback lists CallHistory items
+//==== LABEL Check whether find() method called with null errorCallback lists CallHistory items
 //==== 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 MOA MR
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_errorCallback_null", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, returnedValue = null;
 
 t.step(function () {
@@ -50,6 +50,7 @@ t.step(function () {
 
     returnedValue = tizen.callhistory.find(findSuccess, null);
 });
+
 </script>
 </body>
 </html>
index 8075e4881a63b107e095c19e6b9a1dec44a1603e..f9f7641b98e73efcdee7a0462da7ea1f61d9da7b 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_errorCallback_null_filter</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,14 +30,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_errorCallback_null_filter
-//==== LABEL check whether find() method called with null errorCallback and specified filter lists CallHistory items
+//==== LABEL Check whether find() method called with null errorCallback and specified filter lists CallHistory items
 //==== 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#findid2508192
+//==== 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("CallHistory_find_errorCallback_null_filter", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, returnedValue = null;
 
 t.step(function () {
@@ -48,6 +48,7 @@ t.step(function () {
     });
     returnedValue = tizen.callhistory.find(findSuccess, null, FILTER_TYPE_1);
 });
+
 </script>
 </body>
 </html>
index 23e17a0f7bc5dd9b306d3bfe19688c170552fc85..6f2b07072750796194417461b318611c7542991e 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_errorCallback_undefined</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -32,15 +32,15 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_errorCallback_undefined
-//==== LABEL check whether find() method called with undefined errorCallback lists CallHistory items
+//==== LABEL Check whether find() method called with undefined errorCallback lists CallHistory items
 //==== 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
+//==== 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("CallHistory_find_errorCallback_undefined", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, exceptionName = "TypeMismatchError";
 
 t.step(function () {
@@ -55,6 +55,7 @@ t.step(function () {
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index 7ef0f0c26074c0f2cdf01a6c57c4a0891ea751a9..286b4d2ac04029c058f5c919cddfd0a1e4594779 100644 (file)
@@ -26,18 +26,18 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Guan,JingX <jingx.guan@intel.com>
+        Guan, JingX <jingx.guan@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
 
 <html>
 <head>
-<title>Test: CallHistory_find_exist</title>
+<title>CallHistory_find_exist</title>
 <link rel="author" title="Intel" href="http://www.intel.com" />
 <meta name="flags" content="" />
 <meta name="assert" content="Check if find method is exist and can be overriden" />
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -49,10 +49,11 @@ Authors:
 //==== 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() {
+test(function () {
     assert_true("find" in tizen.callhistory, "CallHistory has find method");
     check_method_exists(tizen.callhistory, "find");
-}, "CallHistory_find_exist");
+}, document.title);
+
 </script>
 </body>
 </html>
index 829d7a150a362201bb6106d43199deeced141073..9e82b054f3d87da4bf9e65109fc174ae18052d68 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_filter</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,14 +30,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_filter
-//==== LABEL check if CallHistory items matching the supplied filter are found properly
+//==== LABEL Check if CallHistory items matching the supplied filter are found properly
 //==== 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 MOA MR
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_filter", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findError, findSuccess, returnedValue = null;
 
 t.step(function () {
@@ -53,6 +53,7 @@ t.step(function () {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, FILTER_TYPE_1);
 });
+
 </script>
 </body>
 </html>
index 90a4be783d3cad940c0825e2fa50674a93a1b801..bd053585d5d91c48b564b8a981292a3315d602d4 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_filter_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_filter_TypeMismatch", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     exceptionName = "TypeMismatchError", conversionTable, findSuccess, findError, i, filter;
 
 t.step(function () {
@@ -64,6 +64,7 @@ t.step(function () {
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index 7e59a0534c1b4b36477d85d1e8986444e71fc425..595ea5abe0bdce8467992030a63784da60ec84ea 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_filter_compositeFilters</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,15 +30,15 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_filter_compositeFilters
-//==== LABEL check whether find() method lists CallHistory items for various composite filters
+//==== LABEL Check whether find() method lists CallHistory items for various composite filters
 //==== 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#findid2508192
+//==== 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("CallHistory_find_filter_compositeFilters", { timeout: 90000 }),
-    findError, findSuccess, i, count = 0, returnedValue;
+var t = async_test(document.title, {timeout: 90000}),
+    findError, findSuccess, i, count = 1, returnedValue;
 
 t.step(function () {
     findError = t.step_func(function (error) {
@@ -47,8 +47,10 @@ t.step(function () {
 
     findSuccess = t.step_func(function (results) {
         assert_type(results, "array", "Checking type of result");
-        if (++count === ARRAY_FILTER_COMPOSITE.length) {
+        if (count === ARRAY_FILTER_COMPOSITE.length) {
             t.done();
+        } else {
+            count++;
         }
     });
 
@@ -57,6 +59,7 @@ t.step(function () {
         assert_equals(returnedValue, undefined, "Incorrect returned value.");
     }
 });
+
 </script>
 </body>
 </html>
index 4e6d36a296c63bdbc183712d6fcd8569ef487672..5c586780dfbb53724cf4cebdd4f1aac90df8d9d4 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_filter_invalid_obj</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 //==== TEST_CRITERIA MTO
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_filter_invalid_obj", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     exceptionName = "TypeMismatchError", findSuccess, findError, filter;
 
 t.step(function () {
@@ -63,7 +63,7 @@ t.step(function () {
 
     t.done();
 });
+
 </script>
 </body>
-
 </html>
index 7e95518e24d6b7f8e92489b0a82ed2720f09463e..774ec8f557887f8094d49fd972b7dda53471d8f1 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_filter_null</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,14 +30,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_filter_null
-//==== LABEL check whether find() method called with null filter lists CallHistory items
+//==== LABEL Check whether find() method called with null filter lists CallHistory items
 //==== 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 MOA MR
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_filter_null", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findError, findSuccess, returnedValue = null;
 
 t.step(function () {
@@ -53,6 +53,7 @@ t.step(function () {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, null);
 });
+
 </script>
 </body>
 </html>
index f83902b2ce6ede41f2c8fa07e720a9ae7854151b..053f18be29aba65c5a28e46d5c950aaaa210f5e1 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_filter_null_sortMode</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,14 +30,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_filter_null_sortMode
-//==== LABEL check whether find() method called with null filter and specified sortMode lists CallHistory items
+//==== LABEL Check whether find() method called with null filter and specified sortMode lists CallHistory items
 //==== 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#findid2508192
+//==== 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("CallHistory_find_filter_null_sortMode", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findError, findSuccess, returnedValue = null;
 
 t.step(function () {
@@ -53,6 +53,7 @@ t.step(function () {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, null, SORT_MODE);
 });
+
 </script>
 </body>
 </html>
index 2e8cb6f1b77507f96aa8970de8c8abbe894fe8ca..ca74883a627af11a436fbc621aea108a5791e274 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_filter_rangeFilters</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,15 +30,15 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_filter_rangeFilters
-//==== LABEL check whether find() method lists CallHistory items for various range filters
+//==== LABEL Check whether find() method lists CallHistory items for various range filters
 //==== 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#findid2508192
+//==== 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("CallHistory_find_filter_rangeFilters", { timeout: 90000 }),
-    findError, findSuccess, i, count = 0, returnedValue;
+var t = async_test(document.title, {timeout: 90000}),
+    findError, findSuccess, i, count = 1, returnedValue;
 
 t.step(function () {
     findError = t.step_func(function (error) {
@@ -47,8 +47,10 @@ t.step(function () {
 
     findSuccess = t.step_func(function (results) {
         assert_type(results, "array", "Checking type of result");
-        if (++count === ARRAY_FILTER_RANGE.length) {
+        if (count === ARRAY_FILTER_RANGE.length) {
             t.done();
+        } else {
+            count++;
         }
     });
 
@@ -57,6 +59,7 @@ t.step(function () {
         assert_equals(returnedValue, undefined, "Incorrect returned value");
     }
 });
+
 </script>
 </body>
 </html>
index 3eb31703a81505b425564c38bbf9361af0bef36f..40b7e4534943f4c901a03944db3851f60fe57040 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_filter_sortMode_limit_null_offset</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,14 +30,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== 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
+//==== LABEL Check whether find() method called with null filter, sortMode, limit and specified offset lists CallHistory items
 //==== 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 MOA MR
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_filter_sortMode_limit_null_offset", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findError, findSuccess, returnedValue = null;
 
 t.step(function () {
@@ -53,6 +53,7 @@ t.step(function () {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, null, null, null, OFFSET);
 });
+
 </script>
 </body>
 </html>
index f9cb8e043150af1e91b19664868268d5021c8343..fcfdc7b6ba03c1e4e74c6dd20cde6f3de29f2df5 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_filter_sortMode_null</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,14 +30,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_filter_sortMode_null
-//==== LABEL check whether find() method called with null filter, null sortMode and specified limit lists CallHistory items
+//==== LABEL Check whether find() method called with null filter, null sortMode and specified limit lists CallHistory items
 //==== 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#findid2508192
+//==== 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("CallHistory_find_filter_sortMode_null", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findError, findSuccess, returnedValue = null;
 
 t.step(function () {
@@ -53,6 +53,7 @@ t.step(function () {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, null, null, LIMIT);
 });
+
 </script>
 </body>
 </html>
index fa216d3d4daf8d5d931a88874290f9908d36b80a..516fef8d9d3b51249b8e2da237b5148d6a5a93b6 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_filter_undefined</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_filter_undefined
-//==== LABEL check whether find() method called with undefined filter lists CallHistory items
+//==== LABEL Check whether find() method called with undefined filter lists CallHistory items
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
@@ -38,7 +38,7 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_filter_undefined", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, exceptionName = "TypeMismatchError";
 
 t.step(function () {
@@ -57,6 +57,7 @@ t.step(function () {
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index e450a787de2aa05fcc7c83a65c547b39e9f70036..cd9315433835ed1cc72a7cdd8ef2c1f486a4f674 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_filter_various</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,15 +30,15 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_filter_various
-//==== LABEL check whether find() method lists CallHistory items for various filters
+//==== LABEL Check whether find() method lists CallHistory items for various filters
 //==== 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#findid2508192
+//==== 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("CallHistory_find_filter_various", { timeout: 90000 }),
-    findError, findSuccess, i, count = 0, returnedValue;
+var t = async_test(document.title, {timeout: 90000}),
+    findError, findSuccess, i, count = 1, returnedValue;
 
 t.step(function () {
     findError = t.step_func(function (error) {
@@ -47,8 +47,10 @@ t.step(function () {
 
     findSuccess = t.step_func(function (results) {
         assert_type(results, "array", "Checking type of result");
-        if (++count === ARRAY_FILTER.length) {
+        if (count === ARRAY_FILTER.length) {
             t.done();
+        } else {
+            count++;
         }
     });
 
@@ -57,6 +59,7 @@ t.step(function () {
         assert_equals(returnedValue, undefined, "Incorrect returned value");
     }
 });
+
 </script>
 </body>
 </html>
index 85dd9a51f7c73c6502713df54ac5e69c81b5d5af..049c89b9c331f67829ef6a1f70bd1f51db1a2df7 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_limit</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,14 +30,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_limit
-//==== LABEL check whether find() method called with successCallback, errorCallback, filter, sortMode and limit lists CallHistory items
+//==== LABEL Check whether find() method called with successCallback, errorCallback, filter, sortMode and limit lists CallHistory items
 //==== 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#findid2508192
+//==== 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("CallHistory_find_limit", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findError, findSuccess, returnedValue = null;
 
 t.step(function () {
@@ -53,6 +53,7 @@ t.step(function () {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, FILTER_TYPE_1, SORT_MODE, LIMIT);
 });
+
 </script>
 </body>
 </html>
index 7bb02711fd487d803adc5956da47efe03e748d21..144693b054c32a90531d46472d47ea26f22e4366 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -34,7 +34,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_limit_0</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -50,10 +50,10 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_limit_0", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, findAfterSuccess, findAfterError, len, returnedValue = null;
 
-t.step(function() {
+t.step(function () {
     findAfterSuccess = t.step_func(function (results) {
         assert_type(results, "array", "Checking type of result");
         assert_equals(results.length, len, "expect no limit the query result");
@@ -76,6 +76,7 @@ t.step(function() {
 
     tizen.callhistory.find(findSuccess, findError);
 });
+
 </script>
 </body>
 </html>
index 0e513f3a37d49264ddc59077d90aa4a48ae9c650..dca907aa249a0bd12f12bdf9b22edeb4bdc5be4f 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_limit_1</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,14 +30,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_limit_1
-//==== LABEL check whether find() method called with additional arguments lists CallHistory items
+//==== LABEL Check whether find() method called with additional arguments lists CallHistory items
 //==== 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#findid2508192
+//==== 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("CallHistory_find_limit_1", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findError, findSuccess, returnedValue = null;
 
 t.step(function () {
@@ -54,6 +54,7 @@ t.step(function () {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, FILTER_TYPE_1, SORT_MODE, 1);
 });
+
 </script>
 </body>
 </html>
index b7647d500942ffafb7bef6dd330d88b38a0a6e65..220883c66e9272f7193cb05365306f292ce98bb6 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -34,7 +34,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_limit_2</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -51,7 +51,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_limit_2", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, findAfterSuccess, findAfterError, len = 2,
     returnedValue = null;
 
@@ -79,6 +79,7 @@ t.step(function () {
 
     tizen.callhistory.find(findSuccess, findError);
 });
+
 </script>
 </body>
 </html>
index 66a984ac6abab18d0c4f2872e0e68a4a2e729f21..2fc07030f24ec0f12acdab182699850757688b9e 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_limit_null</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,14 +30,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_limit_null
-//==== LABEL check whether find() method called with null filter, sortMode and limit lists CallHistory items
+//==== LABEL Check whether find() method called with null filter, sortMode and limit lists CallHistory items
 //==== 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 MOA MR
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_limit_null", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findError, findSuccess, returnedValue = null;
 
 t.step(function () {
@@ -53,6 +53,7 @@ t.step(function () {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, null, null, null);
 });
+
 </script>
 </body>
 </html>
index 63c2c0588b398c8ce2c814fe0343ca84bb508ad4..9289d1ec9d8d32bcb5fc7406aa23a7502c414dfc 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 
 <head>
 <title>CallHistory_find_missarg</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -36,11 +36,12 @@ Authors:
 //==== 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({ name: "TypeMismatchError" }, function () {
+test(function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         tizen.callhistory.find();
     }, "Method should throw an exception");
-}, "CallHistory_find_missarg");
+}, document.title);
+
 </script>
 </body>
 </html>
index 1d07dcfdf7b7fe2c47c34533b2df1ba9061a5d76..dc25598b58b8257bf4c359fd936be3a1b820065e 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         HaoYunfen <yunfenx.hao@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
@@ -35,7 +35,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_nullableArgs_null</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -52,7 +52,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_nullableArgs_null", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, returnedValue = null;
 
 t.step(function () {
@@ -64,6 +64,7 @@ t.step(function () {
 
     returnedValue = tizen.callhistory.find(findSuccess, null, null, null, null, null);
 });
+
 </script>
 </body>
 </html>
index e47950449f7237f6d21563fcec82ee1ffaed0f76..754448284156ebb79a306e12ba8465f4c0aed198 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_offset</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,14 +30,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_offset
-//==== LABEL check whether find() method called with successCallback, errorCallback, filter, sortMode limit and offset lists CallHistory items
+//==== LABEL Check whether find() method called with successCallback, errorCallback, filter, sortMode limit and offset lists CallHistory items
 //==== 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 MOA MR
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_offset", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findError, findSuccess, returnedValue = null;
 
 t.step(function () {
@@ -53,6 +53,7 @@ t.step(function () {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, FILTER_TYPE_1, SORT_MODE, LIMIT, OFFSET);
 });
+
 </script>
 </body>
 </html>
index 3554c91f0911b122d748cae888c8fe297f1068ac..1dc3f20e621f32ab0fc965fec5f915af01fbb318 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_offset_0</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,14 +30,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_offset_0
-//==== LABEL check if find() method calls successCallback function properly for offset equal 0
+//==== LABEL Check if find() method calls successCallback function properly for offset equal 0
 //==== 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 MOA MR
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_offset_0", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findError, findSuccess, lowerOffset = 0, returnedValue = null;
 
 t.step(function () {
@@ -53,6 +53,7 @@ t.step(function () {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, FILTER_TYPE_1, SORT_MODE, LIMIT, lowerOffset);
 });
+
 </script>
 </body>
 </html>
index 34f560e00c807fe41c4eea7773b2834946ce353a..78a7e998d9b580d8c9491fe99341265bde69cc22 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_offset_null</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,14 +30,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_offset_null
-//==== LABEL check whether find() method called with null filter, sortMode, limit and offset lists CallHistory items
+//==== LABEL Check whether find() method called with null filter, sortMode, limit and offset lists CallHistory items
 //==== 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 MOA MR
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_offset_null", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findError, findSuccess, returnedValue = null;
 
 t.step(function () {
@@ -53,6 +53,7 @@ t.step(function () {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, null, null, null, null);
 });
+
 </script>
 </body>
 </html>
index a52e160d3dba1fa4c0c9fe1d68155b3ec117cf4d..c48247e7338588e61fc7fd732c9a184abc6cf8fb 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_sortMode</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,14 +30,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_sortMode
-//==== LABEL check whether find() method called with successCallback, errorCallback, filter and sortMode lists CallHistory items
+//==== LABEL Check whether find() method called with successCallback, errorCallback, filter and sortMode lists CallHistory items
 //==== 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 MOA MR
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_sortMode", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findError, findSuccess, returnedValue = null;
 
 t.step(function () {
@@ -53,6 +53,7 @@ t.step(function () {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, FILTER_TYPE_1, SORT_MODE);
 });
+
 </script>
 </body>
 </html>
index 00dc46a931ce7b333d275af549c3208e301d9ff8..0b4a6dd98922dff2c9aca98032927412a5136f08 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_sortMode_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_sortMode_TypeMismatch", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     exceptionName = "TypeMismatchError", conversionTable, findSuccess, findError, i, sortMode;
 
 t.step(function () {
@@ -64,6 +64,7 @@ t.step(function () {
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index d465c4d10e7251d43a629a5e48a91cd45b349ba5..7b93a4929cee65faaca97e8baf291a1d3edec51d 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_sortMode_invalid_obj</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 //==== TEST_CRITERIA MTO
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_sortMode_invalid_obj", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     exceptionName = "TypeMismatchError", findSuccess, findError, filter, sortMode;
 
 t.step(function () {
@@ -64,6 +64,7 @@ t.step(function () {
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index 398372a345efc38fb8008f84c7ca6c38e64d9904..ad3b0743b8fbd98a509536370576348615558573 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_sortMode_null</title>nulln
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,14 +30,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_sortMode_null
-//==== LABEL check whether find() method called with null filter and sortMode lists CallHistory items
+//==== LABEL Check whether find() method called with null filter and sortMode lists CallHistory items
 //==== 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 MOA MR
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_sortMode_null", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findError, findSuccess, returnedValue = null;
 
 t.step(function () {
@@ -53,6 +53,7 @@ t.step(function () {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, null, null);
 });
+
 </script>
 </body>
 </html>
index daabecd46791ccbc8dcca5eed4b8bf12aa691eaf..50b69c094d28d5c9cb72ffd66389ec4ba487fa9f 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_sortMode_undefined</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -32,7 +32,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_sortMode_undefined
-//==== LABEL check whether find() method called with null filter and undefined sortMode lists CallHistory items
+//==== LABEL Check whether find() method called with null filter and undefined sortMode lists CallHistory items
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
@@ -40,7 +40,7 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_sortMode_undefined", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, exceptionName = "TypeMismatchError";
 
 t.step(function () {
@@ -59,6 +59,7 @@ t.step(function () {
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index e5b56f0dbd644defa3864fb4fd76c93f763461c1..416c3a2a2f23b6d9a8e51b10fee2ffd21307f98e 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_successCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_successCallback_TypeMismatch", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     conversionTable, successCallback, exceptionName, i;
 
 t.step(function () {
@@ -56,6 +56,7 @@ t.step(function () {
 
     t.done();
 });
+
 </script>
 </body>
 </html>
index d18a77211779e9ec9e1ba681ec53b06e92827300..a244431a2a4564fa9a14bd9db246c205e5ebd82c 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 
 <head>
 <title>CallHistory_find_successCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -45,12 +45,12 @@ test(function () {
         }
     };
 
-    assert_throws({name : exceptionName},
+    assert_throws({name: exceptionName},
         function () {
             tizen.callhistory.find(incorrectCallback);
         }, exceptionName + " should be thrown - given incorrect success callback.");
 
-}, "CallHistory_find_successCallback_invalid_cb");
+}, document.title);
 
 </script>
 </body>
index 4397cd04b96b4879f7ca95e1b8e5233dc77edad7..da5ee6ea08d19d4760bc43efd1474d6fddd73ed5 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_with_errorCallback</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -37,10 +37,10 @@ Authors:
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_with_errorCallback", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, returnedValue = null;
 
-t.step(function() {
+t.step(function () {
     findError = t.step_func(function (error) {
         assert_unreached("find() error callback invoked: name: " + error.name + ", msg: " + error.message);
     });
@@ -53,6 +53,7 @@ t.step(function() {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError);
 });
+
 </script>
 </body>
 </html>
index a3ccd0173309ec8bd5c7d1cf2b2307811dd6ca07..9a197d50d8a4c92978cfb3277541ac2e10e86da4 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 
 <head>
 <title>CallHistory_find_with_filter</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -38,10 +38,10 @@ Authors:
 //==== TEST_CRITERIA MOA MR
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_with_filter", { timeout: 90000 }), returnedValue = null,
+var t = async_test(document.title, {timeout: 90000}), returnedValue = null,
     findSuccess, findError, filter = new tizen.AttributeFilter("type", "EXACTLY", "TEL");
 
-t.step(function() {
+t.step(function () {
     findError = t.step_func(function (error) {
         assert_unreached("find() error callback invoked: name: " + error.name + ", msg: " + error.message);
     });
@@ -54,6 +54,7 @@ t.step(function() {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, filter);
 });
+
 </script>
 </body>
 </html>
index c532da67f106186f3f4370a138c295a98daf5ac8..b558ccbb2eb8714edf4043a430ba58d703c696a9 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_with_limit</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -37,10 +37,10 @@ Authors:
 //==== TEST_CRITERIA MOA MR
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_with_limit", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, returnedValue = null;
 
-t.step(function() {
+t.step(function () {
     findError = t.step_func(function (error) {
         assert_unreached("find() error callback invoked: name: " + error.name + ", msg: " + error.message);
     });
@@ -53,6 +53,7 @@ t.step(function() {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, null, null, 1);
 });
+
 </script>
 </body>
 </html>
index 370533b5c870c8b6b68fecd74cf81c190598aa45..3201e39bb224c14d457de78e4e308b4a25a26282 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 
 <head>
 <title>CallHistory_find_with_offset</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -38,10 +38,10 @@ Authors:
 //==== TEST_CRITERIA MOA MR
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_with_offset", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, returnedValue = null;
 
-t.step(function() {
+t.step(function () {
     findError = t.step_func(function (error) {
         assert_unreached("find() error callback invoked: name: " + error.name + ", msg: " + error.message);
     });
@@ -54,6 +54,7 @@ t.step(function() {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, null, null, 1, 1);
 });
+
 </script>
 </body>
 </html>
index a161b169bb8a1e86e3f9c1de9520c6948e9c96a8..7dd3364509b83e227024e3cfe7668605934cace8 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_with_sortMode</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -37,10 +37,10 @@ Authors:
 //==== TEST_CRITERIA MOA MR
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_with_sortMode", { timeout: 90000 }), returnedValue = null,
+var t = async_test(document.title, {timeout: 90000}), returnedValue = null,
     findSuccess, findError, sortMode = new tizen.SortMode("startTime", "DESC");
 
-t.step(function() {
+t.step(function () {
     findError = t.step_func(function (error) {
         assert_unreached("find() error callback invoked: name: " + error.name + ", msg: " + error.message);
     });
@@ -53,6 +53,7 @@ t.step(function() {
 
     returnedValue = tizen.callhistory.find(findSuccess, findError, null, sortMode);
 });
+
 </script>
 </body>
 </html>
index a922ead85f40a97d3a3d9a4021e2d7c353f37292..5b456c40b0d78ee1eef65485f0ec0aa0f6205e91 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_find_without_errorCallback</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,17 +30,17 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_find_without_errorCallback
-//==== LABEL check if find() method calls successCallback function properly
+//==== LABEL Check if find() method calls successCallback function properly
 //==== 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 MMINA MR
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find_without_errorCallback", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, returnedValue = null;
 
-t.step(function() {
+t.step(function () {
     findSuccess = t.step_func(function (results) {
         assert_type(results, "array", "Checking type of result");
         assert_equals(returnedValue, undefined, "Incorrect returned value");
@@ -49,6 +49,7 @@ t.step(function() {
 
     returnedValue = tizen.callhistory.find(findSuccess);
 });
+
 </script>
 </body>
 </html>
index 8f734b3c5b7379efe3da8e70c84d11ecbc5a032f..706c4fc0866497aaabd6922cc4fe869fb78853f2 100644 (file)
@@ -22,14 +22,14 @@ Authors:
 <html>
 <head>
 <title>CallHistory_in_tizen</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_in_tizen
-//==== LABEL check if CallHistory exists and implements methods
+//==== LABEL Check if CallHistory exists and implements methods
 //==== 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 OBME
@@ -46,7 +46,8 @@ test(function () {
     assert_type(tizen.callhistory.removeAll, "function", "Checking type of removeAll");
     assert_type(tizen.callhistory.addChangeListener, "function", "Checking type of addChangeListener");
     assert_type(tizen.callhistory.removeChangeListener, "function", "Checking type of removeChangeListener");
-}, "CallHistory_in_tizen");
+}, document.title);
+
 </script>
 </body>
 </html>
index 9c86fdb8886f237cb27883e907e52deb5d14476d..0cf76f0652697788e55643f859cb6199071c3f6b 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_notexist</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -36,7 +36,8 @@ Authors:
 //==== TEST_CRITERIA NIO
 test(function () {
     check_no_interface_object("CallHistory");
-}, "CallHistory_notexist");
+}, document.title);
+
 </script>
 </body>
 </html>
index 9bf11d074e9ce46f526245b502d13ab114e29d75..5bff9bd89a592a0d712b3bc2b732362b3af689b3 100644 (file)
@@ -26,8 +26,8 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Guan,JingX <jingx.guan@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Guan, JingX <jingx.guan@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
         Mariusz Polasinski <m.polasinski@samsung.com>
 
@@ -36,7 +36,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_remove</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -53,7 +53,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_remove", { timeout: 90000 }), retVal = null,
+var t = async_test(document.title, {timeout: 90000}), retVal = null,
     removedUid, findSuccess, findError, findAfterSuccess, findAfterError, i =0;
 
 t.step(function () {
@@ -84,6 +84,7 @@ t.step(function () {
 
     tizen.callhistory.find(findSuccess, findError);
 });
+
 </script>
 </body>
 </html>
index 5a9f4eb1107049ba501e48fcce8472419492fef6..63cf19a0c66a02316efe2b8689db6f53c976d16b 100644 (file)
@@ -26,8 +26,8 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Guan,JingX <jingx.guan@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Guan, JingX <jingx.guan@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
         Mariusz Polasinski <m.polasinski@samsung.com>
 
@@ -36,7 +36,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeAll</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -51,7 +51,8 @@ Authors:
 
 test(function () {
     tizen.callhistory.removeAll();
-}, "CallHistory_removeAll");
+}, document.title);
+
 </script>
 </body>
 </html>
index 7f662ba24077a0300c681fb583eecd824cb7c380..38392de6a5a708385892a205d356651d4fbdd558 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeAll_errorCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -34,7 +34,7 @@ Authors:
 //==== 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() {
+test(function () {
     var conversionTable, successCallback, errorCallback, exceptionName, i;
 
     conversionTable = getTypeConversionExceptions("functionObject", true);
@@ -52,7 +52,8 @@ test(function() {
                 tizen.callhistory.removeAll(successCallback, errorCallback);
             }, exceptionName + " should be thrown - given incorrect successCallback.");
     }
-});
+}, document.title);
+
 </script>
 </body>
 </html>
index 4cfa547687732a31c625e8dc5612cd32ab28895e..dfe8f2851228de60edaa26b8c26fb98524770983 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeAll_errorCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -34,7 +34,7 @@ Authors:
 //==== 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() {
+test(function () {
     var exceptionName = "TypeMismatchError", onSuccess, incorrectCallback;
 
     onSuccess = function () {
@@ -47,12 +47,13 @@ test(function() {
         }
     };
 
-    assert_throws({name : exceptionName},
+    assert_throws({name: exceptionName},
         function () {
             tizen.callhistory.removeAll(onSuccess, incorrectCallback);
         }, exceptionName + " should be thrown");
 
-}, "CallHistory_removeAll_errorCallback_invalid_cb");
+}, document.title);
+
 </script>
 </body>
 </html>
index 38f8ae1c6a587594277c862c00220822f77fe4fc..0eea1b09261089944268fd3c610ebebebd7431f3 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Guan,JingX <jingx.guan@intel.com>
+        Guan, JingX <jingx.guan@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -37,7 +37,7 @@ Authors:
 <link rel="author" title="Intel" href="http://www.intel.com" />
 <meta name="flags" content="" />
 <meta name="assert" content="Check if removeAll method is exist and can be overriden" />
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -48,10 +48,11 @@ Authors:
 //==== 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() {
+test(function () {
     assert_true("removeAll" in tizen.callhistory, "CallHistory has removeAll method");
     check_method_exists(tizen.callhistory, "removeAll");
-}, "CallHistory_removeAll_exist");
+}, document.title);
+
 </script>
 </body>
 </html>
index 9994d3e4cbff3eb3ebb7c927f2135acac1fd9ad0..d5fb2f4fbf2ea2d42ccacb422f184226be65165e 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeAll_successCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -34,7 +34,7 @@ Authors:
 //==== 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() {
+test(function () {
     var conversionTable, successCallback, exceptionName, i;
 
     conversionTable = getTypeConversionExceptions("functionObject", true);
@@ -48,7 +48,8 @@ test(function() {
                 tizen.callhistory.removeAll(successCallback);
             }, exceptionName + " should be thrown - given incorrect successCallback.");
     }
-});
+}, document.title);
+
 </script>
 </body>
 </html>
index a8f07f28f387a08b3478c17a7d17b07043189944..8b4358c61d1de2162cd6419b935f545d3f411dd8 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeAll_successCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -34,7 +34,7 @@ Authors:
 //==== 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() {
+test(function () {
     var exceptionName = "TypeMismatchError", incorrectCallback;
 
     incorrectCallback = {
@@ -43,12 +43,13 @@ test(function() {
         }
     };
 
-    assert_throws({name : exceptionName},
+    assert_throws({name: exceptionName},
         function () {
             tizen.callhistory.removeAll(incorrectCallback);
         }, exceptionName + " should be thrown");
 
-}, "CallHistory_removeAll_successCallback_invalid_cb");
+}, document.title);
+
 </script>
 </body>
 </html>
index d506af44f193694433355d8738abc304fd007fd8..2b1cf6a0843f8e7b45cab70b6a6e9085efd52e00 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeAll_with_errorCallback</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -37,10 +37,10 @@ Authors:
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_removeAll_with_errorCallback", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     removeAllSuccess, removeAllError;
 
-t.step(function() {
+t.step(function () {
     removeAllSuccess = t.step_func(function () {
         t.done();
     });
@@ -51,6 +51,7 @@ t.step(function() {
 
     tizen.callhistory.removeAll(removeAllSuccess, removeAllError);
 });
+
 </script>
 </body>
 </html>
index c33cba91cfc07501d84f6f9b140519930300aeaa..8dc6cfa870f113231a44b36e6a04a8db388a5ceb 100644 (file)
@@ -20,11 +20,11 @@ Authors:
 
 -->
 
-<html lang="en">
+<html>
 <head>
 <meta charset="utf-8"/>
 <title>CallHistory_removeAll_with_successCallback</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -42,7 +42,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_removeAll", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, removeAllSuccess, removeAllError, findAfterSuccess,
     findAfterError, retVal = null;
 
index 3885dcedc1852c4223730fe46adaecffcbdf90fe..9795b032ba550f1b7f13ca01a42a8cee60e854db 100644 (file)
@@ -26,8 +26,8 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Guan,JingX <jingx.guan@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Guan, JingX <jingx.guan@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -35,7 +35,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeBatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -52,7 +52,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_removeBatch", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     onListenerCB, findSuccess, findError, findAfterSuccess, findAfterError,
     returnedValue = null, handle, i = 0;
 
@@ -93,6 +93,7 @@ t.step(function () {
     handle = tizen.callhistory.addChangeListener(onListenerCB);
     tizen.callhistory.find(findSuccess, findError);
 });
+
 </script>
 </body>
 </html>
index 9edeff46918db12402f7f09e385eac4c89cdbee6..c5eabfaef14823fecdde8a42727faed475ce9fc8 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 
 <head>
 <title>CallHistory_removeBatch_entries_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -35,7 +35,7 @@ Authors:
 //==== 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() {
+test(function () {
     var conversionTable, entries, exceptionName, i;
 
     conversionTable = getTypeConversionExceptions("array", false);
@@ -49,7 +49,8 @@ test(function() {
                 tizen.callhistory.removeBatch(entries);
             }, exceptionName + " should be thrown - given incorrect entries.");
     }
-});
+}, document.title);
+
 </script>
 </body>
 </html>
index c3b0346299f4b42bc541bbbbe232ba4063a07b17..080e1260ef89f38de840249e864a77c7f74f3361 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 
 <head>
 <title>CallHistory_removeBatch_errorCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -35,7 +35,7 @@ Authors:
 //==== 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() {
+test(function () {
     var conversionTable, successCallback, errorCallback, exceptionName, i;
 
     conversionTable = getTypeConversionExceptions("functionObject", true);
@@ -53,7 +53,8 @@ test(function() {
                 tizen.callhistory.removeBatch([], successCallback, errorCallback);
             }, exceptionName + " should be thrown - given incorrect successCallback.");
     }
-});
+}, document.title);
+
 </script>
 </body>
 </html>
index e96e462c4d5df39f6fb93f60212a01a0396a1df1..bf7fc714ada7e3071ba5c79031438aa9f014be1a 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeBatch_errorCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -34,10 +34,10 @@ Authors:
 //==== 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() {
+test(function () {
     var exceptionName = "TypeMismatchError", onSuccess, incorrectCallback;
 
-    onSuccess = function() {
+    onSuccess = function () {
         assert_unreached("successCallback invoked");
     };
 
@@ -47,12 +47,13 @@ test(function() {
         }
     };
 
-    assert_throws({name : exceptionName},
+    assert_throws({name: exceptionName},
         function () {
             tizen.callhistory.removeBatch([], onSuccess, incorrectCallback);
         }, exceptionName + " should be thrown");
 
-}, "CallHistory_removeBatch_errorCallback_invalid_cb");
+}, document.title);
+
 </script>
 </body>
 </html>
index fedb905825513f09957099767ab59201487a9ee5..2376c36c7a63c3c088af0130818d72d1eb40388d 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeBatch_errorCallback_null</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_removeBatch_errorCallback_null
-//==== LABEL check whether removeBatch() method called with null errorCallback deletes two entries from call history entries
+//==== LABEL Check whether removeBatch() method called with null errorCallback deletes two entries from call history entries
 //==== 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
@@ -39,7 +39,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_removeBatch_errorCallback_null", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findError, findSuccess, removeBatchSuccess, secondFindError,
     secondFindSuccess, list, filter;
 
@@ -75,6 +75,7 @@ t.step(function () {
 
     tizen.callhistory.find(findSuccess, findError);
 });
+
 </script>
 </body>
 </html>
index 64d30536f312070eedb7ac06c43ace45c763e0fe..0feb58af55f652a1df0e78a725e93b5b0e4ad6d7 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 
 <head>
 <title>CallHistory_removeBatch_errorCallback_undefined</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_removeBatch_errorCallback_undefined
-//==== LABEL check whether removeBatch() method called with undefined errorCallback throws exception
+//==== LABEL Check whether removeBatch() method called with undefined errorCallback throws exception
 //==== EXECUTION_TYPE manual
 //==== PRIORITY P2
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
@@ -40,19 +40,19 @@ Authors:
 //==== PRE Make at least 3 existence call history
 setup({timeout: 90000});
 
-var this_test = async_test("CallHistory_removeBatch_errorCallback_undefined", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     onError, removeSuccessCB, successCB, list, exceptionName = "TypeMismatchError";
 
-this_test.step(function () {
-    successCB = this_test.step_func(function () {
+t.step(function () {
+    successCB = t.step_func(function () {
         assert_unreached("should not be here");
     });
 
-    onError = this_test.step_func(function (error) {
+    onError = t.step_func(function (error) {
         assert_unreached("find has an error: " + error.message);
     });
 
-    removeSuccessCB = this_test.step_func(function (results) {
+    removeSuccessCB = t.step_func(function (results) {
         assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 2, "Expected 3 calls in history at least, but found: " + results.length);
         list = [results[0], results[1]];
@@ -62,11 +62,12 @@ this_test.step(function () {
                 tizen.callhistory.removeBatch(list, successCB, undefined);
             }, exceptionName + " should be thrown");
 
-        this_test.done();
+        t.done();
     });
 
     tizen.callhistory.find(removeSuccessCB, onError);
 });
+
 </script>
 </body>
 </html>
index 75c4c85cd8b54900670d497d98eea454b6285c50..22df172199c08f5905ab83025bbb612bd5d59f8b 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Guan,JingX <jingx.guan@intel.com>
+        Guan, JingX <jingx.guan@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -37,7 +37,7 @@ Authors:
 <link rel="author" title="Intel" href="http://www.intel.com" />
 <meta name="flags" content="" />
 <meta name="assert" content="Check if removeBatch method is exist and can be overriden" />
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -48,10 +48,11 @@ Authors:
 //==== 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() {
+test(function () {
     assert_true("removeBatch" in tizen.callhistory, "CallHistory has removeBatch method");
     check_method_exists(tizen.callhistory, "removeBatch");
-}, "CallHistory_removeBatch_exist");
+}, document.title);
+
 </script>
 </body>
 </html>
index ceed45faa8dff12bc9e86f7e6497c08a4e438b63..ae4de686486e6b0762e00f5c2dd26dd18cca8e4e 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -34,7 +34,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeBatch_findByDirection</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -51,7 +51,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_removeBatch_findByDirection", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, removeBatchSuccess, removeBatchError, findAfterSuccess, findAfterError,
     filter = new tizen.AttributeFilter("direction", "EXACTLY", "REJECTED");
 
@@ -86,6 +86,7 @@ t.step(function () {
 
     tizen.callhistory.find(findSuccess, findError, filter);
 });
+
 </script>
 </body>
 </html>
index fdbfdf917308f98d06fb2148c41588594b57ae7f..05302574eef2b5cc8a887bbbafd173bad8d0f503 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -34,7 +34,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeBatch_findByType</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -51,7 +51,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_removeBatch_findByType", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, removeBatchSuccess, removeBatchError, findAfterSuccess, findAfterError,
     filter = new tizen.AttributeFilter("type", "EXACTLY", "TEL");
 
@@ -86,6 +86,7 @@ t.step(function () {
 
     tizen.callhistory.find(findSuccess, findError, filter);
 });
+
 </script>
 </body>
 </html>
index ff0ebab6e6cf586a0dd5eec137e95f3efe374ed8..b33e4cc41d2d8022e5b8fbdffc2675ccb1fe8838 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 
 <head>
 <title>CallHistory_removeBatch_missarg</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -34,11 +34,12 @@ Authors:
 //==== 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({ name: "TypeMismatchError" }, function () {
+test(function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         tizen.callhistory.removeBatch();
     }, "Method should throw an exception");
-}, "CallHistory_removeBatch_missarg");
+}, document.title);
+
 </script>
 </body>
 </html>
index 199c1a8d9e9721a5bec1069882ff1966a48ebd08..64d6e53213d16a49b1831e7c704071eb4caf8db2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 
 <head>
 <title>CallHistory_removeBatch_successCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -35,7 +35,7 @@ Authors:
 //==== 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() {
+test(function () {
     var conversionTable, successCallback, exceptionName, i;
 
     conversionTable = getTypeConversionExceptions("functionObject", true);
@@ -49,7 +49,8 @@ test(function() {
                 tizen.callhistory.removeBatch([], successCallback);
             }, exceptionName + " should be thrown - given incorrect successCallback.");
     }
-});
+}, document.title);
+
 </script>
 </body>
 </html>
index e553f607d5ee4f9a16bb96ec0219584c1bee2f70..53ef08757d8066548453ecd6df2c761551de9f5e 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeBatch_successCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -34,7 +34,7 @@ Authors:
 //==== 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() {
+test(function () {
     var exceptionName = "TypeMismatchError", incorrectCallback;
 
     incorrectCallback = {
@@ -43,12 +43,13 @@ test(function() {
         }
     };
 
-    assert_throws({name : exceptionName},
+    assert_throws({name: exceptionName},
         function () {
             tizen.callhistory.removeBatch([], incorrectCallback);
         }, exceptionName + " should be thrown");
 
-}, "CallHistory_removeBatch_successCallback_invalid_cb");
+}, document.title);
+
 </script>
 </body>
 </html>
index 61610e700f727f95acc64dff8cf9465572b13982..8fd4d42425c0fcc446a2ca54297ea00657757521 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeBatch_successCallback_null</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_removeBatch_successCallback_null
-//==== LABEL check whether removeBatch() method called with null successCallback deletes two entries from call history
+//==== LABEL Check whether removeBatch() method called with null successCallback deletes two entries from call history
 //==== 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
@@ -39,7 +39,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_removeBatch_successCallback_null", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     removeBatchError, findSuccess, findError, list;
 
 t.step(function () {
@@ -60,6 +60,7 @@ t.step(function () {
 
     tizen.callhistory.find(findSuccess, findError);
 });
+
 </script>
 </body>
 </html>
index f99945ef6437bd81f991a65edb7b5ea33b1283ab..30e4881df3ed3f6d0a8d53f3a21c90a7ba4238a0 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeBatch_successCallback_undefined</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_removeBatch_successCallback_undefined
-//==== LABEL check whether removeBatch() method called with undefined successCallback throws exception
+//==== 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
@@ -40,19 +40,19 @@ Authors:
 
 setup({timeout: 90000});
 
-var this_test = async_test("CallHistory_removeBatch_successCallback_undefined", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, removeBatchError, list, exceptionName = "TypeMismatchError";
 
-this_test.step(function () {
-    removeBatchError = this_test.step_func(function (error) {
+t.step(function () {
+    removeBatchError = t.step_func(function (error) {
         assert_unreached("removeBatch() error callback invoked: name: " + error.name + ", msg: " + error.message);
     });
 
-    findError = this_test.step_func(function (error) {
+    findError = t.step_func(function (error) {
         assert_unreached("find() error callback invoked: name: " + error.name + ", msg: " + error.message);
     });
 
-    findSuccess = this_test.step_func(function (results) {
+    findSuccess = t.step_func(function (results) {
         assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 2, "Expected 3 calls in history at least, but found: " + results.length);
         list = [results[0], results[1]];
@@ -62,11 +62,12 @@ this_test.step(function () {
                 tizen.callhistory.removeBatch(list, undefined, removeBatchError);
             }, exceptionName + " should be thrown");
 
-        return this_test.done();
+        t.done();
     });
 
     tizen.callhistory.find(findSuccess, findError);
 });
+
 </script>
 </body>
 </html>
index c34f26ce911693646a335dbe11ae14dc363c79e8..2602cbe8dffee952310bddd179acfe93e1f2e036 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 
 <head>
 <title>CallHistory_removeBatch_with_errorCallback</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -40,7 +40,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_removeBatch_with_errorCallback", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, removeBatchSuccess, removeBatchError,
     findAfterSuccess, findAfterError;
 
@@ -75,6 +75,7 @@ t.step(function () {
 
     tizen.callhistory.find(findSuccess, findError);
 });
+
 </script>
 </body>
 </html>
index 2400604f2fa673f7a7b30e0b5c0c08bf6547a6de..3dae995f60f929ea3d0f88b83599a1ab104d67ac 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeBatch_with_successCallback</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -40,7 +40,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_removeBatch_with_successCallback", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, removeBatchSuccess, retVal = null;
 
 t.step(function () {
@@ -61,6 +61,7 @@ t.step(function () {
 
     tizen.callhistory.find(findSuccess, findError);
 });
+
 </script>
 </body>
 </html>
index 8f142b19cbffbc3d0f9b77cf3f6389025843acd9..4d07414eff69669b7881cd9b0c601a47e54b5a4b 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
-        Guan,JingX <jingx.guan@intel.com>
+        Guan, JingX <jingx.guan@intel.com>
         HaoYunfen <yunfenx.hao@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
@@ -35,7 +35,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeChangeListener</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -49,9 +49,9 @@ Authors:
 
 test(function () {
     var changeListener = {
-        onadded: function(newItems) {},
-        onchanged: function(changedItems) {},
-        onremoved: function(removedItems) {}
+        onadded: function (newItems) {},
+        onchanged: function (changedItems) {},
+        onremoved: function (removedItems) {}
     }, handle, retVal;
 
     handle = tizen.callhistory.addChangeListener(changeListener);
@@ -59,7 +59,8 @@ test(function () {
     retVal = tizen.callhistory.removeChangeListener(handle);
 
     assert_equals(retVal, undefined, "removeChangeListener should return undefined");
-}, "CallHistory_removeChangeListener");
+}, document.title);
+
 </script>
 </body>
 </html>
index 4494d74ec32dda4b980b940d6e0f8c624d910795..ad5f1dd46bad2413d5faa1e9ae015baa84b44caa 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Guan,JingX <jingx.guan@intel.com>
+        Guan, JingX <jingx.guan@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -37,7 +37,7 @@ Authors:
 <link rel="author" title="Intel" href="http://www.intel.com" />
 <meta name="flags" content="" />
 <meta name="assert" content="Check if removeChangeListener method is exist and can be overriden" />
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -48,11 +48,11 @@ Authors:
 //==== 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() {
+test(function () {
     assert_true("removeChangeListener" in tizen.callhistory, "CallHistory has removeChangeListener method");
     check_method_exists(tizen.callhistory, "removeChangeListener");
-}, "CallHistory_removeChangeListener_exist");
-// Check if removeChangeListener method is exist and can be overriden
+}, document.title);
+
 </script>
 </body>
 </html>
index c213cef9f5fe8685ab26382e555b868d625a5f9c..cb3a2782fed7d6c543d5fc546e7bef677317f02b 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_removeChangeListener_handle_InvalidValue</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -30,30 +30,25 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_removeChangeListener_handle_InvalidValue
-//==== LABEL check whether invoking 'removeChangeListener' method with improper argument throws exception properly
+//==== LABEL Check whether invoking 'removeChangeListener' method with improper argument throws exception properly
 //==== PRIORITY P2
 //==== 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
 test(function () {
-    assert_throws({
-        name: INVALID_VALUES_ERR
-    }, function () {
+    assert_throws(INVALID_VALUES_EXCEPTION, function () {
         tizen.callhistory.removeChangeListener("string");
     });
 
-    assert_throws({
-        name: INVALID_VALUES_ERR
-    }, function () {
+    assert_throws(INVALID_VALUES_EXCEPTION, function () {
         tizen.callhistory.removeChangeListener(null);
     });
 
-    assert_throws({
-        name: INVALID_VALUES_ERR
-    }, function () {
+    assert_throws(INVALID_VALUES_EXCEPTION, function () {
         tizen.callhistory.removeChangeListener(undefined);
     });
-}, "CallHistory_removeChangeListener_handle_InvalidValue");
+}, document.title);
+
 </script>
 </body>
 </html>
index 597e220936f42ec9c91737d57a5548de50fdf4e2..89261efb9e648c594fa27275d985d580c813841b 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 
 <head>
 <title>CallHistory_remove_entry_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -49,7 +49,8 @@ test(function () {
                 tizen.callhistory.remove(entry);
             }, exceptionName + "should be thrown - given incorrect entry.");
     }
-});
+}, document.title);
+
 </script>
 </body>
 </html>
index bb218c6ef462831afcae667f3ccc7c096f73d6d1..19f69fc5e5703055b8ab9d64f5d7bf6e42d8164b 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Guan,JingX <jingx.guan@intel.com>
+        Guan, JingX <jingx.guan@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -37,7 +37,7 @@ Authors:
 <link rel="author" title="Intel" href="http://www.intel.com" />
 <meta name="flags" content="" />
 <meta name="assert" content="Check if remove method is exist and can be overriden" />
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -48,10 +48,11 @@ Authors:
 //==== 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() {
+test(function () {
     assert_true("remove" in tizen.callhistory, "CallHistory has remove method");
     check_method_exists(tizen.callhistory, "remove");
-}, "CallHistory_remove_exist");
+}, document.title);
+
 </script>
 </body>
 </html>
index b32e4709230b3f4a897b5deda6b5a52e7a9bc903..6f1a2e6b2cf69de4d3da8683e64e14b52ec23095 100644 (file)
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
   
 Authors:
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Krzysztof Lachacz <k.lachacz@samsung.com>
 
 -->
@@ -34,7 +34,7 @@ Authors:
 <html>
 <head>
 <title>CallHistory_remove_findBySortMode</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/callcommon.js"></script>
 </head>
 
@@ -51,7 +51,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_remove_findBySortMode", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, findAfterSuccess, findAfterError, sortMode, i = 0,
     removedUid, sortMode = new tizen.SortMode("startTime", "DESC");
 
@@ -82,6 +82,7 @@ t.step(function () {
 
     tizen.callhistory.find(findSuccess, findError, null, sortMode);
 });
+
 </script>
 </body>
 </html>
index a249c18e6723f3d5522d2e3a588c7079f7a0bb48..9cda9ee9ed4e6a0e5a853ba65f18a182fc82a28d 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 
 <head>
 <title>CallHistory_remove_missarg</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -34,11 +34,12 @@ Authors:
 //==== 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({ name: "TypeMismatchError" }, function () {
+test(function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         tizen.callhistory.remove();
     }, "Method should throw an exception");
-}, "CallHistory_remove_missarg");
+}, document.title);
+
 </script>
 </body>
 </html>
index 8df90383f73e506b2f85e316957d07e6254a32f1..bbc9876593ff8a9eb7c38ef6afe12b4e4aa6a5c0 100644 (file)
@@ -22,21 +22,22 @@ Authors:
 <html>
 <head>
 <title>RemoteParty_notexist</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: RemoteParty_notexist
-//==== LABEL: Check if RemoteParty cannot be called in new expression and as a function or in new expression
+//==== 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
-//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
+//==== 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");
-}, "RemoteParty_notexist");
+}, document.title);
+
 </script>
 </body>
 </html>
diff --git a/tct-callhistory-tizen-tests/callhistory/support/unitcommon.js b/tct-callhistory-tizen-tests/callhistory/support/unitcommon.js
new file mode 100644 (file)
index 0000000..9f972c1
--- /dev/null
@@ -0,0 +1,559 @@
+/*
+
+Copyright (c) 2013 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+
+
+Authors:
+
+ */
+
+
+MIN_BYTE = -128;
+MAX_BYTE = 127;
+MIN_OCTET = 0;
+MAX_OCTET = 255;
+MIN_SHORT = -32768;
+MAX_SHORT = 32767;
+MIN_UNSIGNED_SHORT = 0;
+MAX_UNSIGNED_SHORT = 65535;
+MIN_LONG = -2147483648;
+MAX_LONG = 2147483647;
+MIN_UNSIGNED_LONG = 0;
+MAX_UNSIGNED_LONG = 4294967295;
+MIN_LONG_LONG = -9223372036854775808;
+MAX_LONG_LONG = 9223372036854775807;
+MIN_UNSIGNED_LONG_LONG = 0;
+MAX_UNSIGNED_LONG_LONG = 18446744073709551615;
+
+TYPE_MISMATCH_EXCEPTION = {name: 'TypeMismatchError'};
+NOT_FOUND_EXCEPTION = {name: 'NotFoundError'};
+INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'};
+IO_EXCEPTION = {name: 'IOError'};
+SECURITY_EXCEPTION = {name: 'SecurityError'};
+
+
+(function () {
+   var head_src = document.head.innerHTML;
+   if (head_src.search(/\/testharness.js\W/) === -1) {
+       document.write('<script language="javascript" src="../resources/testharness.js"></script>\n');
+   }
+   if (head_src.search(/\/testharnessreport.js\W/) === -1) {
+       document.write('<script language="javascript" src="../resources/testharnessreport.js"></script>\n');
+   }
+})();
+
+var _registered_types = {};
+
+function _resolve_registered_type(type) {
+    while (type in _registered_types) {
+        type = _registered_types[type];
+    }
+    return type;
+}
+
+/**
+ * Method checks extra argument for none argument method.
+ * The only check is that method will not throw an exception.
+ * Example usage:
+ * checkExtraArgument(tizen.notification, "removeAll");
+ *
+ * @param object object
+ * @param methodName string - name of the method
+ */
+function checkExtraArgument(object, methodName) {
+    var extraArgument = [
+        null,
+        undefined,
+        "Tizen",
+        1,
+        false,
+        ["one", "two"],
+        {argument: 1},
+        function () {}
+    ], i;
+
+    for (i = 0; i < extraArgument.length; i++) {
+        object[methodName](extraArgument[i]);
+    }
+}
+
+/**
+ * Method to validate conversion.
+ * Example usage:
+ *   conversionTable = getTypeConversionExceptions("functionObject", true);
+ *   for(i = 0; i < conversionTable.length; i++) {
+ *       errorCallback = conversionTable[i][0];
+ *       exceptionName = conversionTable[i][1];
+ *
+ *       assert_throws({name : exceptionName},
+ *       function () {
+ *           tizen.systemsetting.setProperty("HOME_SCREEN",
+ *               propertyValue, successCallback, errorCallback);
+ *       }, exceptionName + " should be thrown - given incorrect errorCallback.");
+ *   }
+ *
+ * @param conversionType
+ * @param isOptional
+ * @returns table of tables which contain value (index 0) and exceptionName (index 1)
+ *
+ */
+function getTypeConversionExceptions(conversionType, isOptional) {
+    var exceptionName = "TypeMismatchError",
+        conversionTable;
+    switch (conversionType) {
+        case "enum":
+            conversionTable = [
+                [undefined, exceptionName],
+                [null, exceptionName],
+                [0, exceptionName],
+                [true, exceptionName],
+                ["dummyInvalidEnumValue", exceptionName],
+                [{ }, exceptionName]
+            ];
+            break;
+        case "double":
+            conversionTable = [
+                [undefined, exceptionName],
+                [NaN, exceptionName],
+                [Number.POSITIVE_INFINITY, exceptionName],
+                [Number.NEGATIVE_INFINITY, exceptionName],
+                ["TIZEN", exceptionName],
+                [{ name : "TIZEN" }, exceptionName],
+                [function () { }, exceptionName]
+            ];
+            break;
+        case "object":
+            conversionTable = [
+                [true, exceptionName],
+                [false, exceptionName],
+                [NaN, exceptionName],
+                [0, exceptionName],
+                ["", exceptionName],
+                ["TIZEN", exceptionName],
+                [undefined, exceptionName]
+            ];
+            if (!isOptional) {
+                conversionTable.push([null, exceptionName]);
+            }
+            break;
+        case "functionObject":
+            conversionTable = [
+                [true, exceptionName],
+                [false, exceptionName],
+                [NaN, exceptionName],
+                [0, exceptionName],
+                ["", exceptionName],
+                ["TIZEN", exceptionName],
+                [[], exceptionName],
+                [{ }, exceptionName],
+                [undefined, exceptionName]
+            ];
+            if (!isOptional) {
+                conversionTable.push([null, exceptionName]);
+            }
+            break;
+        case "array":
+            conversionTable = [
+                [true, exceptionName],
+                [false, exceptionName],
+                [NaN, exceptionName],
+                [0, exceptionName],
+                ["", exceptionName],
+                ["TIZEN", exceptionName],
+                [{ }, exceptionName],
+                [function () { }, exceptionName],
+                [undefined, exceptionName]
+            ];
+            if (!isOptional) {
+                conversionTable.push([null, exceptionName]);
+            }
+            break;
+        case "dictionary":
+            conversionTable = [
+                [true, exceptionName],
+                [false, exceptionName],
+                [NaN, exceptionName],
+                [0, exceptionName],
+                ["", exceptionName],
+                ["TIZEN", exceptionName],
+                [undefined, exceptionName]
+            ];
+            if (!isOptional) {
+                conversionTable.push([null, exceptionName]);
+            }
+            break;
+        default:
+            assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'.");
+    };
+
+    return conversionTable;
+}
+
+
+function assert_type(obj, type, description) {
+    var org_type = type, prop_name, prop_type, prop_value;
+
+    type = _resolve_registered_type(type);
+
+    if (typeof (type) === 'string') {
+        type = type.toLowerCase();
+        switch (type) {
+            case 'object':
+            case 'string':
+            case 'number':
+            case 'function':
+            case 'boolean':
+            case 'undefined':
+            case 'xml':
+                assert_equals(typeof (obj), type, description);
+                break;
+            case 'null':
+                assert_true(obj === null, description);
+                break;
+            case 'array':
+                assert_true(Array.isArray(obj), description);
+                break;
+            case 'date':
+                assert_true(obj instanceof Date, description);
+                break;
+            case 'byte':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_BYTE, description + " - value too high.");
+                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+                break;
+            case 'octet':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_OCTET, description + " - value too high.");
+                assert_equals(obj % 1, 0, description + " - value is not an integer.");
+                break;
+            case 'short':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_SHORT, description + " - value too high.");
+                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+                break;
+            case 'unsigned short':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high.");
+                assert_equals(obj % 1, 0, description + " - value is not an integer.");
+                break;
+            case 'long':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_LONG, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_LONG, description + " - value too high.");
+                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+                break;
+            case 'unsigned long':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high.");
+                assert_equals(obj % 1, 0, description + " - value is not an integer.");
+                break;
+            case 'long long':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high.");
+                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+                break;
+            case 'unsigned long long':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high.");
+                assert_equals(obj % 1, 0, description + " - value is not an integer.");
+                break;
+            default:
+                assert_unreached('Fix your test. Wrong type \'' + org_type + '\'');
+        }
+    } else if (typeof (type) === 'function') {
+        assert_true(obj instanceof type, description);
+    } else if (typeof (type) === 'object') {
+        for (prop_name in type) {
+            prop_type = type[prop_name];
+            if (prop_type === 'function') {
+                assert_inherits(obj, prop_name);
+                assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name);
+            } else {
+                assert_own_property(obj, prop_name);
+            }
+        }
+    } else {
+        assert_unreached('Fix your test. Wrong type ' + org_type);
+    }
+}
+
+function register_type(alias, type_spec) {
+    _registered_types[alias] = type_spec;
+}
+
+/**
+ * Method to check if attribute is const.
+ * Example usage:
+ * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B);
+ *
+ * @param obj  object to test which  has const attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+    var tmp;
+    if (expectedValue === valueToAssign) {
+        assert_unreached("Fix your test. The same values given for "  + attributeName +
+            " in 'value' and 'valueToSet' arguments.");
+    }
+    if (typeof (attributeName) === "string") {
+        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
+        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
+        if (typeof (expectedType) !== "undefined") {
+            if (expectedValue === null) {
+                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
+            } else {
+                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
+            }
+        } else {
+            assert_unreached("Fix your test. Wrong type " + expectedType);
+        }
+        tmp = obj[attributeName];
+        obj[attributeName] = valueToAssign;
+        assert_equals(obj[attributeName], tmp, attributeName + " can be modified.");
+    } else {
+        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
+    }
+}
+
+/**
+ * Method to check if attribute is readonly.
+ * Example usage:
+ * check_readonly(statusNotification, "postedTime", null, 'object', new Date());
+ *
+ * @param obj  object to test which  has readonly attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+    check_const(obj, attributeName, expectedValue, expectedType, valueToAssign);
+}
+
+/**
+ * Method to check if attribute can be set to null.
+ * Example usage:
+ * check_not_nullable(syncInfo, "mode");
+ *
+ * @param obj object to test which has not nullable attribute
+ * @param attributeName attribute name.
+ */
+function check_not_nullable(obj, attributeName)
+{   var old_value = obj[attributeName];
+    obj[attributeName] = null;
+    assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null.");
+    obj[attributeName] = old_value;
+}
+
+/**
+ * Method to check NoInterfaceObject
+ * Example usage:
+ * check_no_interface_object("BluetoothAdapter")
+ *
+ * @param interfaceName interface name
+ */
+function check_no_interface_object(interfaceName) {
+    assert_throws({name: "TypeError"}, function () {
+        tizen[interfaceName]();
+    },"Wrong call as a function");
+    assert_throws({name: "TypeError"}, function () {
+        new tizen[interfaceName]();
+    },"Wrong call as a new function");
+    assert_throws({name: "TypeError"}, function () {
+        ({}) instanceof tizen[interfaceName];
+    },"instanceof exception");
+    assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined.");
+}
+
+
+/**
+ * Method to check Constructors
+ * Example usage:
+ * check_constructor("BluetoothAdapter")
+ *
+ * @param constructorName constructor name
+ */
+
+function check_constructor(constructorName) {
+    assert_true(constructorName in tizen, "No " + constructorName + " in tizen.");
+    assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName);
+    assert_throws({
+        name: "TypeError"
+    }, function () {
+        tizen[constructorName]();
+    }, "Constructor called as function.");
+}
+
+/**
+ * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED).
+ * That method also checks if given method exists in a given object.
+ * Example usage:
+ * check_method_exists(tizen.notification, "get");
+ *
+ * @param obj object with method
+ * @param methodName name of the method to check.
+ */
+function check_method_exists(obj, methodName) {
+    assert_type(obj[methodName], 'function', "Method does not exist.");
+}
+
+/**
+ * Method to check extensibility of given object.
+ * Method checks if new attribute and method can be added.
+ * Example usage:
+ * check_extensibility(tizen.notification);
+ *
+ * @param obj object to check
+ */
+function check_extensibility(obj) {
+    var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue";
+    obj.newDummyMethod = function() {
+        return dummyMethodResult;
+    }
+    assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method.");
+
+    obj.newDummyAttribute = dummyAttribute;
+    assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute.");
+}
+
+/**
+ * Method to check if attribute can be modify.
+ * Example usage:
+ * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html");
+ *
+ * @param obj  object to test which has not readonly attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+    if (expectedValue === valueToAssign) {
+        assert_unreached("Fix your test. The same values given for "  + attributeName +
+            " in 'value' and 'valueToSet' arguments.");
+    }
+    if (typeof (attributeName) === "string") {
+        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
+        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
+        if (typeof (expectedType) !== "undefined") {
+            if (expectedValue === null) {
+                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
+            } else {
+                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
+            }
+        } else {
+            assert_unreached("Fix your test. Wrong type " + expectedType);
+        }
+        obj[attributeName] = valueToAssign;
+        assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified.");
+    } else {
+        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
+    }
+}
+
+/**
+ * Method to check if whole array can be overwritten with an invalid value.
+ * Sample usage:
+ * check_invalid_array_assignments(message, "to", false);
+ *
+ * @param obj object which has the array as its property
+ * @param array name of the array to check
+ * @param isNullable indicates if the array can be null
+ */
+function check_invalid_array_assignments(obj, array, isNullable) {
+    var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}],
+        val = obj[array], i;
+
+    if (!isNullable) {
+        obj[array] = null;
+        assert_not_equals(obj[array], null, "Non-nullable array was set to null");
+        assert_type(obj[array], "array", "Non-nullable array type changed after assigning null");
+        assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null");
+    }
+
+    for (i = 0 ; i < args.length ; i++) {
+        obj[array] = args[i];
+        assert_type(obj[array], "array", "Array type changed after assigning an invalid value");
+        assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value");
+    }
+}
+
+/**
+ * Method to check if an object can be overwritten with an invalid value.
+ * Sample usage:
+ * check_invalid_object_assignments(message, "body", false);
+ *
+ * @param parentObj object which has the 'obj' object as its property
+ * @param obj name of the object to check
+ * @param isNullable indicates if the object can be null
+ */
+function check_invalid_obj_assignments(parentObj, obj, isNullable) {
+    var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}],
+        val = parentObj[obj], i;
+
+    if (!isNullable) {
+        parentObj[obj] = null;
+        assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null");
+    }
+
+    for (i = 0 ; i < args.length ; i++) {
+        parentObj[obj] = args[i];
+        assert_equals(parentObj[obj], val, "The object was set to " + args[i]);
+    }
+}
+
+/**
+ * Method to validate conversion for listeners.
+ * Example usage:
+ * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]);
+ * for(i = 0; i < incorrectListeners.length; i++) {
+ *     packageInformationEventCallback  = incorrectListeners[i][0];
+ *     exceptionName = incorrectListeners[i][1];
+ *     assert_throws({name : exceptionName},
+ *        function () {
+ *             tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
+ *         }, exceptionName + " should be thrown - given incorrect successCallback.");
+ * }
+ *
+ *
+ * @param callbackNames Array with names
+ * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1)
+ *
+ */
+function getListenerConversionExceptions(callbackNames) {
+    var result = [], conversionTable, i, j, listenerName;
+    conversionTable = getTypeConversionExceptions("functionObject", false);
+
+    for (i = 0; i < callbackNames.length; i++) {
+        for (j = 0; j < conversionTable.length; j++) {
+            listenerName = {};
+            listenerName[callbackNames[i]] = conversionTable[j][0];
+            result.push([listenerName, conversionTable[j][1]]);
+        }
+    }
+
+    return result;
+}
diff --git a/tct-callhistory-tizen-tests/resources/unitcommon.js b/tct-callhistory-tizen-tests/resources/unitcommon.js
deleted file mode 100644 (file)
index 9f972c1..0000000
+++ /dev/null
@@ -1,559 +0,0 @@
-/*
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-
- */
-
-
-MIN_BYTE = -128;
-MAX_BYTE = 127;
-MIN_OCTET = 0;
-MAX_OCTET = 255;
-MIN_SHORT = -32768;
-MAX_SHORT = 32767;
-MIN_UNSIGNED_SHORT = 0;
-MAX_UNSIGNED_SHORT = 65535;
-MIN_LONG = -2147483648;
-MAX_LONG = 2147483647;
-MIN_UNSIGNED_LONG = 0;
-MAX_UNSIGNED_LONG = 4294967295;
-MIN_LONG_LONG = -9223372036854775808;
-MAX_LONG_LONG = 9223372036854775807;
-MIN_UNSIGNED_LONG_LONG = 0;
-MAX_UNSIGNED_LONG_LONG = 18446744073709551615;
-
-TYPE_MISMATCH_EXCEPTION = {name: 'TypeMismatchError'};
-NOT_FOUND_EXCEPTION = {name: 'NotFoundError'};
-INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'};
-IO_EXCEPTION = {name: 'IOError'};
-SECURITY_EXCEPTION = {name: 'SecurityError'};
-
-
-(function () {
-   var head_src = document.head.innerHTML;
-   if (head_src.search(/\/testharness.js\W/) === -1) {
-       document.write('<script language="javascript" src="../resources/testharness.js"></script>\n');
-   }
-   if (head_src.search(/\/testharnessreport.js\W/) === -1) {
-       document.write('<script language="javascript" src="../resources/testharnessreport.js"></script>\n');
-   }
-})();
-
-var _registered_types = {};
-
-function _resolve_registered_type(type) {
-    while (type in _registered_types) {
-        type = _registered_types[type];
-    }
-    return type;
-}
-
-/**
- * Method checks extra argument for none argument method.
- * The only check is that method will not throw an exception.
- * Example usage:
- * checkExtraArgument(tizen.notification, "removeAll");
- *
- * @param object object
- * @param methodName string - name of the method
- */
-function checkExtraArgument(object, methodName) {
-    var extraArgument = [
-        null,
-        undefined,
-        "Tizen",
-        1,
-        false,
-        ["one", "two"],
-        {argument: 1},
-        function () {}
-    ], i;
-
-    for (i = 0; i < extraArgument.length; i++) {
-        object[methodName](extraArgument[i]);
-    }
-}
-
-/**
- * Method to validate conversion.
- * Example usage:
- *   conversionTable = getTypeConversionExceptions("functionObject", true);
- *   for(i = 0; i < conversionTable.length; i++) {
- *       errorCallback = conversionTable[i][0];
- *       exceptionName = conversionTable[i][1];
- *
- *       assert_throws({name : exceptionName},
- *       function () {
- *           tizen.systemsetting.setProperty("HOME_SCREEN",
- *               propertyValue, successCallback, errorCallback);
- *       }, exceptionName + " should be thrown - given incorrect errorCallback.");
- *   }
- *
- * @param conversionType
- * @param isOptional
- * @returns table of tables which contain value (index 0) and exceptionName (index 1)
- *
- */
-function getTypeConversionExceptions(conversionType, isOptional) {
-    var exceptionName = "TypeMismatchError",
-        conversionTable;
-    switch (conversionType) {
-        case "enum":
-            conversionTable = [
-                [undefined, exceptionName],
-                [null, exceptionName],
-                [0, exceptionName],
-                [true, exceptionName],
-                ["dummyInvalidEnumValue", exceptionName],
-                [{ }, exceptionName]
-            ];
-            break;
-        case "double":
-            conversionTable = [
-                [undefined, exceptionName],
-                [NaN, exceptionName],
-                [Number.POSITIVE_INFINITY, exceptionName],
-                [Number.NEGATIVE_INFINITY, exceptionName],
-                ["TIZEN", exceptionName],
-                [{ name : "TIZEN" }, exceptionName],
-                [function () { }, exceptionName]
-            ];
-            break;
-        case "object":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "functionObject":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [[], exceptionName],
-                [{ }, exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "array":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [{ }, exceptionName],
-                [function () { }, exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "dictionary":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        default:
-            assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'.");
-    };
-
-    return conversionTable;
-}
-
-
-function assert_type(obj, type, description) {
-    var org_type = type, prop_name, prop_type, prop_value;
-
-    type = _resolve_registered_type(type);
-
-    if (typeof (type) === 'string') {
-        type = type.toLowerCase();
-        switch (type) {
-            case 'object':
-            case 'string':
-            case 'number':
-            case 'function':
-            case 'boolean':
-            case 'undefined':
-            case 'xml':
-                assert_equals(typeof (obj), type, description);
-                break;
-            case 'null':
-                assert_true(obj === null, description);
-                break;
-            case 'array':
-                assert_true(Array.isArray(obj), description);
-                break;
-            case 'date':
-                assert_true(obj instanceof Date, description);
-                break;
-            case 'byte':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_BYTE, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'octet':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_OCTET, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'short':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_SHORT, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned short':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_LONG, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'long long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned long long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            default:
-                assert_unreached('Fix your test. Wrong type \'' + org_type + '\'');
-        }
-    } else if (typeof (type) === 'function') {
-        assert_true(obj instanceof type, description);
-    } else if (typeof (type) === 'object') {
-        for (prop_name in type) {
-            prop_type = type[prop_name];
-            if (prop_type === 'function') {
-                assert_inherits(obj, prop_name);
-                assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name);
-            } else {
-                assert_own_property(obj, prop_name);
-            }
-        }
-    } else {
-        assert_unreached('Fix your test. Wrong type ' + org_type);
-    }
-}
-
-function register_type(alias, type_spec) {
-    _registered_types[alias] = type_spec;
-}
-
-/**
- * Method to check if attribute is const.
- * Example usage:
- * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B);
- *
- * @param obj  object to test which  has const attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    var tmp;
-    if (expectedValue === valueToAssign) {
-        assert_unreached("Fix your test. The same values given for "  + attributeName +
-            " in 'value' and 'valueToSet' arguments.");
-    }
-    if (typeof (attributeName) === "string") {
-        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
-        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
-        if (typeof (expectedType) !== "undefined") {
-            if (expectedValue === null) {
-                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
-            } else {
-                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
-            }
-        } else {
-            assert_unreached("Fix your test. Wrong type " + expectedType);
-        }
-        tmp = obj[attributeName];
-        obj[attributeName] = valueToAssign;
-        assert_equals(obj[attributeName], tmp, attributeName + " can be modified.");
-    } else {
-        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
-    }
-}
-
-/**
- * Method to check if attribute is readonly.
- * Example usage:
- * check_readonly(statusNotification, "postedTime", null, 'object', new Date());
- *
- * @param obj  object to test which  has readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    check_const(obj, attributeName, expectedValue, expectedType, valueToAssign);
-}
-
-/**
- * Method to check if attribute can be set to null.
- * Example usage:
- * check_not_nullable(syncInfo, "mode");
- *
- * @param obj object to test which has not nullable attribute
- * @param attributeName attribute name.
- */
-function check_not_nullable(obj, attributeName)
-{   var old_value = obj[attributeName];
-    obj[attributeName] = null;
-    assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null.");
-    obj[attributeName] = old_value;
-}
-
-/**
- * Method to check NoInterfaceObject
- * Example usage:
- * check_no_interface_object("BluetoothAdapter")
- *
- * @param interfaceName interface name
- */
-function check_no_interface_object(interfaceName) {
-    assert_throws({name: "TypeError"}, function () {
-        tizen[interfaceName]();
-    },"Wrong call as a function");
-    assert_throws({name: "TypeError"}, function () {
-        new tizen[interfaceName]();
-    },"Wrong call as a new function");
-    assert_throws({name: "TypeError"}, function () {
-        ({}) instanceof tizen[interfaceName];
-    },"instanceof exception");
-    assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined.");
-}
-
-
-/**
- * Method to check Constructors
- * Example usage:
- * check_constructor("BluetoothAdapter")
- *
- * @param constructorName constructor name
- */
-
-function check_constructor(constructorName) {
-    assert_true(constructorName in tizen, "No " + constructorName + " in tizen.");
-    assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName);
-    assert_throws({
-        name: "TypeError"
-    }, function () {
-        tizen[constructorName]();
-    }, "Constructor called as function.");
-}
-
-/**
- * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED).
- * That method also checks if given method exists in a given object.
- * Example usage:
- * check_method_exists(tizen.notification, "get");
- *
- * @param obj object with method
- * @param methodName name of the method to check.
- */
-function check_method_exists(obj, methodName) {
-    assert_type(obj[methodName], 'function', "Method does not exist.");
-}
-
-/**
- * Method to check extensibility of given object.
- * Method checks if new attribute and method can be added.
- * Example usage:
- * check_extensibility(tizen.notification);
- *
- * @param obj object to check
- */
-function check_extensibility(obj) {
-    var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue";
-    obj.newDummyMethod = function() {
-        return dummyMethodResult;
-    }
-    assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method.");
-
-    obj.newDummyAttribute = dummyAttribute;
-    assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute.");
-}
-
-/**
- * Method to check if attribute can be modify.
- * Example usage:
- * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html");
- *
- * @param obj  object to test which has not readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    if (expectedValue === valueToAssign) {
-        assert_unreached("Fix your test. The same values given for "  + attributeName +
-            " in 'value' and 'valueToSet' arguments.");
-    }
-    if (typeof (attributeName) === "string") {
-        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
-        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
-        if (typeof (expectedType) !== "undefined") {
-            if (expectedValue === null) {
-                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
-            } else {
-                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
-            }
-        } else {
-            assert_unreached("Fix your test. Wrong type " + expectedType);
-        }
-        obj[attributeName] = valueToAssign;
-        assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified.");
-    } else {
-        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
-    }
-}
-
-/**
- * Method to check if whole array can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_array_assignments(message, "to", false);
- *
- * @param obj object which has the array as its property
- * @param array name of the array to check
- * @param isNullable indicates if the array can be null
- */
-function check_invalid_array_assignments(obj, array, isNullable) {
-    var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}],
-        val = obj[array], i;
-
-    if (!isNullable) {
-        obj[array] = null;
-        assert_not_equals(obj[array], null, "Non-nullable array was set to null");
-        assert_type(obj[array], "array", "Non-nullable array type changed after assigning null");
-        assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null");
-    }
-
-    for (i = 0 ; i < args.length ; i++) {
-        obj[array] = args[i];
-        assert_type(obj[array], "array", "Array type changed after assigning an invalid value");
-        assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value");
-    }
-}
-
-/**
- * Method to check if an object can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_object_assignments(message, "body", false);
- *
- * @param parentObj object which has the 'obj' object as its property
- * @param obj name of the object to check
- * @param isNullable indicates if the object can be null
- */
-function check_invalid_obj_assignments(parentObj, obj, isNullable) {
-    var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}],
-        val = parentObj[obj], i;
-
-    if (!isNullable) {
-        parentObj[obj] = null;
-        assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null");
-    }
-
-    for (i = 0 ; i < args.length ; i++) {
-        parentObj[obj] = args[i];
-        assert_equals(parentObj[obj], val, "The object was set to " + args[i]);
-    }
-}
-
-/**
- * Method to validate conversion for listeners.
- * Example usage:
- * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]);
- * for(i = 0; i < incorrectListeners.length; i++) {
- *     packageInformationEventCallback  = incorrectListeners[i][0];
- *     exceptionName = incorrectListeners[i][1];
- *     assert_throws({name : exceptionName},
- *        function () {
- *             tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
- *         }, exceptionName + " should be thrown - given incorrect successCallback.");
- * }
- *
- *
- * @param callbackNames Array with names
- * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1)
- *
- */
-function getListenerConversionExceptions(callbackNames) {
-    var result = [], conversionTable, i, j, listenerName;
-    conversionTable = getTypeConversionExceptions("functionObject", false);
-
-    for (i = 0; i < callbackNames.length; i++) {
-        for (j = 0; j < conversionTable.length; j++) {
-            listenerName = {};
-            listenerName[callbackNames[i]] = conversionTable[j][0];
-            result.push([listenerName, conversionTable[j][1]]);
-        }
-    }
-
-    return result;
-}
index 2017f2c41fce02a13f499a5e6d7af6fbb94dbecc..5a1c3d595ff1ac4baccc8640e9bc322e903b94ff 100644 (file)
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether addChangeListener() registers listener with null onadded argument" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_addChangeListener_observer_onadded_null">
+      <testcase purpose="Check whether addChangeListener() registers listener with null onadded argument" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_addChangeListener_observer_onadded_null">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onadded_null.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether addChangeListener() registers listener with undefined onadded argument" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_addChangeListener_observer_onadded_undefined">
+      <testcase purpose="Check whether addChangeListener() registers listener with undefined onadded argument" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_addChangeListener_observer_onadded_undefined">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onadded_undefined.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether addChangeListener() registers listener with null onchanged argument" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_addChangeListener_observer_onchanged_null">
+      <testcase purpose="Check whether addChangeListener() registers listener with null onchanged argument" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_addChangeListener_observer_onchanged_null">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onchanged_null.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether addChangeListener() registers listener with undefined onchanged argument" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_addChangeListener_observer_onchanged_undefined">
+      <testcase purpose="Check whether addChangeListener() registers listener with undefined onchanged argument" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_addChangeListener_observer_onchanged_undefined">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onchanged_undefined.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method called with null errorCallback lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_errorCallback_null">
+      <testcase purpose="Check whether find() method called with null errorCallback lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_errorCallback_null">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_errorCallback_null.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method called with null filter lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_filter_null">
+      <testcase purpose="Check whether find() method called with null filter lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_filter_null">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_null.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method called with null filter and sortMode lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_sortMode_null">
+      <testcase purpose="Check whether find() method called with null filter and sortMode lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_sortMode_null">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_sortMode_null.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method called with null filter, sortMode and limit lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_limit_null">
+      <testcase purpose="Check whether find() method called with null filter, sortMode and limit lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_limit_null">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_null.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method called with null filter, sortMode, limit and offset lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_offset_null">
+      <testcase purpose="Check whether find() method called with null filter, sortMode, limit and offset lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_offset_null">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_offset_null.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether removeBatch() method called with null successCallback deletes two entries from call history" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeBatch_successCallback_null">
+      <testcase purpose="Check whether removeBatch() method called with null successCallback deletes two entries from call history" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeBatch_successCallback_null">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_null.html</test_script_entry>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether removeBatch() method called with null errorCallback deletes two entries from call history entries" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeBatch_errorCallback_null">
+      <testcase purpose="Check whether removeBatch() method called with null errorCallback deletes two entries from call history entries" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeBatch_errorCallback_null">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_null.html</test_script_entry>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if CallHistory exists and implements methods" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P3" id="CallHistory_in_tizen">
+      <testcase purpose="Check if CallHistory exists and implements methods" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P3" id="CallHistory_in_tizen">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_in_tizen.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method called with undefined errorCallback lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_find_errorCallback_undefined">
+      <testcase purpose="Check whether find() method called with undefined errorCallback lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_find_errorCallback_undefined">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_errorCallback_undefined.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether removeBatch() method called with undefined successCallback throws exception" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P2" id="CallHistory_removeBatch_successCallback_undefined">
+      <testcase purpose="Check whether removeBatch() method called with undefined successCallback throws exception" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P2" id="CallHistory_removeBatch_successCallback_undefined">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_undefined.html</test_script_entry>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether removeBatch() method called with undefined errorCallback throws exception" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P2" id="CallHistory_removeBatch_errorCallback_undefined">
+      <testcase purpose="Check whether removeBatch() method called with undefined errorCallback throws exception" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P2" id="CallHistory_removeBatch_errorCallback_undefined">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_undefined.html</test_script_entry>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method called with null filter and undefined sortMode lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_find_sortMode_undefined">
+      <testcase purpose="Check whether find() method called with null filter and undefined sortMode lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_find_sortMode_undefined">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_sortMode_undefined.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method called with undefined filter lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_find_filter_undefined">
+      <testcase purpose="Check whether find() method called with undefined filter lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_find_filter_undefined">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_undefined.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if find() method calls successCallback function properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_without_errorCallback">
+      <testcase purpose="Check if find() method calls successCallback function properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_without_errorCallback">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_without_errorCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if CallHistory items matching the supplied filter are found properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_filter">
+      <testcase purpose="Check if CallHistory items matching the supplied filter are found properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_filter">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method called with successCallback, errorCallback, filter and sortMode lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_sortMode">
+      <testcase purpose="Check whether find() method called with successCallback, errorCallback, filter and sortMode lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_sortMode">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_sortMode.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method called with successCallback, errorCallback, filter, sortMode and limit lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_limit">
+      <testcase purpose="Check whether find() method called with successCallback, errorCallback, filter, sortMode and limit lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_limit">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit.html</test_script_entry>
         </description>
         <specs>
           <spec>
             <spec_assertion interface="CallHistory" element_type="method" element_name="find" specification="Callhistory" section="Social" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html#findid2508192</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method called with successCallback, errorCallback, filter, sortMode limit and offset lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_offset">
+      <testcase purpose="Check whether find() method called with successCallback, errorCallback, filter, sortMode limit and offset lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_offset">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_offset.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if find() method calls successCallback function properly for offset equal 0" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_offset_0">
+      <testcase purpose="Check if find() method calls successCallback function properly for offset equal 0" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_offset_0">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_offset_0.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method called with null errorCallback and specified filter lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_errorCallback_null_filter">
+      <testcase purpose="Check whether find() method called with null errorCallback and specified filter lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_errorCallback_null_filter">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_errorCallback_null_filter.html</test_script_entry>
         </description>
         <specs>
           <spec>
             <spec_assertion interface="CallHistory" element_type="method" element_name="find" specification="Callhistory" section="Social" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html#findid2508192</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method called with null filter and specified sortMode lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_filter_null_sortMode">
+      <testcase purpose="Check whether find() method called with null filter and specified sortMode lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_filter_null_sortMode">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_null_sortMode.html</test_script_entry>
         </description>
         <specs>
           <spec>
             <spec_assertion interface="CallHistory" element_type="method" element_name="find" specification="Callhistory" section="Social" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html#findid2508192</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method called with null filter, null sortMode and specified limit lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_filter_sortMode_null">
+      <testcase purpose="Check whether find() method called with null filter, null sortMode and specified limit lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_filter_sortMode_null">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_sortMode_null.html</test_script_entry>
         </description>
         <specs>
           <spec>
             <spec_assertion interface="CallHistory" element_type="method" element_name="find" specification="Callhistory" section="Social" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html#findid2508192</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method lists CallHistory items for various composite filters" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_filter_compositeFilters">
+      <testcase purpose="Check whether find() method lists CallHistory items for various composite filters" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_filter_compositeFilters">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_compositeFilters.html</test_script_entry>
         </description>
         <specs>
           <spec>
             <spec_assertion interface="CallHistory" element_type="method" element_name="find" specification="Callhistory" section="Social" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html#findid2508192</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method lists CallHistory items for various range filters" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_filter_rangeFilters">
+      <testcase purpose="Check whether find() method lists CallHistory items for various range filters" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_filter_rangeFilters">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_rangeFilters.html</test_script_entry>
         </description>
         <specs>
           <spec>
             <spec_assertion interface="CallHistory" element_type="method" element_name="find" specification="Callhistory" section="Social" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html#findid2508192</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method called with null filter, sortMode, limit and specified offset lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_filter_sortMode_limit_null_offset">
+      <testcase purpose="Check whether find() method called with null filter, sortMode, limit and specified offset lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_filter_sortMode_limit_null_offset">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_sortMode_limit_null_offset.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method lists CallHistory items for various filters" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_filter_various">
+      <testcase purpose="Check whether find() method lists CallHistory items for various filters" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_filter_various">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_various.html</test_script_entry>
         </description>
         <specs>
           <spec>
             <spec_assertion interface="CallHistory" element_type="method" element_name="find" specification="Callhistory" section="Social" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html#findid2508192</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether find() method called with additional arguments lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_limit_1">
+      <testcase purpose="Check whether find() method called with additional arguments lists CallHistory items" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_find_limit_1">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_1.html</test_script_entry>
         </description>
         <specs>
           <spec>
             <spec_assertion interface="CallHistory" element_type="method" element_name="find" specification="Callhistory" section="Social" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html#findid2508192</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether addChangeListener() registers listener with onadded argument" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_addChangeListener_onadded">
+      <testcase purpose="Check whether addChangeListener() registers listener with onadded argument" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_addChangeListener_onadded">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_onadded.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether addChangeListener() registers listener with onchanged argument" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_addChangeListener_onchanged">
+      <testcase purpose="Check whether addChangeListener() registers listener with onchanged argument" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P1" id="CallHistory_addChangeListener_onchanged">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_onchanged.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether invoking 'addChangeListener' method with incorect onadded argument throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_addChangeListener_observer_onadded_invalid">
+      <testcase purpose="Check whether invoking 'addChangeListener' method with incorect onadded argument throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_addChangeListener_observer_onadded_invalid">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onadded_invalid.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether invoking 'addChangeListener' method with incorect onchanged argument throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_addChangeListener_observer_onchanged_invalid">
+      <testcase purpose="Check whether invoking 'addChangeListener' method with incorect onchanged argument throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_addChangeListener_observer_onchanged_invalid">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onchanged_invalid.html</test_script_entry>
         </description>
         <specs>
           <spec>
             <spec_assertion interface="CallHistory" element_type="method" element_name="addChangeListener" specification="Callhistory" section="Social" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html#addChangeListenerid2509112</spec_url>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether invoking 'removeChangeListener' method with improper argument throws exception properly" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_removeChangeListener_handle_InvalidValue">
+      <testcase purpose="Check whether invoking 'removeChangeListener' method with improper argument throws exception properly" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P2" id="CallHistory_removeChangeListener_handle_InvalidValue">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeChangeListener_handle_InvalidValue.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if CallHistoryObject not exist" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P3" id="CallHistoryObject_notexist">
+      <testcase purpose="Check if CallHistoryObject not exist" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="auto" priority="P3" id="CallHistoryObject_notexist">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryObject_notexist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check CallHistoryEntry attributes and functions" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P3" id="CallHistoryEntry">
+      <testcase purpose="Check CallHistoryEntry attributes and functions" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P3" id="CallHistoryEntry">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
           <steps>
index c5eefb1cac481b3f062680fa0ded143595d97d12..fcfbdf5671bdf88753f73c741b6158fed5bbe028 100644 (file)
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_nullableArgs_null.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether addChangeListener() registers listener with null onadded argument" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_addChangeListener_observer_onadded_null">
+      <testcase purpose="Check whether addChangeListener() registers listener with null onadded argument" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_addChangeListener_observer_onadded_null">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onadded_null.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether addChangeListener() registers listener with undefined onadded argument" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_addChangeListener_observer_onadded_undefined">
+      <testcase purpose="Check whether addChangeListener() registers listener with undefined onadded argument" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_addChangeListener_observer_onadded_undefined">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onadded_undefined.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether addChangeListener() registers listener with null onchanged argument" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_addChangeListener_observer_onchanged_null">
+      <testcase purpose="Check whether addChangeListener() registers listener with null onchanged argument" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_addChangeListener_observer_onchanged_null">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onchanged_null.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether addChangeListener() registers listener with undefined onchanged argument" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_addChangeListener_observer_onchanged_undefined">
+      <testcase purpose="Check whether addChangeListener() registers listener with undefined onchanged argument" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_addChangeListener_observer_onchanged_undefined">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onchanged_undefined.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method called with null errorCallback lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_errorCallback_null">
+      <testcase purpose="Check whether find() method called with null errorCallback lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_errorCallback_null">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_errorCallback_null.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method called with null filter lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter_null">
+      <testcase purpose="Check whether find() method called with null filter lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter_null">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_null.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method called with null filter and sortMode lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_sortMode_null">
+      <testcase purpose="Check whether find() method called with null filter and sortMode lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_sortMode_null">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_sortMode_null.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method called with null filter, sortMode and limit lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_limit_null">
+      <testcase purpose="Check whether find() method called with null filter, sortMode and limit lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_limit_null">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_null.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method called with null filter, sortMode, limit and offset lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_offset_null">
+      <testcase purpose="Check whether find() method called with null filter, sortMode, limit and offset lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_offset_null">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_offset_null.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether removeBatch() method called with null successCallback deletes two entries from call history" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_successCallback_null">
+      <testcase purpose="Check whether removeBatch() method called with null successCallback deletes two entries from call history" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_successCallback_null">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_null.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether removeBatch() method called with null errorCallback deletes two entries from call history entries" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_errorCallback_null">
+      <testcase purpose="Check whether removeBatch() method called with null errorCallback deletes two entries from call history entries" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_errorCallback_null">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_null.html</test_script_entry>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/RemoteParty_notexist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if CallHistory exists and implements methods" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_in_tizen">
+      <testcase purpose="Check if CallHistory exists and implements methods" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_in_tizen">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_in_tizen.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method called with undefined errorCallback lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_errorCallback_undefined">
+      <testcase purpose="Check whether find() method called with undefined errorCallback lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_errorCallback_undefined">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_errorCallback_undefined.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether removeBatch() method called with undefined successCallback throws exception" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_successCallback_undefined">
+      <testcase purpose="Check whether removeBatch() method called with undefined successCallback throws exception" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_successCallback_undefined">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_undefined.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether removeBatch() method called with undefined errorCallback throws exception" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_errorCallback_undefined">
+      <testcase purpose="Check whether removeBatch() method called with undefined errorCallback throws exception" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_errorCallback_undefined">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_undefined.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method called with null filter and undefined sortMode lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_sortMode_undefined">
+      <testcase purpose="Check whether find() method called with null filter and undefined sortMode lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_sortMode_undefined">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_sortMode_undefined.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method called with undefined filter lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter_undefined">
+      <testcase purpose="Check whether find() method called with undefined filter lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter_undefined">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_undefined.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryChangeCallback_onremoved.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if find() method calls successCallback function properly" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_without_errorCallback">
+      <testcase purpose="Check if find() method calls successCallback function properly" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_without_errorCallback">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_without_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if CallHistory items matching the supplied filter are found properly" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter">
+      <testcase purpose="Check if CallHistory items matching the supplied filter are found properly" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method called with successCallback, errorCallback, filter and sortMode lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_sortMode">
+      <testcase purpose="Check whether find() method called with successCallback, errorCallback, filter and sortMode lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_sortMode">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_sortMode.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method called with successCallback, errorCallback, filter, sortMode and limit lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_limit">
+      <testcase purpose="Check whether find() method called with successCallback, errorCallback, filter, sortMode and limit lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_limit">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method called with successCallback, errorCallback, filter, sortMode limit and offset lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_offset">
+      <testcase purpose="Check whether find() method called with successCallback, errorCallback, filter, sortMode limit and offset lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_offset">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_offset.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if find() method calls successCallback function properly for offset equal 0" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_offset_0">
+      <testcase purpose="Check if find() method calls successCallback function properly for offset equal 0" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_offset_0">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_offset_0.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method called with null errorCallback and specified filter lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_errorCallback_null_filter">
+      <testcase purpose="Check whether find() method called with null errorCallback and specified filter lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_errorCallback_null_filter">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_errorCallback_null_filter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method called with null filter and specified sortMode lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter_null_sortMode">
+      <testcase purpose="Check whether find() method called with null filter and specified sortMode lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter_null_sortMode">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_null_sortMode.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method called with null filter, null sortMode and specified limit lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter_sortMode_null">
+      <testcase purpose="Check whether find() method called with null filter, null sortMode and specified limit lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter_sortMode_null">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_sortMode_null.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method lists CallHistory items for various composite filters" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter_compositeFilters">
+      <testcase purpose="Check whether find() method lists CallHistory items for various composite filters" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter_compositeFilters">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_compositeFilters.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method lists CallHistory items for various range filters" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter_rangeFilters">
+      <testcase purpose="Check whether find() method lists CallHistory items for various range filters" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter_rangeFilters">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_rangeFilters.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method called with null filter, sortMode, limit and specified offset lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter_sortMode_limit_null_offset">
+      <testcase purpose="Check whether find() method called with null filter, sortMode, limit and specified offset lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter_sortMode_limit_null_offset">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_sortMode_limit_null_offset.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method lists CallHistory items for various filters" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter_various">
+      <testcase purpose="Check whether find() method lists CallHistory items for various filters" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_filter_various">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_various.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether find() method called with additional arguments lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_limit_1">
+      <testcase purpose="Check whether find() method called with additional arguments lists CallHistory items" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_find_limit_1">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_1.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether addChangeListener() registers listener with onadded argument" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_addChangeListener_onadded">
+      <testcase purpose="Check whether addChangeListener() registers listener with onadded argument" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_addChangeListener_onadded">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_onadded.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether addChangeListener() registers listener with onchanged argument" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_addChangeListener_onchanged">
+      <testcase purpose="Check whether addChangeListener() registers listener with onchanged argument" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_addChangeListener_onchanged">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_onchanged.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether invoking 'addChangeListener' method with incorect onadded argument throws exception properly" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_addChangeListener_observer_onadded_invalid">
+      <testcase purpose="Check whether invoking 'addChangeListener' method with incorect onadded argument throws exception properly" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_addChangeListener_observer_onadded_invalid">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onadded_invalid.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether invoking 'addChangeListener' method with incorect onchanged argument throws exception properly" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_addChangeListener_observer_onchanged_invalid">
+      <testcase purpose="Check whether invoking 'addChangeListener' method with incorect onchanged argument throws exception properly" onload_delay="90" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_addChangeListener_observer_onchanged_invalid">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_addChangeListener_observer_onchanged_invalid.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether invoking 'removeChangeListener' method with improper argument throws exception properly" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_removeChangeListener_handle_InvalidValue">
+      <testcase purpose="Check whether invoking 'removeChangeListener' method with improper argument throws exception properly" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistory_removeChangeListener_handle_InvalidValue">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeChangeListener_handle_InvalidValue.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if CallHistoryObject not exist" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistoryObject_notexist">
+      <testcase purpose="Check if CallHistoryObject not exist" component="TizenAPI/Social/Callhistory" execution_type="auto" id="CallHistoryObject_notexist">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryObject_notexist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check CallHistoryEntry attributes and functions" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryEntry">
+      <testcase purpose="Check CallHistoryEntry attributes and functions" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryEntry">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
           <steps>