[ElmSharp][Non-ACR] Remove unsupported test on TV profile 11/179711/1
authorshyun.min <shyun.min@samsung.com>
Mon, 21 May 2018 09:39:57 +0000 (18:39 +0900)
committershyun.min <shyun.min@samsung.com>
Mon, 21 May 2018 09:45:36 +0000 (18:45 +0900)
Change-Id: I9edc1e164ab5872c8713763ddce1ed7c099d3562

tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSWindow.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 8772132..18c89a6
@@ -28,6 +28,7 @@ namespace ElmSharp.Tests
     public class WindowTests
     {
         private static Window _window = null;
+        private static TestPage _testPage = TestPage.GetInstance();
 
         [SetUp]
         public static void Init()
@@ -71,31 +72,37 @@ namespace ElmSharp.Tests
         [Postcondition(1, "NA")]
         public async Task RotationChanged_EVENT()
         {
-            _window = new Window("Test Window");
-            _window.AutoDeletion = true;
-            _window.AvailableRotations = DisplayRotation.Degree_90;
-            var label = new Label(_window)
+            if ((ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.MobileProfile) == 0) ||
+                (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.WearableProfile) == 0))
             {
-                AlignmentX = -1,
-                AlignmentY = -1,
-                WeightX = 1,
-                WeightY = 1,
-                BackgroundColor = Color.White,
-                Text = "This is a Test Window!!"
-            };
-            label.Show();
-            _window.AddResizeObject(label);
-            _window.Show();
+                _window = new Window("Test Window");
+                _window.AutoDeletion = true;
+                _window.AvailableRotations = DisplayRotation.Degree_90;
+                var label = new Label(_window)
+                {
+                    AlignmentX = -1,
+                    AlignmentY = -1,
+                    WeightX = 1,
+                    WeightY = 1,
+                    BackgroundColor = Color.White,
+                    Text = "This is a Test Window!!"
+                };
+                label.Show();
+                _window.AddResizeObject(label);
+                _window.Show();
 
-            _window.RotationChanged += _window_RotationChanged;
+                _window.RotationChanged += _window_RotationChanged;
 
-            // Waits for user confirmation.
-            await ManualTest.WaitForConfirm();
+                // Waits for user confirmation.
+                await ManualTest.WaitForConfirm();
 
-            _window.RotationChanged -= _window_RotationChanged;
+                _window.RotationChanged -= _window_RotationChanged;
+            }
+            else
+            {
+                _testPage.UnlockUIButton();
+                Assert.Pass("Not Supported");
+            }
         }
     }
 }
-
-
-