[Feedback][ACR-153][Add vibration feature] 37/181637/3
authorpr.jung <pr.jung@samsung.com>
Fri, 15 Jun 2018 07:53:19 +0000 (16:53 +0900)
committerJung <pr.jung@samsung.com>
Mon, 25 Jun 2018 05:28:02 +0000 (05:28 +0000)
Change-Id: Ieba97fa52407d12386de4da2cfe563ec7bcb47e5
Signed-off-by: pr.jung <pr.jung@samsung.com>
tct-suite-vs/Tizen.Device.Manual.Tests/testcase/TSVibrator.cs [changed mode: 0755->0644]
tct-suite-vs/Tizen.Device.Tests/testcase/TSVibrator.cs [changed mode: 0755->0644]
tct-suite-vs/Tizen.Feedback.Tests/testcase/TSFeedback.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 5c102f0..dca55ad
@@ -14,7 +14,7 @@ namespace Tizen.System.Tests
         [SetUp]
         public static void Init()
         {
-            bool ret_value;
+            bool ret_value, vib;
             string value = null;
             ret_value = Tizen.System.Information.TryGetValue<string>("http://tizen.org/system/model_name", out value);
             if (ret_value == true && value.CompareTo("Emulator") == 0)
@@ -23,11 +23,16 @@ namespace Tizen.System.Tests
                 return;
             }
 
-            ret_value = Tizen.System.Information.TryGetValue<string>("tizen.org/feature/profile", out value);
-            if (ret_value == true && (value.CompareTo("mobile") != 0 || value.CompareTo("wearable") != 0))
+            ret_value = Tizen.System.Information.TryGetValue<bool>("http://tizen.org/feature/feedback.vibration", out vib);
+            if (ret_value && vib)
             {
-                isSupport = 0;
+                isSupport = 1;
                 return;
+            }\r
+            else\r
+            {
+                isSupport = 0;\r
+                return;\r
             }
         }
 
old mode 100755 (executable)
new mode 100644 (file)
index 0bc0730..78750b1
@@ -17,7 +17,7 @@ namespace Tizen.System.Tests
             bool ret;
             bool value;
 
-            ret = Information.TryGetValue<bool>("http://tizen.org/feature/battery", out value);
+            ret = Information.TryGetValue<bool>("http://tizen.org/feature/feedback.vibration", out value);
             if (ret && value)
                 support = true;
             else
old mode 100755 (executable)
new mode 100644 (file)
index a42b315..80ef7b5
@@ -77,7 +77,7 @@ namespace Tizen.System.Tests {
             bool ret;
             Feedback feedback = new Feedback();
 
-            ret = Information.TryGetValue<bool>("http://tizen.org/feature/battery", out value);
+            ret = Information.TryGetValue<bool>("http://tizen.org/feature/feedback.vibration", out value);
             if (ret && value)
                 support_vibration = true;
             else
@@ -167,7 +167,7 @@ namespace Tizen.System.Tests {
             bool value;
             bool support_vibration;
 
-            ret = Information.TryGetValue<bool>("http://tizen.org/feature/battery", out value);
+            ret = Information.TryGetValue<bool>("http://tizen.org/feature/feedback.vibration", out value);
             if (ret && value)
                 support_vibration = true;
             else
@@ -239,7 +239,7 @@ namespace Tizen.System.Tests {
             bool value;
             bool support_vibration;
 
-            ret = Information.TryGetValue<bool>("http://tizen.org/feature/battery", out value);
+            ret = Information.TryGetValue<bool>("http://tizen.org/feature/feedback.vibration", out value);
             if (ret && value)
                 support_vibration = true;
             else