{
base.OnCreate();
SystemSettingsTests.TestAllAsync();
+
//Initialize();
}
}
- void Initialize()
+ public void DisplayString()
{
Window.Instance.KeyEvent += OnKeyEvent;
TextLabel text = new TextLabel("SystemSettings Unit Test");
- text.HorizontalAlignment = HorizontalAlignment.Center;
- text.VerticalAlignment = VerticalAlignment.Center;
- text.TextColor = Color.Blue;
- text.PointSize = 12.0f;
- text.HeightResizePolicy = ResizePolicyType.FillToParent;
- text.WidthResizePolicy = ResizePolicyType.FillToParent;
+ //text.HorizontalAlignment = HorizontalAlignment.Center;
+ //text.VerticalAlignment = VerticalAlignment.Center;
+ //text.TextColor = Color.Blue;
+ //text.PointSize = 12.0f;
+ //text.HeightResizePolicy = ResizePolicyType.FillToParent;
+ //text.WidthResizePolicy = ResizePolicyType.FillToParent;
Window.Instance.GetDefaultLayer().Add(text);
- /*
- Animation animation = new Animation(2000);
- animation.AnimateTo(text, "Orientation", new Rotation(new Radian(new Degree(180.0f)), PositionAxis.X), 200, 500);
- animation.AnimateTo(text, "Orientation", new Rotation(new Radian(new Degree(0.0f)), PositionAxis.X), 500, 1000);
- animation.Looping = true;
- animation.Play();
- */
-
}
public void OnKeyEvent(object sender, Window.KeyEventArgs e)
Assert.IsInstanceOf<string>(Tizen.System.SystemSettings.FontType, "FontType_READ_WRITE: FontType not an instance of string");
string setValue = "BreezeSans";
string preValue = Tizen.System.SystemSettings.FontType;
+
Thread.Sleep(3000);
Tizen.System.SystemSettings.FontType = setValue;
var getValue = Tizen.System.SystemSettings.FontType;
Assert.IsTrue(getValue.CompareTo(setValue) == 0, "FontType_READ_WRITE: Set value and get value of the property should be same.");
Thread.Sleep(1000);
-
- string strProfile;
- Information.TryGetValue<string>("tizen.org/feature/profile", out strProfile);
- if (string.Compare(strProfile, "mobile") == 0)
- Tizen.System.SystemSettings.FontType = preValue;
-
-
LogUtils.WriteOK();
}