////[Test] //[Category("P1")] //[Description("Check FontSizeChangedEventArgs Value property")] //[Property("SPEC", "Tizen.System.FontSizeChangedEventArgs.Value A")] //[Property("SPEC_URL", "-")] //[Property("CRITERIA", "PRE")] //[Property("AUTHOR", "Aditya Aswani, [email protected]")] public static async Task Value_ENUM_NORMAL() { LogUtils.StartTest(); /* * PRECONDITION * 1. Assign event handler */ Tizen.System.SystemSettings.FontSizeChanged += OnFontSizeChangedNormalValue; SystemSettingsFontSize preValue = Tizen.System.SystemSettings.FontSize; Tizen.System.SystemSettings.FontSize = Tizen.System.SystemSettingsFontSize.Normal; await Task.Delay(2000); Assert.IsTrue(s_fontSizeNormalCallbackCalled, "Value_ENUM_NORMAL: EventHandler added. Not getting called"); /* * POSTCONDITION * 1. Reset callback called flag * 2. Remove event handler * 3. Reset property value */ Tizen.System.SystemSettings.FontSizeChanged -= OnFontSizeChangedNormalValue; s_fontSizeNormalCallbackCalled = false; Tizen.System.SystemSettings.FontSize = preValue; LogUtils.WriteOK(); }
/// <summary> /// Gets unified font size, common for all supported platform. /// </summary> /// <param name="systemSettingsFontSize">Platform depended font size.</param> /// <returns>Common for all supported platform font size.</returns> public static FontSize FontSizeMapper(SystemSettingsFontSize systemSettingsFontSize) { return(FontSizeDictionary[systemSettingsFontSize]); }
internal FontSizeChangedEventArgs(SystemSettingsFontSize val) { _fontSize = val; }