blob: a18b32d8acc0fe9f960dc0595133ee1685c85419 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
using System;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 36393, "[A] Default Entry/Editor/SearchBar Font Size is 14 instead of 18")]
public class Bugzilla36393 : TestContentPage // or TestMasterDetailPage, etc ...
{
protected override void Init()
{
var label = new Label { FontSize = 18 };
var entry = new Entry { };
var editor = new Editor { };
var searchBar = new SearchBar { };
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}";
// Initialize ui here instead of ctor
Content = new StackLayout
{
Children = { label, entry, editor, searchBar }
};
}
#if UITEST
[Test]
public void Issue1Test()
{
RunningApp.Screenshot("If all of the font sizes are visibly the same size, this test has passed.");
}
#endif
}
}
|