summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla36393.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla36393.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla36393.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla36393.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla36393.cs
new file mode 100644
index 00000000..6aecc1a8
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla36393.cs
@@ -0,0 +1,43 @@
+using System;
+
+using Xamarin.Forms.CustomAttributes;
+
+#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
+ }
+}