public class WindowTests
{
private static Window _window = null;
+ private static TestPage _testPage = TestPage.GetInstance();
[SetUp]
public static void Init()
[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");
+ }
}
}
}
-
-
-