<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>
test(function () {
check_no_interface_object("DataSynchronizationManagerObject");
-}, "DataSynchronizationManagerObject_notexist");
+}, document.title);
</script>
</body>
<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>
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");
assert_equals(new_profile.profileName, profile.profileName, "Profile was not added");
removeProfiles();
-}, "DataSynchronizationManager_add");
+}, document.title);
</script>
</body>
<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>
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>
<head>
<title>DataSynchronizationManager_add_missarg</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
</head>
<body>
//==== 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>
<head>
<title>DataSynchronizationManager_add_profile_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
</head>
<body>
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>
<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>
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>
<head>
<title>DataSynchronizationManager_extend</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
</head>
<body>
<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
test(function () {
check_extensibility(tizen.datasync);
-}, "DataSynchronizationManager_extend");
+}, document.title);
</script>
</body>
<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>
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();
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>
<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>
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();
assert_true("url" in profilesToCheck[0].syncInfo, "Name url doesn't exist in provided object.");
removeProfiles();
-}, "DataSynchronizationManager_getAll");
+}, document.title);
</script>
</body>
<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>
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>
<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>
//==== TEST_CRITERIA MNAEX
test(function () {
checkExtraArgument(tizen.datasync, "getAll");
-}, "DataSynchronizationManager_getAll_extra_argument");
+}, document.title);
</script>
</body>
<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>
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>
<head>
<title>DataSynchronizationManager_getMaxProfilesNum</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
</head>
<body>
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>
<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>
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>
<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>
test(function () {
checkExtraArgument(tizen.datasync, "getMaxProfilesNum");
-}, "DataSynchronizationManager_getMaxProfilesNum_extra_argument");
+}, document.title);
</script>
</body>
<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>
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>
<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>
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>
<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>
test(function () {
checkExtraArgument(tizen.datasync, "getProfilesNum");
-}, "DataSynchronizationManager_getProfilesNum_extra_argument");
+}, document.title);
</script>
</body>
<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>
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>
<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>
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>
<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>
test(function () {
check_no_interface_object("DataSynchronizationManager");
-}, "DataSynchronizationManager_notexist");
+}, document.title);
</script>
</body>
<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>
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();
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>
<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>
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>
<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>
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();
retValue = tizen.datasync.startSync(profile.profileId);
assert_equals(retValue, undefined, "Method startSync returns wrong value.");
-}, "DataSynchronizationManager_startSync");
+}, document.title);
</script>
</body>
<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>
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>
<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>
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();
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>
<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>
//==== 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;
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.");
<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>
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();
<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>
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();
retValue = tizen.datasync.stopSync(profile.profileId);
assert_equals(retValue, undefined, "Method stopSync returns wrong value.");
-}, "DataSynchronizationManager_stopSync");
+}, document.title);
</script>
</body>
<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>
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>
<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>
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();
assert_equals(profileToCheck.syncInfo.mode, "PUSH", "Mode is different");
removeProfiles();
-}, "DataSynchronizationManager_update");
+}, document.title);
</script>
</body>
<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>
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>
<head>
<title>DataSynchronizationManager_update_missarg</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
</head>
<body>
//==== 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>
<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>
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>
<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>
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>
<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>
<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
assert_equals(syncInfo.url, syncUrl, "syncInfo.url attribute.");
assert_equals(syncInfo.mode, "MANUAL", "syncInfo.mode attribute.");
-}, "SyncInfo_constructor");
+}, document.title);
</script>
</body>
<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>
<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.");
assert_equals(syncInfo.mode, "PERIODIC", "syncInfo.mode attribute.");
assert_equals(syncInfo.interval, "5_MINUTES", "syncInfo.interval attribute.");
-}, "SyncInfo_constructor_interval");
+}, document.title);
</script>
</body>
<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>
<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.");
assert_equals(syncInfo.mode, "MANUAL", "syncInfo.mode attribute.");
assert_equals(syncInfo.type, "TWO_WAY", "syncInfo.type attribute.");
-}, "SyncInfo_constructor_type");
+}, document.title);
</script>
</body>
<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>
test(function () {
check_constructor("SyncInfo");
-}, "SyncInfo_exist");
+}, document.title);
</script>
</body>
<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>
<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
test(function () {
check_extensibility(new tizen.SyncInfo(syncUrl, syncId, syncPassword, "MANUAL", "TWO_WAY"));
-}, "SyncInfo_extend");
+}, document.title);
</script>
</body>
<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>
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>
<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>
//==== 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>
<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>
//==== 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>
<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>
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>
<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>
//==== 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>
<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>
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>
<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>
<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.");
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>
<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>
//==== TEST_CRITERIA CONSTRF
test(function () {
check_constructor("SyncProfileInfo");
-}, "SyncProfileInfo_exist");
+}, document.title);
</script>
</body>
<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>
<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
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>
<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>
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>
<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>
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>
<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>
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.");
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>
<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>
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.");
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>
<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>
test(function () {
check_no_interface_object("SyncProgressCallback");
-}, "SyncProgressCallback_notexist");
+}, document.title);
</script>
</body>
<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>
<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
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>
<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>
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>
<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>
test(function () {
check_constructor("SyncServiceInfo");
-}, "SyncServiceInfo_exist");
+}, document.title);
</script>
</body>
<head>
<title>SyncServiceInfo_extend</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
</head>
<body>
<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
test(function () {
check_extensibility(new tizen.SyncServiceInfo(true, "CONTACT", "con"));
-}, "SyncServiceInfo_extend");
+}, document.title);
</script>
</body>
<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>
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>
<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>
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>
<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>
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>
<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>
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>
<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>
test(function () {
check_no_interface_object("SyncStatistics");
-}, "SyncStatistics_notexist");
+}, document.title);
</script>
</body>
--- /dev/null
+/*
+
+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;
+}
+++ /dev/null
-/*
-
-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;
-}
</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>
<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>