maui-linux/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issu.../Bugzilla36393.cs

46 строки
1.2 KiB
C#
Исходник Обычный вид История

2016-03-22 23:02:25 +03:00
using System;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
2016-03-22 23:02:25 +03:00
#if UITEST
2017-12-29 23:37:05 +03:00
using Xamarin.Forms.Core.UITests;
2016-03-22 23:02:25 +03:00
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls.Issues
2016-03-22 23:02:25 +03:00
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 36393, "[A] Default Entry/Editor/SearchBar Font Size is 14 instead of 18")]
2017-12-29 23:37:05 +03:00
public class Bugzilla36393 : TestContentPage
2016-03-22 23:02:25 +03:00
{
protected override void Init()
{
var instructions = new Label
{
Text =
"If running on Android, all of the Label, Entry, Editor, and SearchBar text sizes below should be"
+ " the same size."
+ " If they are not, the test has failed."
+ " This test should be ignored on non-Android platforms."
};
2016-03-22 23:02:25 +03:00
var label = new Label { FontSize = 18 };
var entry = new Entry();
var editor = new Editor();
var searchBar = new SearchBar();
2016-03-22 23:02:25 +03:00
label.Text = $"I am label. FontSize:{label.FontSize}";
entry.Text = $"I am entry. FontSize:{entry.FontSize}";
editor.Text = $"I am editor. FontSize:{editor.FontSize}";
searchBar.Text = $"I am search bar. FontSize:{searchBar.FontSize}";
Content = new StackLayout
{
Children = { instructions, label, entry, editor, searchBar }
2016-03-22 23:02:25 +03:00
};
}
}
}