2016-03-22 23:02:25 +03:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
using Xamarin.Forms.CustomAttributes;
|
2016-04-26 18:20:55 +03:00
|
|
|
|
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
|
|
|
|
|
|
2016-11-17 00:07:30 +03:00
|
|
|
|
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()
|
|
|
|
|
{
|
2018-05-16 02:13:08 +03:00
|
|
|
|
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 };
|
2018-05-16 02:13:08 +03:00
|
|
|
|
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
|
|
|
|
|
{
|
2018-05-16 02:13:08 +03:00
|
|
|
|
Children = { instructions, label, entry, editor, searchBar }
|
2016-03-22 23:02:25 +03:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|