[DataSync] various fixes
authorAndrzej Krolikowski <a.krolikowsk@samsung.com>
Fri, 4 Oct 2013 10:50:34 +0000 (12:50 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Fri, 4 Oct 2013 12:22:03 +0000 (12:22 +0000)
Change-Id: I300d1b056ba4a27badda006aa49436570b2048da

67 files changed:
tct-datasync-tizen-tests/datasync/DataSynchronizationManagerObject_notexist.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_add.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_add_exist.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_add_missarg.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_add_profile_TypeMismatch.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_add_profile_invalid_obj.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_extend.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_get.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_getAll.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_getAll_exist.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_getAll_extra_argument.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_getLastSyncStatistics_exist.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_getMaxProfilesNum.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_getMaxProfilesNum_exist.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_getMaxProfilesNum_extra_argument.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_getProfilesNum.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_getProfilesNum_exist.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_getProfilesNum_extra_argument.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_get_exist.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_in_tizen.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_notexist.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_remove.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_remove_exist.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_startSync.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_startSync_exist.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_startSync_progressCallback_TypeMismatch.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_startSync_progressCallback_invalid_cb.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_startSync_with_callback.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_stopSync.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_stopSync_exist.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_update.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_update_exist.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_update_missarg.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_update_profile_TypeMismatch.html
tct-datasync-tizen-tests/datasync/DataSynchronizationManager_update_profile_invalid_obj.html
tct-datasync-tizen-tests/datasync/SyncInfo_constructor.html
tct-datasync-tizen-tests/datasync/SyncInfo_constructor_interval.html
tct-datasync-tizen-tests/datasync/SyncInfo_constructor_type.html
tct-datasync-tizen-tests/datasync/SyncInfo_exist.html
tct-datasync-tizen-tests/datasync/SyncInfo_extend.html
tct-datasync-tizen-tests/datasync/SyncInfo_id_attribute.html
tct-datasync-tizen-tests/datasync/SyncInfo_interval_attribute.html
tct-datasync-tizen-tests/datasync/SyncInfo_mode_attribute.html
tct-datasync-tizen-tests/datasync/SyncInfo_password_attribute.html
tct-datasync-tizen-tests/datasync/SyncInfo_type_attribute.html
tct-datasync-tizen-tests/datasync/SyncInfo_url_attribute.html
tct-datasync-tizen-tests/datasync/SyncProfileInfo_constructor.html
tct-datasync-tizen-tests/datasync/SyncProfileInfo_exist.html
tct-datasync-tizen-tests/datasync/SyncProfileInfo_extend.html
tct-datasync-tizen-tests/datasync/SyncProfileInfo_profileId_attribute.html
tct-datasync-tizen-tests/datasync/SyncProfileInfo_profileName_attribute.html
tct-datasync-tizen-tests/datasync/SyncProfileInfo_serviceInfo_attribute.html
tct-datasync-tizen-tests/datasync/SyncProfileInfo_syncInfo_attribute.html
tct-datasync-tizen-tests/datasync/SyncProgressCallback_notexist.html
tct-datasync-tizen-tests/datasync/SyncServiceInfo_constructor.html
tct-datasync-tizen-tests/datasync/SyncServiceInfo_enable_attribute.html
tct-datasync-tizen-tests/datasync/SyncServiceInfo_exist.html
tct-datasync-tizen-tests/datasync/SyncServiceInfo_extend.html
tct-datasync-tizen-tests/datasync/SyncServiceInfo_id_attribute.html
tct-datasync-tizen-tests/datasync/SyncServiceInfo_password_attribute.html
tct-datasync-tizen-tests/datasync/SyncServiceInfo_serverDatabaseUri_attribute.html
tct-datasync-tizen-tests/datasync/SyncServiceInfo_serviceType_attribute.html
tct-datasync-tizen-tests/datasync/SyncStatistics_notexist.html
tct-datasync-tizen-tests/datasync/support/unitcommon.js [new file with mode: 0644]
tct-datasync-tizen-tests/resources/unitcommon.js [deleted file]
tct-datasync-tizen-tests/tests.full.xml
tct-datasync-tizen-tests/tests.xml

index 63595ff8c0ff2d618b6ffedb4b572905eb3fcb84..5a0722258ffd3aa15b175cc0685184993959dcf0 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataSynchronizationManagerObject_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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("DataSynchronizationManagerObject");
-}, "DataSynchronizationManagerObject_notexist");
+}, document.title);
 
 </script>
 </body>
index e13a514496818f6adeb9bf4d93bc076cc817cad6..db9d35a7a205690cdd9c72d481f61f58fc8bb755 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_add</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -41,10 +41,10 @@ Authors:
 
 test(function () {
     var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
-    eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
-    serviceInfo = [contactInfo, eventInfo], retValue = null, new_profile,
-    profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo);
+        contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
+        eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
+        serviceInfo = [contactInfo, eventInfo], retValue = null, new_profile,
+        profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo);
 
     retValue = tizen.datasync.add(profile);
     assert_equals(retValue, undefined, "add returns wrong value");
@@ -53,7 +53,7 @@ test(function () {
     assert_equals(new_profile.profileName, profile.profileName, "Profile was not added");
 
     removeProfiles();
-}, "DataSynchronizationManager_add");
+}, document.title);
 
 </script>
 </body>
index ae735b9b7f2d475f500c516eec454366306bc0e6..d530e50dab7e91d86e2f5ec292061daa9a446c34 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataSynchronizationManager_add_exist</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>
@@ -38,7 +38,7 @@ Authors:
 test(function () {
     assert_true("add" in tizen.datasync, "No add method in tizen.datasync");
     check_method_exists(tizen.datasync, "add");
-}, "DataSynchronizationManager_add_exist");
+}, document.title);
 
 </script>
 </body>
index 862845ff27dc136242111b27e4ccacef11c61848..cb94cd9a3c1a842271982d9d669fda622d6ec977 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_add_missarg</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -40,13 +40,10 @@ Authors:
 //==== TEST_CRITERIA MMA
 
 test(function () {
-    var exceptionName = "TypeMismatchError";
-
-    assert_throws({name : exceptionName},
-        function () {
-            tizen.datasync.add();
-        }, exceptionName + " should be thrown - missing argument.");
-}, "DataSynchronizationManager_add_missarg");
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+        tizen.datasync.add();
+    }, "No argument given");
+}, document.title);
 
 </script>
 </body>
index 894878920c4cfdaa0c6a4984cd569aec949c7aa4..e019b6efaab62eed6d20b893aec9947c59d2c3f4 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_add_profile_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -47,12 +47,12 @@ test(function () {
         profile = conversionTable[i][0];
         exceptionName = conversionTable[i][1];
 
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
         function () {
             tizen.datasync.add(profile);
         }, exceptionName + " should be thrown - given incorrect profile.");
     }
-});
+}, document.title);
 
 </script>
 </body>
index f60d7f7c107ea7ecb641a812e91473a5f3ee6476..6ffe4dac8b1f699a4c5205608dbc886ecda37985 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_add_profile_invalid_obj</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -48,12 +48,10 @@ test(function () {
         serviceInfo: [new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri, syncId)]
     };
 
-    assert_throws({
-        name : "TypeMismatchError"
-    }, function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         tizen.datasync.add(invalidProfile);
     }, "Constructed object with invalid profile");
-}, "DataSynchronizationManager_add_profile_invalid_obj");
+}, document.title);
 
 </script>
 </body>
index 3a36507cd85c17db00b6809325ed09a219dbdce3..abeee786e783c06ad9d3b23e2af9654eaaebc125 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_extend</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -33,7 +33,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: DataSynchronizationManager_extend
-//==== LABEL check if DataSynchronizationManager is extendable
+//==== LABEL Check if DataSynchronizationManager is extendable
 //==== PRIORITY P3
 //==== SPEC Tizen Web API:Social:Datasync:DataSynchronizationManager:DataSynchronizationManager U
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
@@ -41,7 +41,7 @@ Authors:
 
 test(function () {
     check_extensibility(tizen.datasync);
-}, "DataSynchronizationManager_extend");
+}, document.title);
 
 </script>
 </body>
index 2625e747c01ea6da372a612eaf5772823490a9a4..aa799a93bfa92e0107cb09ca6dca7176271b11cb 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_get</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -41,10 +41,10 @@ Authors:
 
 test(function () {
     var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
-    eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
-    serviceInfo = [contactInfo, eventInfo],
-    profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo), profileToCheck;
+        contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
+        eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
+        serviceInfo = [contactInfo, eventInfo],
+        profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo), profileToCheck;
 
     removeProfiles();
 
@@ -81,7 +81,7 @@ test(function () {
     assert_true("type" in profileToCheck.syncInfo, "Name type doesn't exist in provided object.");
     assert_true("url" in profileToCheck.syncInfo, "Name url doesn't exist in provided object.");
 
-}, "DataSynchronizationManager_get");
+}, document.title);
 
 </script>
 </body>
index df92b933d15f562eccf2d509144a7990c246b460..44bb49de6aa42abf522e676b9143e30fe8aebe86 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_getAll</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -41,10 +41,10 @@ Authors:
 
 test(function () {
     var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
-    eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
-    serviceInfo = [contactInfo, eventInfo],
-    profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo), profilesToCheck;
+        contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
+        eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
+        serviceInfo = [contactInfo, eventInfo],
+        profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo), profilesToCheck;
 
     removeProfiles();
 
@@ -84,7 +84,7 @@ test(function () {
     assert_true("url" in profilesToCheck[0].syncInfo, "Name url doesn't exist in provided object.");
 
     removeProfiles();
-}, "DataSynchronizationManager_getAll");
+}, document.title);
 
 </script>
 </body>
index 897303e55b3c6c092ae32eadd04005466e534ddf..9f3e0f2d3a898ee16265c2232838de33248e2b23 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataSynchronizationManager_getAll_exist</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>
@@ -38,7 +38,7 @@ Authors:
 test(function () {
     assert_true("getAll" in tizen.datasync, "No getAll method in tizen.datasync");
     check_method_exists(tizen.datasync, "getAll");
-}, "DataSynchronizationManager_getAll_exist");
+}, document.title);
 
 </script>
 </body>
index d216c3d69026a52017aa225b1ba7a403414efc7f..ca4c3fae7dd0b7b017609141c2250e59913eba2c 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataSynchronizationManager_getAll_extra_argument</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>
@@ -36,7 +36,7 @@ Authors:
 //==== TEST_CRITERIA MNAEX
 test(function () {
     checkExtraArgument(tizen.datasync, "getAll");
-}, "DataSynchronizationManager_getAll_extra_argument");
+}, document.title);
 
 </script>
 </body>
index e8f781efd48ccd728eaee81d548fb3bb5c44466a..3250920945e065a731051f4ce789b32259eb06bd 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataSynchronizationManager_getLastSyncStatistics_exist</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>
@@ -38,7 +38,7 @@ Authors:
 test(function () {
     assert_true("getLastSyncStatistics" in tizen.datasync, "No getLastSyncStatistics method in tizen.datasync");
     check_method_exists(tizen.datasync, "getLastSyncStatistics");
-}, "DataSynchronizationManager_getLastSyncStatistics_exist");
+}, document.title);
 
 </script>
 </body>
index 44074efbfcac6a9300470939ef3b2d9b3fc823ce..301a5d558f36e835669affd06ec530558756e3e7 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_getMaxProfilesNum</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -41,8 +41,8 @@ Authors:
 test(function () {
     var maxNum = tizen.datasync.getMaxProfilesNum();
 
-    assert_type(maxNum, "number", "getMaxProfilesNum not return number value");
-}, "DataSynchronizationManager_getMaxProfilesNum");
+    assert_type(maxNum, "long", "getMaxProfilesNum not return long");
+}, document.title);
 
 </script>
 </body>
index d0bc5555f22a818769f48e0219161b5eef3ddd19..be75231df57a3f8dc2a1fd718eb9e111072ebcf5 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataSynchronizationManager_getMaxProfilesNum_exist</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>
@@ -38,7 +38,7 @@ Authors:
 test(function () {
     assert_true("getMaxProfilesNum" in tizen.datasync, "No getMaxProfilesNum method in tizen.datasync");
     check_method_exists(tizen.datasync, "getMaxProfilesNum");
-}, "DataSynchronizationManager_getMaxProfilesNum_exist");
+}, document.title);
 
 </script>
 </body>
index 8781ac621dff0f940d348d05f5de87038b27e46f..20f76cf19685268a9422c8d057a2e090d8bab76c 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataSynchronizationManager_getMaxProfilesNum_extra_argument</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,7 +37,7 @@ Authors:
 
 test(function () {
     checkExtraArgument(tizen.datasync, "getMaxProfilesNum");
-}, "DataSynchronizationManager_getMaxProfilesNum_extra_argument");
+}, document.title);
 
 </script>
 </body>
index 5fdcb93d5a83c2e9fb6ccee19f499059eae53da9..1ac253c959579c1e10fe7ba559c23ecd3491f8b0 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_getProfilesNum</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -41,19 +41,19 @@ Authors:
 
 test(function () {
     var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
-    eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
-    serviceInfo = [contactInfo, eventInfo],
-    profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo);
+        contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
+        eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
+        serviceInfo = [contactInfo, eventInfo],
+        profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo);
 
     removeProfiles();
 
     tizen.datasync.add(profile);
 
-    assert_equals(tizen.datasync.getProfilesNum(),1,"getProfilesNum not working");
+    assert_equals(tizen.datasync.getProfilesNum(), 1, "getProfilesNum not working");
 
     removeProfiles();
-}, "DataSynchronizationManager_getProfilesNum");
+}, document.title);
 
 </script>
 </body>
index 8d357542e25fa820432ea9b9e63cdf8c350108e3..3cce33cfa9f011e0c9d8038720bf99df8dfc9a1c 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataSynchronizationManager_getProfilesNum_exist</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>
@@ -38,7 +38,7 @@ Authors:
 test(function () {
     assert_true("getProfilesNum" in tizen.datasync, "No getProfilesNum method in tizen.datasync");
     check_method_exists(tizen.datasync, "getProfilesNum");
-}, "DataSynchronizationManager_getProfilesNum_exist");
+}, document.title);
 
 </script>
 </body>
index 2788b8bc1c1e29de43af05da01e078e77fbbb794..08d11df66eb784bd7fcb69637dc08264aae93605 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataSynchronizationManager_getProfilesNum_extra_argument</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,7 +37,7 @@ Authors:
 
 test(function () {
     checkExtraArgument(tizen.datasync, "getProfilesNum");
-}, "DataSynchronizationManager_getProfilesNum_extra_argument");
+}, document.title);
 
 </script>
 </body>
index e2cd945d10eec2095f42e721cc5b8f7d1fc1c47f..7d7114a38bf58740410565a9e3d55f147aced541 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataSynchronizationManager_get_exist</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>
@@ -38,7 +38,7 @@ Authors:
 test(function () {
     assert_true("get" in tizen.datasync, "No get method in tizen.datasync");
     check_method_exists(tizen.datasync, "get");
-}, "DataSynchronizationManager_get_exist");
+}, document.title);
 
 </script>
 </body>
index 2cd36a7b345343af4019c13c4b7b40ff59c8853c..a7a071067308c0465f6ebf237a1cd8314bbabc25 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataSynchronizationManager_in_tizen</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>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_true("datasync" in tizen, "No datasync in tizen.");
     check_readonly(tizen, "datasync", tizen.datasync, "object", "dummyValue");
-}, "DataSynchronizationManager_in_tizen");
+}, document.title);
 
 </script>
 </body>
index c6b1f825c7f62fb15696fca17fcc070c108b70e0..2fd82f08ff986ed7054f9327b547aa2c8ac014dd 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataSynchronizationManager_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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("DataSynchronizationManager");
-}, "DataSynchronizationManager_notexist");
+}, document.title);
 
 </script>
 </body>
index e921ef9664dabe2113b67a26fab87935111ea3c1..118fbf8bc22aaf6146671a5d5785dec440bda0b1 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_remove</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -41,10 +41,10 @@ Authors:
 
 test(function () {
     var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
-    eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
-    serviceInfo = [contactInfo, eventInfo], retValue = null,
-    profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo);
+        contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
+        eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
+        serviceInfo = [contactInfo, eventInfo], retValue = null,
+        profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo);
 
     removeProfiles();
 
@@ -53,10 +53,10 @@ test(function () {
     retValue = tizen.datasync.remove(profile.profileId);
     assert_equals(retValue, undefined, "Method remove returns wrong value.");
 
-    assert_equals(tizen.datasync.getProfilesNum(),0,"Profiles was not removed");
+    assert_equals(tizen.datasync.getProfilesNum(), 0, "Profiles was not removed");
 
     removeProfiles();
-}, "DataSynchronizationManager_remove");
+}, document.title);
 
 </script>
 </body>
index 18adaede050571293d833a56fdabb8effda14665..bf5305bfa60fec9c90de64196cd7c50afaf9e756 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataSynchronizationManager_remove_exist</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>
@@ -38,7 +38,7 @@ Authors:
 test(function () {
     assert_true("remove" in tizen.datasync, "No remove method in tizen.datasync");
     check_method_exists(tizen.datasync, "remove");
-}, "DataSynchronizationManager_remove_exist");
+}, document.title);
 
 </script>
 </body>
index 0189cd626913ba2b5a59c37bc8665e2e5046be6d..b24d1918e6d1b866d9a23dfcbf460048113143e0 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_startSync</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -41,10 +41,10 @@ Authors:
 
 test(function () {
     var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
-    eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
-    serviceInfo = [contactInfo, eventInfo], retValue = null,
-    profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo);
+        contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
+        eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
+        serviceInfo = [contactInfo, eventInfo], retValue = null,
+        profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo);
 
     removeProfiles();
 
@@ -53,7 +53,7 @@ test(function () {
     retValue = tizen.datasync.startSync(profile.profileId);
     assert_equals(retValue, undefined, "Method startSync returns wrong value.");
 
-}, "DataSynchronizationManager_startSync");
+}, document.title);
 
 </script>
 </body>
index 5dce8bdb3705aee73920ab1137481e4d94acb5cf..47264e13bf62de4b12141ad502148baea27079f0 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataSynchronizationManager_startSync_exist</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>
@@ -38,7 +38,7 @@ Authors:
 test(function () {
     assert_true("startSync" in tizen.datasync, "No startSync method in tizen.datasync");
     check_method_exists(tizen.datasync, "startSync");
-}, "DataSynchronizationManager_startSync_exist");
+}, document.title);
 
 </script>
 </body>
index 0e98137ca4a63fcb0f2de856207bcbc478cdcf44..7119f0a5bc811739579102a6301697088aa7a519 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_startSync_progressCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -42,11 +42,11 @@ Authors:
 
 test(function () {
     var exceptionName, conversionTable,
-    syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
-    eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
-    serviceInfo = [contactInfo, eventInfo],
-    profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo), i, progressCallback;
+        syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
+        contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
+        eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
+        serviceInfo = [contactInfo, eventInfo],
+        profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo), i, progressCallback;
 
     removeProfiles();
 
@@ -57,13 +57,13 @@ test(function () {
         progressCallback = conversionTable[i][0];
         exceptionName = conversionTable[i][1];
 
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
         function () {
             tizen.datasync.startSync(profile.profileId, progressCallback);
         }, exceptionName + " should be thrown - given incorrect progressCallback.");
     }
 
-}, "DataSynchronizationManager_startSync_progressCallback_TypeMismatch");
+}, document.title);
 
 </script>
 </body>
index b009d23dbcebb5f721e8e7c6c523341034b6f94f..af9b68d56685613721e5676059520c60a6803275 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_startSync_progressCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -40,7 +40,7 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
 //==== TEST_CRITERIA MTL
 
-var t = async_test("DataSynchronizationManager_startSync_progressCallback_invalid_cb"),
+var t = async_test(document.title),
     exceptionName, syncInfo, contactInfo, eventInfo, serviceInfo, profile,
     invalidProgressCallback, incorrectListeners, i;
 
@@ -59,7 +59,7 @@ t.step(function () {
     for(i = 0; i < incorrectListeners.length; i++) {
         invalidProgressCallback  = incorrectListeners[i][0];
         exceptionName = incorrectListeners[i][1];
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
             function () {
                 tizen.datasync.startSync(profile.profileId, invalidProgressCallback);
             }, exceptionName + " should be thrown - given incorrect successCallback.");
index 788fd5ab0af92fa5f5251cc03ddfa31af1bb97df..2e8ecbe8ac4176d2080b3b1d47cde5505f1ea178 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_startSync_with_callback</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -44,7 +44,7 @@ var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_
     eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
     serviceInfo = [contactInfo, eventInfo], retValue = null,
     profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo), syncProgressCallback,
-    t = async_test("DataSynchronizationManager_startSync_with_callback");
+    t = async_test(document.title);
 
 t.step(function () {
     removeProfiles();
index b0063f2cd03c03792baa0d18b53a17e78967e909..a2612b6d6b7e12639f0c4ec21b4baf9fe6234602 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_stopSync</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -41,10 +41,10 @@ Authors:
 
 test(function () {
     var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
-    eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
-    serviceInfo = [contactInfo, eventInfo], retValue = null,
-    profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo);
+        contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
+        eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
+        serviceInfo = [contactInfo, eventInfo], retValue = null,
+        profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo);
 
     removeProfiles();
 
@@ -55,7 +55,7 @@ test(function () {
     retValue = tizen.datasync.stopSync(profile.profileId);
     assert_equals(retValue, undefined, "Method stopSync returns wrong value.");
 
-}, "DataSynchronizationManager_stopSync");
+}, document.title);
 
 </script>
 </body>
index 4459da1cc40bbccbdd5c7817967f1d50a0a63faf..1045fb28c62947bc20c6646b70cbacf400277a01 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataSynchronizationManager_stopSync_exist</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>
@@ -38,7 +38,7 @@ Authors:
 test(function () {
     assert_true("stopSync" in tizen.datasync, "No stopSync method in tizen.datasync");
     check_method_exists(tizen.datasync, "stopSync");
-}, "DataSynchronizationManager_stopSync_exist");
+}, document.title);
 
 </script>
 </body>
index a869800de683734903dd7edacd28345f07642128..a43bd9ed3602faab94e0faf468bb440edd432e64 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_update</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -41,11 +41,11 @@ Authors:
 
 test(function () {
     var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
-    eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
-    serviceInfo = [contactInfo, eventInfo],
-    profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo),
-    returnedValue, profileToCheck;
+        contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
+        eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
+        serviceInfo = [contactInfo, eventInfo],
+        profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo),
+        returnedValue, profileToCheck;
 
     removeProfiles();
 
@@ -64,7 +64,7 @@ test(function () {
     assert_equals(profileToCheck.syncInfo.mode, "PUSH", "Mode is different");
 
     removeProfiles();
-}, "DataSynchronizationManager_update");
+}, document.title);
 
 </script>
 </body>
index 0b1fa4a13533e312ceaeaab460a67e05d2c0c3d5..efef1de09b0490a64affcda1618d08553240cf56 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>DataSynchronizationManager_update_exist</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>
@@ -38,7 +38,7 @@ Authors:
 test(function () {
     assert_true("update" in tizen.datasync, "No update method in tizen.datasync");
     check_method_exists(tizen.datasync, "update");
-}, "DataSynchronizationManager_update_exist");
+}, document.title);
 
 </script>
 </body>
index aecfe4c0aa28dfbc4fb2a9e671835322439e4f7d..0654ba7d443ac33b77b5369af327df6b22407356 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_update_missarg</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -40,13 +40,10 @@ Authors:
 //==== TEST_CRITERIA MMA
 
 test(function () {
-    var exceptionName = "TypeMismatchError";
-
-    assert_throws({name : exceptionName},
-        function () {
-            tizen.datasync.update();
-        }, exceptionName + " should be thrown - missing argument.");
-}, "DataSynchronizationManager_update_missarg");
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+        tizen.datasync.update();
+    }, "No argument given");
+}, document.title);
 
 </script>
 </body>
index 815e0a9fbc4c9510cf9fe33cf2ba4703e7230749..7046c3a7721cf136e431f7ef0e5cedfc3432f8af 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_update_profile_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -48,12 +48,12 @@ test(function () {
         profile = conversionTable[i][0];
         exceptionName = conversionTable[i][1];
 
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
         function () {
             tizen.datasync.update(profile);
         }, exceptionName + " should be thrown - given incorrect profile.");
     }
-});
+}, document.title);
 
 </script>
 </body>
index e81dc00bd55d0012a46464ae1f65255a3e5f5bdb..c01afea7132a05c02fe39b8fbb285cb5538fbf02 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>DataSynchronizationManager_update_profile_invalid_obj</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -48,12 +48,10 @@ test(function () {
         serviceInfo: [new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri, syncId)]
     };
 
-    assert_throws({
-        name : "TypeMismatchError"
-    }, function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         tizen.datasync.update(invalidProfile);
     }, "Constructed object with invalid profile");
-}, "DataSynchronizationManager_update_profile_invalid_obj");
+}, document.title);
 
 </script>
 </body>
index 46637ebcf9459cb34a6161bf6f8cf27ac08ffd1c..9fa2e60cf538f61e5a9c7cb7c75589ed88acc1f0 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncInfo_constructor</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: SyncInfo_constructor
-//==== LABEL new tizen.SyncInfo(String url, String id, String password, SyncMode mode) works (is supported) 
+//==== LABEL New tizen.SyncInfo(String url, String id, String password, SyncMode mode) works (is supported)
 //==== SPEC Tizen Web API:Social:Datasync:SyncInfo:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
 //==== TEST_CRITERIA CONSTRM CONSTRA
@@ -45,7 +45,7 @@ test(function () {
     assert_equals(syncInfo.url, syncUrl, "syncInfo.url attribute.");
     assert_equals(syncInfo.mode, "MANUAL", "syncInfo.mode attribute.");
 
-}, "SyncInfo_constructor");
+}, document.title);
 
 </script>
 </body>
index 4b7b9a998003310b863947568bb77293b4301560..9b1dd1e43e163e8f09942d72dab408587bd2fee2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncInfo_constructor_interval</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -31,13 +31,13 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: SyncInfo_constructor_interval
-//==== LABEL new tizen.SyncInfo(String url, String id, String password, SyncMode mode, SyncInterval interval) works (is supported) 
+//==== LABEL New tizen.SyncInfo(String url, String id, String password, SyncMode mode, SyncInterval interval) works (is supported)
 //==== SPEC Tizen Web API:Social:Datasync:SyncInfo:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
 //==== TEST_CRITERIA CONSTRM CONSTRA
 
 test(function () {
-    var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "PERIODIC","5_MINUTES");
+    var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "PERIODIC", "5_MINUTES");
 
     assert_true(syncInfo instanceof tizen.SyncInfo, "InstanceOf.");
 
@@ -45,7 +45,7 @@ test(function () {
     assert_equals(syncInfo.mode, "PERIODIC", "syncInfo.mode attribute.");
     assert_equals(syncInfo.interval, "5_MINUTES", "syncInfo.interval attribute.");
 
-}, "SyncInfo_constructor_interval");
+}, document.title);
 
 </script>
 </body>
index ba1308036b2d8b18a53158adb3f9fea1f63cd285..1d8ddd0d652bef3807eaaa46b95d45765a27e4b9 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncInfo_constructor_type</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -31,13 +31,13 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: SyncInfo_constructor_type
-//==== LABEL new tizen.SyncInfo(String url, String id, String password, SyncMode mode, SyncType type) works (is supported) 
+//==== LABEL New tizen.SyncInfo(String url, String id, String password, SyncMode mode, SyncType type) works (is supported)
 //==== SPEC Tizen Web API:Social:Datasync:SyncInfo:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
 //==== TEST_CRITERIA CONSTRM CONSTRA
 
 test(function () {
-    var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL","TWO_WAY");
+    var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY");
 
     assert_true(syncInfo instanceof tizen.SyncInfo, "InstanceOf.");
 
@@ -45,7 +45,7 @@ test(function () {
     assert_equals(syncInfo.mode, "MANUAL", "syncInfo.mode attribute.");
     assert_equals(syncInfo.type, "TWO_WAY", "syncInfo.type attribute.");
 
-}, "SyncInfo_constructor_type");
+}, document.title);
 
 </script>
 </body>
index 8a880efd7d8d38a0c07c1ec42f9491cec3352152..be8beb542ffb40a3ac8fd42c21d8a9fe185f590b 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncInfo_exist</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,7 +37,7 @@ Authors:
 
 test(function () {
     check_constructor("SyncInfo");
-}, "SyncInfo_exist");
+}, document.title);
 
 </script>
 </body>
index d54234b01aeeec0acdaae60642bcb6fdcd3fd3ad..302d73214ef65991c1a0afb78c05109011d1453c 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>SyncInfo_extend</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SyncInfo_extend
-//==== LABEL check if SyncInfo is extendable
+//==== LABEL Check if SyncInfo is extendable
 //==== PRIORITY P3
 //==== SPEC Tizen Web API:Social:Datasync:SyncInfo:SyncInfo U
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
@@ -42,7 +42,7 @@ Authors:
 
 test(function () {
     check_extensibility(new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"));
-}, "SyncInfo_extend");
+}, document.title);
 
 </script>
 </body>
index 5d7bd1e010f8970873a572d88316f5ad3c810dd8..57df48416b45f7b3b2d259a2d7b7d596966dd5e3 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncInfo_id_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -45,7 +45,7 @@ test(function () {
     assert_type(syncInfo.id, "object", "Type of id is different.");
     syncInfo.id = "newId";
     assert_equals(syncInfo.id, null, "Value of id is diffrent.");
-}, "SyncInfo_id_attribute");
+}, document.title);
 
 </script>
 </body>
index 687ab82a73b5bf0ccc50b7739194ef5d67791133..16ae9756a562cc0e1e100a1084726251eab1da68 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncInfo_interval_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -37,11 +37,12 @@ Authors:
 //==== TEST_CRITERIA AE AT ASG
 
 test(function () {
-    var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "PERIODIC", "5_MINUTES"),
-    interval = "5_MINUTES";
+    var interval = "5_MINUTES",
+        syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "PERIODIC", interval);
+
     assert_own_property(syncInfo, "interval" , "SyncInfo does not own interval property.");
     check_attribute(syncInfo, "interval", interval, "String", "15_MINUTES");
-}, "SyncInfo_interval_attribute");
+}, document.title);
 
 </script>
 </body>
index 8ce7ee371fab293f8e20e359d404f708bad1339b..75c6a1cc89fe00cb8585f95ad36403ecefa58877 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncInfo_mode_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -37,12 +37,13 @@ Authors:
 //==== TEST_CRITERIA AE AT ASG AN
 
 test(function () {
-    var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    mode = "MANUAL";
+    var mode = "MANUAL",
+        syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, mode, "TWO_WAY");
+
     assert_own_property(syncInfo, "mode" , "SyncInfo does not own mode property.");
     check_attribute(syncInfo, "mode", mode, "String", "PUSH");
     check_not_nullable(syncInfo, "mode");
-}, "SyncInfo_mode_attribute");
+}, document.title);
 
 </script>
 </body>
index b0de8569a5adf62ed4c45d72456fc1199def53e7..d6934df55099966767a95d919535931f13a52975 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncInfo_password_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -45,7 +45,7 @@ test(function () {
     assert_type(syncInfo.password, "object", "Type of password is different.");
     syncInfo.password = "newPassword";
     assert_equals(syncInfo.password, null, "Value of password is diffrent.");
-}, "SyncInfo_password_attribute");
+}, document.title);
 
 </script>
 </body>
index 70f6435954bdca6f437cb5440fdec379a5d2420e..f1c95f2fb8bae28f10177634424b715b8df2e523 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncInfo_type_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/datasync_common.js"></script>
 </head>
 
@@ -37,11 +37,12 @@ Authors:
 //==== TEST_CRITERIA AE AT ASG
 
 test(function () {
-    var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    type = "TWO_WAY";
+    var type = "TWO_WAY",
+        syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", type);
+
     assert_own_property(syncInfo, "type" , "SyncInfo does not own type property.");
     check_attribute(syncInfo, "type", type, "String", "SLOW");
-}, "SyncInfo_type_attribute");
+}, document.title);
 
 </script>
 </body>
index 7c16e8e389a2317f6333886c86cf9437dd942b1e..964747c91a20dc44f27415ef36debd449a978295 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncInfo_url_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -42,7 +42,7 @@ test(function () {
     assert_own_property(syncInfo, "url" , "SyncInfo does not own url property.");
     check_attribute(syncInfo, "url", syncUrl, "String", "http://newexample.com/sync");
     check_not_nullable(syncInfo, "url");
-}, "SyncInfo_url_attribute");
+}, document.title);
 
 </script>
 </body>
index 3cee755071f52904c5abbf8374f94d8ad0ad7ef2..abe9cfa241e72667625f272056f42a7ce0562e9f 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncProfileInfo_constructor</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -31,17 +31,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: SyncProfileInfo_constructor
-//==== LABEL new tizen.SyncProfileInfo(String profileName, SyncInfo syncInfo, SyncServiceInfo serviceInfo) works (is supported) 
+//==== LABEL New tizen.SyncProfileInfo(String profileName, SyncInfo syncInfo, SyncServiceInfo serviceInfo) works (is supported)
 //==== SPEC Tizen Web API:Social:Datasync:SyncProfileInfo:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
 //==== TEST_CRITERIA CONSTRM CONSTRA
 
 test(function () {
     var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
-    serviceInfo = [contactInfo],
-    profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo),
-    profileName = "MyProfile";
+        contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
+        serviceInfo = [contactInfo],
+        profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo),
+        profileName = "MyProfile";
 
     assert_true(profile instanceof tizen.SyncProfileInfo, "InstanceOf.");
 
@@ -55,7 +55,7 @@ test(function () {
     assert_equals(profile.syncInfo.type, "TWO_WAY", "syncInfo.type attribute.");
     assert_equals(profile.syncInfo.url, syncUrl, "syncInfo.url attribute.");
 
-}, "SyncProfileInfo_constructor");
+}, document.title);
 
 </script>
 </body>
index 0e6cb4c3fd5188ee52935a469c0923c9340d6b3f..5f80acfb9c540bc23eaaa1c851652c95e7c901e5 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncProfileInfo_exist</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>
@@ -36,7 +36,7 @@ Authors:
 //==== TEST_CRITERIA CONSTRF
 test(function () {
     check_constructor("SyncProfileInfo");
-}, "SyncProfileInfo_exist");
+}, document.title);
 
 </script>
 </body>
index fd60d852555f8d1a3b624188ec7a96726ae1b109..705971ec815fec7b8ab92b499d67255c3f893a89 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>SyncProfileInfo_extend</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SyncProfileInfo_extend
-//==== LABEL check if SyncProfileInfo is extendable
+//==== LABEL Check if SyncProfileInfo is extendable
 //==== PRIORITY P3
 //==== SPEC Tizen Web API:Social:Datasync:SyncProfileInfo:SyncProfileInfo U
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
@@ -42,11 +42,12 @@ Authors:
 
 test(function () {
     var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
-    eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
-    serviceInfo = [contactInfo, eventInfo];
+        contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
+        eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
+        serviceInfo = [contactInfo, eventInfo];
+
     check_extensibility(new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo));
-}, "SyncProfileInfo_extend");
+}, document.title);
 
 </script>
 </body>
index 438bfb2f3b81de56d4f2e15002c1be9f2c25b274..010d2b4c1fcfca1c660cb0ecb6a0e0726f121fb9 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncProfileInfo_profileId_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -38,14 +38,14 @@ Authors:
 
 test(function () {
     var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
-    eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
-    serviceInfo = [contactInfo, eventInfo],
-    profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo);
+        contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
+        eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
+        serviceInfo = [contactInfo, eventInfo],
+        profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo);
 
     assert_own_property(profile, "profileId" , "SyncProfileInfo does not own profileId property.");
     check_readonly(profile, "profileId", profile.profileId, "String", null);
-}, "SyncProfileInfo_profileId_attribute");
+}, document.title);
 
 </script>
 </body>
index 9e4b1f140b8820e3eb188377ca1ebd33136beb1d..61432b042869911b8909972bbc99a47fc921ece8 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncProfileInfo_profileName_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -38,15 +38,16 @@ Authors:
 
 test(function () {
     var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
-    eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
-    serviceInfo = [contactInfo, eventInfo],
-    profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo),
-    profileName = "MyProfile";
+        contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
+        eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
+        serviceInfo = [contactInfo, eventInfo],
+        profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo),
+        profileName = "MyProfile";
+
     assert_own_property(profile, "profileName" , "SyncProfileInfo does not own profileName property.");
     check_attribute(profile, "profileName", profileName, "String", "newMyProfile");
     check_not_nullable(profile, "profileName");
-}, "SyncProfileInfo_profileName_attribute");
+}, document.title);
 
 </script>
 </body>
index 18b1cde759c9faf48c1b29e934a8d8d903e4d199..62f41fc4914259c281443c43ab2b3daac7193030 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncProfileInfo_serviceInfo_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>,
+<script type="text/javascript" src="support/unitcommon.js"></script>,
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -38,11 +38,11 @@ Authors:
 
 test(function () {
     var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
-    eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
-    serviceInfo = [contactInfo, eventInfo],
-    profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo),
-    newVal;
+        contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
+        eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
+        serviceInfo = [contactInfo, eventInfo],
+        profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo),
+        newVal;
 
     assert_own_property(profile, "serviceInfo" , "SyncProfileInfo does not own serviceInfo property.");
     assert_type(profile.serviceInfo, "array", "Type of serviceInfo is different.");
@@ -73,7 +73,7 @@ test(function () {
     assert_equals(profile.serviceInfo[1].serviceType, newVal[1].serviceType, "Value of newVal[1].serviceType is diffrent.");
     assert_equals(profile.serviceInfo[1].serverDatabaseUri, newVal[1].serverDatabaseUri, "Value of newVal[1].serverDatabaseUri is diffrent.");
 
-}, "SyncProfileInfo_serviceInfo_attribute");
+}, document.title);
 
 </script>
 </body>
index be3367d4f26be9c56b72343a77488dd71466d7b9..455d7e5ffc99a63dddea395eb752b7d8a6b68880 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncProfileInfo_syncInfo_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -38,11 +38,11 @@ Authors:
 
 test(function () {
     var syncInfo = new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"),
-    contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
-    eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
-    serviceInfo = [contactInfo, eventInfo],
-    profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo),
-    newVal;
+        contactInfo = new tizen.SyncServiceInfo(true, syncContactServiceType, syncServerContactDatabaseUri),
+        eventInfo = new tizen.SyncServiceInfo(true, syncEventServiceType, syncServerEventDatabaseUri),
+        serviceInfo = [contactInfo, eventInfo],
+        profile = new tizen.SyncProfileInfo("MyProfile", syncInfo, serviceInfo),
+        newVal;
 
     assert_own_property(profile, "syncInfo" , "SyncProfileInfo does not own syncInfo property.");
     assert_type(profile.syncInfo, "object", "Type of syncInfo is different.");
@@ -66,7 +66,7 @@ test(function () {
     assert_equals(profile.syncInfo.mode, newVal.mode, "Value of syncInfo.mode is diffrent.");
     assert_equals(profile.syncInfo.type, newVal.type, "Value of syncInfo.type is diffrent.");
 
-}, "SyncProfileInfo_syncInfo_attribute");
+}, document.title);
 
 </script>
 </body>
index 1f537e0799ae8e8a0e8cf2d9064acd19a9e029e2..3db8ab0abcfdd18f1500b0aa8fa3c7c555358b93 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncProgressCallback_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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("SyncProgressCallback");
-}, "SyncProgressCallback_notexist");
+}, document.title);
 
 </script>
 </body>
index b727885610ddbe43bc57624316e40bfb59aa815b..26ec6257bad5e294930e8f359a52c66f5b5a51be 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>SyncServiceInfo_constructor</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -32,7 +32,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: SyncServiceInfo_constructor
-//==== LABEL new tizen.SyncServiceInfo(Boolean, SyncServiceType, String, String?, String?) works (is supported)
+//==== LABEL New tizen.SyncServiceInfo(Boolean, SyncServiceType, String, String?, String?) works (is supported)
 //==== SPEC Tizen Web API:Social:Datasync:SyncServiceInfo:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
 //==== TEST_CRITERIA CONSTRM CONSTRA
@@ -48,7 +48,7 @@ test(function () {
     assert_equals(contactInfo.id, null, "wrong value of id attribute");
     assert_equals(contactInfo.password, null, "wrong value of password attribute");
 
-}, "SyncServiceInfo_constructor");
+}, document.title);
 
 </script>
 </body>
index d1afd387ac4a1788b85d5e240dc81b2faa82a13f..02f43944c76b822508a95352c92e8593276cdcfc 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncServiceInfo_enable_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -42,7 +42,7 @@ test(function () {
     assert_own_property(contactInfo, "enable" , "SyncServiceInfo does not own enable property.");
     check_attribute(contactInfo, "enable", enable, "boolean", false);
     check_not_nullable(contactInfo, "enable");
-}, "SyncServiceInfo_enable_attribute");
+}, document.title);
 
 </script>
 </body>
index e5098b22f2a9a6a94b7607e874617ca5363b2bf8..b39b9619d2eb978289b6a2256354556e29f9bdf2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncServiceInfo_exist</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,7 +37,7 @@ Authors:
 
 test(function () {
     check_constructor("SyncServiceInfo");
-}, "SyncServiceInfo_exist");
+}, document.title);
 
 </script>
 </body>
index 8cca0d15bbe0dcf6808adc18f24eb55204bbfec7..8d4192f2c19a8e80c3c9f17d5aaa70bc1ef2f493 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>SyncServiceInfo_extend</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -33,7 +33,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SyncServiceInfo_extend
-//==== LABEL check if SyncServiceInfo is extendable
+//==== LABEL Check if SyncServiceInfo is extendable
 //==== PRIORITY P3
 //==== SPEC Tizen Web API:Social:Datasync:SyncServiceInfo:SyncServiceInfo U
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
@@ -41,7 +41,7 @@ Authors:
 
 test(function () {
     check_extensibility(new tizen.SyncServiceInfo(true, "CONTACT", "con"));
-}, "SyncServiceInfo_extend");
+}, document.title);
 
 </script>
 </body>
index dd2d478fec8be32eaf3b3aeed8cdaac55e307b88..268b1787601e30d0d6a25ba4aa662ab2ef025f36 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncServiceInfo_id_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -45,7 +45,7 @@ test(function () {
     assert_type(contactInfo.id, "object", "Type of id is different.");
     contactInfo.id = "newId";
     assert_equals(contactInfo.id, null, "Value of id is diffrent.");
-}, "SyncServiceInfo_id_attribute");
+}, document.title);
 
 </script>
 </body>
index 4e7e0f9debfca9982e90ce9482c2061431eb2b0e..00639edabbd0b6329600bb70097fcdfd7ca8423d 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncServiceInfo_password_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -45,7 +45,7 @@ test(function () {
     assert_type(contactInfo.password, "object", "Type of password is different.");
     contactInfo.password = "newPassword";
     assert_equals(contactInfo.password, null, "Value of password is diffrent.");
-}, "SyncServiceInfo_password_attribute");
+}, document.title);
 
 </script>
 </body>
index 3941c8f4c350eef4a0e35f78088385061e65af3b..caab98862e586d8c07ac38dfd30afa024c104ac9 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncServiceInfo_serverDatabaseUri_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -42,7 +42,7 @@ test(function () {
     assert_own_property(contactInfo, "serverDatabaseUri" , "SyncServiceInfo does not own serverDatabaseUri property.");
     check_attribute(contactInfo, "serverDatabaseUri", syncServerContactDatabaseUri, "String", "newServerDatabaseUri");
     check_not_nullable(contactInfo, "serverDatabaseUri");
-}, "SyncServiceInfo_serverDatabaseUri_attribute");
+}, document.title);
 
 </script>
 </body>
index 530507d815b03a25fa623329db8a87a4a9b9041f..71ff7a026cf5736b156845c4af8a2bfe997b8fe0 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncServiceInfo_serviceType_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/datasync_common.js"></script>
 </head>
 
@@ -42,7 +42,7 @@ test(function () {
     assert_own_property(contactInfo, "serviceType" , "SyncServiceInfo does not own serviceType property.");
     check_attribute(contactInfo, "serviceType", syncContactServiceType, "String", "EVENT");
     check_not_nullable(contactInfo, "serviceType");
-}, "SyncServiceInfo_serviceType_attribute");
+}, document.title);
 
 </script>
 </body>
index e40fd2ae89e46e8dbebfa1068ef2c64c26852427..c43d26d29c459acf509d4e5993820bba9408ae0e 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>SyncStatistics_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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("SyncStatistics");
-}, "SyncStatistics_notexist");
+}, document.title);
 
 </script>
 </body>
diff --git a/tct-datasync-tizen-tests/datasync/support/unitcommon.js b/tct-datasync-tizen-tests/datasync/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-datasync-tizen-tests/resources/unitcommon.js b/tct-datasync-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 7a8db410c47fb3c355ab614c1a80b035c0bda8fe..1e0ece8c8c08038abf4353fb35002c4651f9b2cd 100644 (file)
@@ -75,7 +75,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if DataSynchronizationManager is extendable" type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P3" id="DataSynchronizationManager_extend">
+      <testcase purpose="Check if DataSynchronizationManager is extendable" type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P3" id="DataSynchronizationManager_extend">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/DataSynchronizationManager_extend.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="new tizen.SyncInfo(String url, String id, String password, SyncMode mode) works (is supported) " type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P1" id="SyncInfo_constructor">
+      <testcase purpose="New tizen.SyncInfo(String url, String id, String password, SyncMode mode) works (is supported)" type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P1" id="SyncInfo_constructor">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncInfo_constructor.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="new tizen.SyncInfo(String url, String id, String password, SyncMode mode, SyncInterval interval) works (is supported) " type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P1" id="SyncInfo_constructor_interval">
+      <testcase purpose="New tizen.SyncInfo(String url, String id, String password, SyncMode mode, SyncInterval interval) works (is supported)" type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P1" id="SyncInfo_constructor_interval">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncInfo_constructor_interval.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="new tizen.SyncInfo(String url, String id, String password, SyncMode mode, SyncType type) works (is supported) " type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P1" id="SyncInfo_constructor_type">
+      <testcase purpose="New tizen.SyncInfo(String url, String id, String password, SyncMode mode, SyncType type) works (is supported)" type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P1" id="SyncInfo_constructor_type">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncInfo_constructor_type.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if SyncInfo is extendable" type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P3" id="SyncInfo_extend">
+      <testcase purpose="Check if SyncInfo is extendable" type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P3" id="SyncInfo_extend">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncInfo_extend.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="new tizen.SyncProfileInfo(String profileName, SyncInfo syncInfo, SyncServiceInfo serviceInfo) works (is supported) " type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P1" id="SyncProfileInfo_constructor">
+      <testcase purpose="New tizen.SyncProfileInfo(String profileName, SyncInfo syncInfo, SyncServiceInfo serviceInfo) works (is supported)" type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P1" id="SyncProfileInfo_constructor">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncProfileInfo_constructor.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if SyncProfileInfo is extendable" type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P3" id="SyncProfileInfo_extend">
+      <testcase purpose="Check if SyncProfileInfo is extendable" type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P3" id="SyncProfileInfo_extend">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncProfileInfo_extend.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="new tizen.SyncServiceInfo(Boolean, SyncServiceType, String, String?, String?) works (is supported)" type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P1" id="SyncServiceInfo_constructor">
+      <testcase purpose="New tizen.SyncServiceInfo(Boolean, SyncServiceType, String, String?, String?) works (is supported)" type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P1" id="SyncServiceInfo_constructor">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncServiceInfo_constructor.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if SyncServiceInfo is extendable" type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P3" id="SyncServiceInfo_extend">
+      <testcase purpose="Check if SyncServiceInfo is extendable" type="compliance" status="approved" component="TizenAPI/Social/Datasync" execution_type="auto" priority="P3" id="SyncServiceInfo_extend">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncServiceInfo_extend.html</test_script_entry>
         </description>
index 99da6bbb2394463ecbf0e8361a89abcdd9f1991d..870986491292b780763b5c89439ccbd4a91ae77d 100644 (file)
@@ -33,7 +33,7 @@
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/DataSynchronizationManager_add_profile_invalid_obj.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if DataSynchronizationManager is extendable" component="TizenAPI/Social/Datasync" execution_type="auto" id="DataSynchronizationManager_extend">
+      <testcase purpose="Check if DataSynchronizationManager is extendable" component="TizenAPI/Social/Datasync" execution_type="auto" id="DataSynchronizationManager_extend">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/DataSynchronizationManager_extend.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/DataSynchronizationManager_update_profile_invalid_obj.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="new tizen.SyncInfo(String url, String id, String password, SyncMode mode) works (is supported) " component="TizenAPI/Social/Datasync" execution_type="auto" id="SyncInfo_constructor">
+      <testcase purpose="New tizen.SyncInfo(String url, String id, String password, SyncMode mode) works (is supported)" component="TizenAPI/Social/Datasync" execution_type="auto" id="SyncInfo_constructor">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncInfo_constructor.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="new tizen.SyncInfo(String url, String id, String password, SyncMode mode, SyncInterval interval) works (is supported) " component="TizenAPI/Social/Datasync" execution_type="auto" id="SyncInfo_constructor_interval">
+      <testcase purpose="New tizen.SyncInfo(String url, String id, String password, SyncMode mode, SyncInterval interval) works (is supported)" component="TizenAPI/Social/Datasync" execution_type="auto" id="SyncInfo_constructor_interval">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncInfo_constructor_interval.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="new tizen.SyncInfo(String url, String id, String password, SyncMode mode, SyncType type) works (is supported) " component="TizenAPI/Social/Datasync" execution_type="auto" id="SyncInfo_constructor_type">
+      <testcase purpose="New tizen.SyncInfo(String url, String id, String password, SyncMode mode, SyncType type) works (is supported)" component="TizenAPI/Social/Datasync" execution_type="auto" id="SyncInfo_constructor_type">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncInfo_constructor_type.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncInfo_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if SyncInfo is extendable" component="TizenAPI/Social/Datasync" execution_type="auto" id="SyncInfo_extend">
+      <testcase purpose="Check if SyncInfo is extendable" component="TizenAPI/Social/Datasync" execution_type="auto" id="SyncInfo_extend">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncInfo_extend.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncInfo_url_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="new tizen.SyncProfileInfo(String profileName, SyncInfo syncInfo, SyncServiceInfo serviceInfo) works (is supported) " component="TizenAPI/Social/Datasync" execution_type="auto" id="SyncProfileInfo_constructor">
+      <testcase purpose="New tizen.SyncProfileInfo(String profileName, SyncInfo syncInfo, SyncServiceInfo serviceInfo) works (is supported)" component="TizenAPI/Social/Datasync" execution_type="auto" id="SyncProfileInfo_constructor">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncProfileInfo_constructor.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncProfileInfo_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if SyncProfileInfo is extendable" component="TizenAPI/Social/Datasync" execution_type="auto" id="SyncProfileInfo_extend">
+      <testcase purpose="Check if SyncProfileInfo is extendable" component="TizenAPI/Social/Datasync" execution_type="auto" id="SyncProfileInfo_extend">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncProfileInfo_extend.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncProgressCallback_notexist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="new tizen.SyncServiceInfo(Boolean, SyncServiceType, String, String?, String?) works (is supported)" component="TizenAPI/Social/Datasync" execution_type="auto" id="SyncServiceInfo_constructor">
+      <testcase purpose="New tizen.SyncServiceInfo(Boolean, SyncServiceType, String, String?, String?) works (is supported)" component="TizenAPI/Social/Datasync" execution_type="auto" id="SyncServiceInfo_constructor">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncServiceInfo_constructor.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncServiceInfo_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if SyncServiceInfo is extendable" component="TizenAPI/Social/Datasync" execution_type="auto" id="SyncServiceInfo_extend">
+      <testcase purpose="Check if SyncServiceInfo is extendable" component="TizenAPI/Social/Datasync" execution_type="auto" id="SyncServiceInfo_extend">
         <description>
           <test_script_entry>/opt/tct-datasync-tizen-tests/datasync/SyncServiceInfo_extend.html</test_script_entry>
         </description>