[common][systemsetting][TNEXT-10014, fix tc issue] 82/170982/2
authorzy123.yuan <zy123.yuan@samsung.com>
Sat, 24 Feb 2018 02:49:08 +0000 (10:49 +0800)
committerzy123.yuan <zy123.yuan@samsung.com>
Sat, 24 Feb 2018 02:50:45 +0000 (10:50 +0800)
Change-Id: I883d83196965be49d83c2fd3337339e5cf53e8ba

common/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_no_errorCallback.html
common/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_errorCallback_TypeMismatch.html
common/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_no_errorCallback.html
common/tct-systemsetting-tizen-tests/systemsetting/SystemSettingSuccessCallback_onsuccess.html

index 98a75671be9287e9d4ad362e689d685eea807941..22a24dab3398c6b674d5573ef382e3ce688caae0 100755 (executable)
@@ -39,16 +39,23 @@ Authors:
 //==== PRIORITY P1
 //==== TEST_CRITERIA MMINA MR
 var t = async_test(document.title),
-    successCallback, returnedValue = null;
+    successCallback, returnedValue = null, deviceCapability, type;
 
 t.step(function () {
+    deviceCapability = tizen.systeminfo.getCapability("http://tizen.org/feature/systemsetting.home_screen");
+    if (deviceCapability) {
+        type = "HOME_SCREEN";
+    } else {
+        type = "INCOMING_CALL";
+    }
+
     successCallback = t.step_func(function (value) {
         assert_equals(returnedValue, undefined, "Incorrect value returned from getProperty method.");
         assert_type(value, "string", "Incorrect type.");
         t.done();
     });
 
-    returnedValue = tizen.systemsetting.getProperty("INCOMING_CALL", successCallback);
+    returnedValue = tizen.systemsetting.getProperty(type, successCallback);
 });
 
 </script>
index b596dcf0be8ebc8d12fca9cc2cad976dc06be280..f9950acc9b3bc8676689ea54f4bde51eadeeb225 100755 (executable)
@@ -39,11 +39,18 @@ Authors:
 //==== TEST_CRITERIA MC
 
 var t = async_test(document.title),
-    type = "INCOMING_CALL", propertyValue = IMAGE_FILE_PATH, newValue = IMAGE_FILE_PATH2,
+    type, propertyValue = IMAGE_FILE_PATH, newValue = IMAGE_FILE_PATH2,
     successCallback, exceptionName, errorCallback, i, conversionTable,
-    getDeviceValueCallback, getDeviceValueErrorCallback, deviceValue, deviceValue2;
+    getDeviceValueCallback, getDeviceValueErrorCallback, deviceValue, deviceValue2, deviceCapability;
 
 t.step(function () {
+    deviceCapability = tizen.systeminfo.getCapability("http://tizen.org/feature/systemsetting.home_screen");
+    if (deviceCapability) {
+        type = "HOME_SCREEN";
+    } else {
+        type = "INCOMING_CALL";
+    }
+
     successCallback = t.step_func(function () {
         assert_unreached("SuccessCallback invoked.");
     });
index 0ed9f43bd46a930cc03b6e74014b7d6292e4b84f..d4bf3ec12b56a8461ef1fd3b1b3824b86de438d1 100755 (executable)
@@ -38,13 +38,20 @@ Authors:
 //==== PRIORITY P1
 //==== TEST_CRITERIA MMINA MAST MR
 
-var t = async_test(document.title), type = "INCOMING_CALL",
+var t = async_test(document.title), type, deviceCapability,
     previousValue, getPreviousValueCallback, newValue = IMAGE_FILE_PATH, newValue2 = IMAGE_FILE_PATH2, newValue_check,
     setNewValueSuccessCallback, getNewValueSuccessCallback, returnedValue = null,
     getNewValueSuccessCallback, setPreviousValueSuccessCallback, exception, getPropertyError,
     setPropertyPreviousError;
 
 t.step(function () {
+    deviceCapability = tizen.systeminfo.getCapability("http://tizen.org/feature/systemsetting.home_screen");
+    if (deviceCapability) {
+        type = "HOME_SCREEN";
+    } else {
+        type = "INCOMING_CALL";
+    }
+
     setPropertyPreviousError = t.step_func(function (error) {
         assert_unreached("setPropertyPreviousError() error: " + error.name + ": " + error.message);
     });
index 338182a91395f46f5476763e1949065ef75c6e0d..eaa7fb191b9c6ec975a8691014e60ba0843b90ef 100755 (executable)
@@ -38,16 +38,22 @@ Authors:
 //==== PRIORITY P1
 //==== TEST_CRITERIA CBT CBOA
 
-var t = async_test(document.title), successCallback;
+var t = async_test(document.title), successCallback, deviceCapability, type;
 
 t.step(function () {
+    deviceCapability = tizen.systeminfo.getCapability("http://tizen.org/feature/systemsetting.home_screen");
+    if (deviceCapability) {
+        type = "HOME_SCREEN";
+    } else {
+        type = "INCOMING_CALL";
+    }
 
     successCallback = t.step_func(function (value) {
         assert_type(value, "string", "Incorrect type.");
         t.done();
     });
 
-    tizen.systemsetting.getProperty("INCOMING_CALL", successCallback);
+    tizen.systemsetting.getProperty(type, successCallback);
 });
 
 </script>