//Tizen.Log.Fatal("NUI", "### OnCreate() END!");
}
- static public async Task MainTitleChangeBackgroundColor(Color color)
- {
- //if (color == null)
- //{
- // Random rand = new Random();
- // color = new Color(rand.Next(250) / 255.0f, rand.Next(250) / 255.0f, rand.Next(250) / 255.0f, 1.0f);
- //}
- //MainTitle.BackgroundColor = color;
- //await Task.Delay(1000);
- }
-
- static public async Task MainTitleChangeText(string title)
- {
- //MainTitle.Text = Title + title;
- //MainTitle.PixelSize = TextSize;
- //await Task.Delay(1000);
-
- //Tizen.Log.Fatal("NUI", $"{title} Process ID: {Process.GetCurrentProcess().Id} Thread ID: {Thread.CurrentThread.ManagedThreadId}");
- }
-
protected override void OnResume()
{
base.OnResume();
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("ButtonClickEventArgsTests");
- App.MainTitleChangeBackgroundColor(null);
-
}
[TearDown]
public void Init()\r
{\r
Tizen.Log.Info(TAG, "Init() is called!");\r
- App.MainTitleChangeText("ButtonStateChangedEventArgsTests");\r
- App.MainTitleChangeBackgroundColor(null);\r
-\r
}\r
\r
[TearDown]\r
private const string TAG = "Components";
private bool _stateChangedEvent = false;
private string _image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
- private static bool _focusGainedFlag = false;
- private static bool _focusLostFlag = false;
- private static bool _updateFlag = false;
- private static bool _themeFlag = false;
- private static bool _measureTextFlag = false;
- private static bool _layoutChildFlag = false;
private static bool _flagGetViewStyle = false;
private static bool _flagOnThemeChangedEvent = false;
{
_stateChangedEvent = false;
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("CommonButtonTests");
- App.MainTitleChangeBackgroundColor(null);
-
}
[TearDown]
Assert.Fail("Should throw the Exception: There is no style of defaultButtonX !");
}
catch(InvalidOperationException e)
- {
- Assert.Pass("InvalidOperationException: passed!");
+ {\r
+ if (e != null)
+ {
+ Assert.Pass("InvalidOperationException: passed!");
+ }\r
}
}
}
catch(NullReferenceException e)
{
- Assert.Pass("NullReferenceException: passed!");
+ if (e != null)\r
+ {
+ Assert.Pass("NullReferenceException: passed!");
+ }
}
}
Assert.Fail("Should throw the NullReferenceException!");
}
catch (NullReferenceException e)
- {
- Assert.Pass("NullReferenceException: passed!");
+ {\r
+ if (e != null)\r
+ {
+ Assert.Pass("NullReferenceException: passed!");
+ }\r
}
}
Assert.Fail("Should throw the NullReferenceException!");
}
catch(NullReferenceException e)
- {
- Assert.Pass("NullReferenceException: passed!");
+ {\r
+ if (e != null)\r
+ {
+ Assert.Pass("NullReferenceException: passed!");
+ }\r
}
}
Assert.Fail("Should throw the NullReferenceException!");
}
catch(NullReferenceException e)
- {
- Assert.Pass("NullReferenceException: passed!");
+ {\r
+ if (e != null)\r
+ {
+ Assert.Pass("NullReferenceException: passed!");
+ }\r
}
}
Assert.Fail("Should throw the NullReferenceException!");
}
catch(NullReferenceException e)
- {
- Assert.Pass("NullReferenceException: passed!");
+ {\r
+ if (e != null)\r
+ {
+ Assert.Pass("NullReferenceException: passed!");
+ }\r
}
}
Assert.IsNotNull(button, "Should be not null");
Assert.IsInstanceOf<Components.Button>(button, "Should be equal!");
- button.Style.IconPadding = new Extents(0, 0, 10, 10);
- Assert.AreEqual(0, button.Style.IconPadding.Start, "Retrieved IconPadding.Start should be equal to set value");
- Assert.AreEqual(0, button.Style.IconPadding.End, "Retrieved IconPadding.End should be equal to set value");
- Assert.AreEqual(10, button.Style.IconPadding.Top, "Retrieved IconPadding.Top should be equal to set value");
- Assert.AreEqual(10, button.Style.IconPadding.Bottom, "Retrieved IconPadding.Bottom should be equal to set value");
+ button.IconPadding = new Extents(0, 0, 10, 10);
+ Assert.AreEqual(0, button.IconPadding.Start, "Retrieved IconPadding.Start should be equal to set value");
+ Assert.AreEqual(0, button.IconPadding.End, "Retrieved IconPadding.End should be equal to set value");
+ Assert.AreEqual(10, button.IconPadding.Top, "Retrieved IconPadding.Top should be equal to set value");
+ Assert.AreEqual(10, button.IconPadding.Bottom, "Retrieved IconPadding.Bottom should be equal to set value");
}
[Test]
Assert.IsNotNull(button, "Should be not null");
Assert.IsInstanceOf<Components.Button>(button, "Should be equal!");
- button.Style.TextPadding = new Extents(0, 0, 10, 10);
- Assert.AreEqual(0, button.Style.TextPadding.Start, "Retrieved TextPadding.Start should be equal to set value");
- Assert.AreEqual(0, button.Style.TextPadding.End, "Retrieved TextPadding.End should be equal to set value");
- Assert.AreEqual(10, button.Style.TextPadding.Top, "Retrieved TextPadding.Top should be equal to set value");
- Assert.AreEqual(10, button.Style.TextPadding.Bottom, "Retrieved TextPadding.Bottom should be equal to set value");
+ button.TextPadding = new Extents(0, 0, 10, 10);
+ Assert.AreEqual(0, button.TextPadding.Start, "Retrieved TextPadding.Start should be equal to set value");
+ Assert.AreEqual(0, button.TextPadding.End, "Retrieved TextPadding.End should be equal to set value");
+ Assert.AreEqual(10, button.TextPadding.Top, "Retrieved TextPadding.Top should be equal to set value");
+ Assert.AreEqual(10, button.TextPadding.Bottom, "Retrieved TextPadding.Bottom should be equal to set value");
}
[Test]
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("ButtonStyleTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("LoadingTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
}
catch(InvalidOperationException e)
{
- Assert.Pass("InvalidOperationException: passed!");
+ if (e != null)
+ {
+ Assert.Pass("InvalidOperationException: passed!");
+ }
}
}
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("LoadingStyleTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
public void Init()\r
{\r
Tizen.Log.Info(TAG, "Init() is called!");\r
- App.MainTitleChangeText("PopupButtonClickEventArgsTests");\r
- App.MainTitleChangeBackgroundColor(null);\r
-\r
}\r
\r
[TearDown]\r
private const string TAG = "Components";\r
private string _image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";\r
private string _path = Tizen.Applications.Application.Current.DirectoryInfo.Resource;\r
- private static bool _focusGainedFlag = false;\r
- private static bool _focusLostFlag = false;\r
- private static bool _updateFlag = false;\r
- private static bool _layoutChildFlag = false;\r
- private static bool _themeFlag = false;\r
private static bool _flagGetViewStyle = false;\r
private static bool _flagOnThemeChangedEvent = false;\r
\r
public void Init()\r
{\r
Tizen.Log.Info(TAG, "Init() is called!");\r
- App.MainTitleChangeText("CommonPopupTests");\r
- App.MainTitleChangeBackgroundColor(null);\r
-\r
}\r
\r
[TearDown]\r
}\r
catch(InvalidOperationException e)\r
{\r
- Assert.Pass("InvalidOperationException: passed!");\r
+ if (e != null)\r
+ {\r
+ Assert.Pass("InvalidOperationException: passed!");\r
+ }\r
}\r
}\r
\r
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("PopupStyleTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("ProgressTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
}
catch(InvalidOperationException e)
{
- Assert.Pass("InvalidOperationException: passed!");
+ if (e != null)
+ {
+ Assert.Pass("InvalidOperationException: passed!");
+ }
}
}
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("ProgressStyleTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
public class ScrollBarTests\r
{\r
private const string TAG = "NUI.Components";\r
- private string _style = "";\r
private string _trackImageUrl = "";\r
private static bool _flagGetViewStyle = false;\r
private static bool _flagOnThemeChangedEvent = false;\r
public void Init()\r
{\r
Tizen.Log.Info(TAG, "Init() is called!");\r
- App.MainTitleChangeText("ScrollBarTests");\r
- App.MainTitleChangeBackgroundColor(null);\r
}\r
\r
[TearDown]\r
}\r
catch(InvalidOperationException e)\r
{\r
- Assert.Pass("InvalidOperationException: passed!");\r
+ if (e != null)\r
+ {\r
+ Assert.Pass("InvalidOperationException: passed!");\r
+ }\r
}\r
}\r
\r
}\r
catch(ArgumentOutOfRangeException e)\r
{\r
- Assert.Pass("ArgumentOutOfRangeException: passed!");\r
+ if (e != null)\r
+ {\r
+ Assert.Pass("ArgumentOutOfRangeException: passed!");\r
+ }\r
}\r
}\r
\r
}\r
catch(ArgumentOutOfRangeException e)\r
{\r
- Assert.Pass("ArgumentOutOfRangeException: passed!");\r
+ if (e != null)\r
+ {\r
+ Assert.Pass("ArgumentOutOfRangeException: passed!");\r
+ }\r
}\r
}\r
\r
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("ScrollBarStyleTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("SlidingFinishedArgsTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("StateChangedArgsTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("ValueChangedArgsTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
[Description("Tizen.NUI.Components.Slider Tests")]
public class SliderTests
{
- private bool _checkValue;
- private bool _checkFinish;
- private bool _checkMark;
private const string TAG = "TCT";
private string _image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
private static bool _flagGetViewStyle = false;
public SliderTests()
{
- _checkValue = false;
- _checkFinish = false;
- _checkMark = false;
}
~SliderTests()
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("SliderTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
Tizen.Log.Info(TAG, "Destroy() is called!");
}
- public bool OnSlidingFinish(object obj, Slider.SlidingFinishedArgs args)
- {
- _checkFinish = true;
- return true;
- }
-
- public void OnSliderValueChange(object obj, Slider.ValueChangedArgs args)
- {
- _checkValue = true;
- }
-
[Test]
[Category("P1")]
[Description("Create a Slider object. Check whether Slider is successfully created or not.")]
}
catch(InvalidOperationException e)
{
- Assert.Pass("InvalidOperationException: passed!");
+ if (e != null)
+ {
+ Assert.Pass("InvalidOperationException: passed!");
+ }
}
}
}
catch(NullReferenceException e)
{
- Assert.Pass("NullReferenceException: passed!");
+ if (e != null)
+ {
+ Assert.Pass("NullReferenceException: passed!");
+ }
}
}
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("SliderStyleTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
public class StyleBaseTests
{
private const string TAG = "Components";
- private static bool flagGetViewStyle = false;
[SetUp]
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("StyleBaseTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
}
protected override ViewStyle GetViewStyle()
{
- flagGetViewStyle = true;
return new SliderStyle();
}
}
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("ThemeChangeEventArgsTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("StyleManagerTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
}
catch (InvalidOperationException e)
{
- Assert.Pass("InvalidOperationException: passed!");
+ if (e != null)\r
+ {
+ Assert.Pass("InvalidOperationException: passed!");
+ }
}
}
}
catch (InvalidOperationException e)
{
- Assert.Pass("InvalidOperationException: passed!");
+ if (e != null)\r
+ {
+ Assert.Pass("InvalidOperationException: passed!");
+ }
}
}
}
catch (ArgumentException e)
{
- Assert.Pass("ArgumentException: passed!");
+ if (e != null)\r
+ {
+ Assert.Pass("ArgumentException: passed!");
+ }
}
}
Assert.Fail("Should throw the InvalidOperationException!");
}
catch (InvalidOperationException e)
- {
- Assert.Pass("InvalidOperationException: passed!");
+ {\r
+ if (e != null)\r
+ {
+ Assert.Pass("InvalidOperationException: passed!");
+ }\r
}
}
Assert.Fail("Should throw the ArgumentException!");
}
catch (ArgumentException e)
- {
- Assert.Pass("ArgumentException: passed!");
+ {\r
+ if (e != null)
+ {
+ Assert.Pass("ArgumentException: passed!");
+ }\r
}
}
}
catch (ArgumentException e)
{
- Assert.Pass("ArgumentException: passed!");
+ if (e != null)\r
+ {
+ Assert.Pass("ArgumentException: passed!");
+ }
}
}
}
catch(ArgumentException e)
{
- Assert.Pass("ArgumentException: passed!");
+ if (e != null)\r
+ {
+ Assert.Pass("ArgumentException: passed!");
+ }
}
}
public void Init()\r
{\r
Tizen.Log.Info(TAG, "Init() is called!");\r
- App.MainTitleChangeText("SwitchSelectEventArgsTests");\r
- App.MainTitleChangeBackgroundColor(null);\r
-\r
}\r
\r
[TearDown]\r
public void Init()\r
{\r
Tizen.Log.Info(TAG, "Init() is called!");\r
- App.MainTitleChangeText("CommonSwitchTests");\r
- App.MainTitleChangeBackgroundColor(null);\r
}\r
\r
[TearDown]\r
}\r
catch(InvalidOperationException e)\r
{\r
- Assert.Pass("InvalidOperationException: passed!");\r
+ if (e != null)\r
+ {\r
+ Assert.Pass("InvalidOperationException: passed!");\r
+ }\r
}\r
}\r
\r
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("SwitchStyleTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("ItemChangedEventArgsTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("TabItemDataTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("TabTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
}
catch(InvalidOperationException e)
{
- Assert.Pass("InvalidOperationException: passed!");
+ if (e != null)\r
+ {
+ Assert.Pass("InvalidOperationException: passed!");
+ }
}
}
Assert.Fail("Should throw the ArgumentException !");
}
catch(ArgumentException e)
- {
- Assert.Pass("ArgumentException: passed!");
+ {\r
+ if (e != null)\r
+ {
+ Assert.Pass("ArgumentException: passed!");
+ }
}
}
Assert.Fail("Should throw the NullReferenceException!");
}
catch(NullReferenceException e)
- {
- Assert.Pass("NullReferenceException: passed!");
+ {\r
+ if (e != null)\r
+ {
+ Assert.Pass("NullReferenceException: passed!");
+ }
}
}
Assert.Fail("Should throw the ArgumentException!");
}
catch (ArgumentException e)
- {
- Assert.Pass("ArgumentException: passed!");
+ {\r
+ if (e != null)
+ {
+ Assert.Pass("ArgumentException: passed!");
+ }\r
}
}
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("TabStyleTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("ToastTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]
}
catch(InvalidOperationException e)
{
- Assert.Pass("InvalidOperationException: passed!");
+ if(e != null)\r
+ {
+ Assert.Pass("InvalidOperationException: passed!");
+ }
}
}
public void Init()
{
Tizen.Log.Info(TAG, "Init() is called!");
- App.MainTitleChangeText("ToastStyleTests");
- App.MainTitleChangeBackgroundColor(null);
}
[TearDown]