From 1b06362254c613435a68cddde7d6ab714b381a2b Mon Sep 17 00:00:00 2001 From: "shyun.min" Date: Mon, 21 May 2018 18:39:57 +0900 Subject: [PATCH] [ElmSharp][Non-ACR] Remove unsupported test on TV profile Change-Id: I9edc1e164ab5872c8713763ddce1ed7c099d3562 --- .../testcase/TSWindow.cs | 49 ++++++++++++---------- 1 file changed, 28 insertions(+), 21 deletions(-) mode change 100755 => 100644 tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSWindow.cs diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSWindow.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSWindow.cs old mode 100755 new mode 100644 index 8772132..18c89a6 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSWindow.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSWindow.cs @@ -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"); + } } } } - - - -- 2.7.4