summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla30935.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla30935.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla30935.cs44
1 files changed, 44 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla30935.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla30935.cs
new file mode 100644
index 00000000..3953f63d
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla30935.cs
@@ -0,0 +1,44 @@
+´╗┐using System;
+
+using Xamarin.Forms.CustomAttributes;
+
+#if UITEST
+using Xamarin.UITest;
+using NUnit.Framework;
+#endif
+
+namespace Xamarin.Forms.Controls
+{
+ [Issue (IssueTracker.Bugzilla, 30935, "NullReferenceException in ViewRenderer<TView, TNativeView> (Xamarin.Forms.Platform.Android)")]
+ public class Bugzilla30935 : TestContentPage
+ {
+ Entry _entry;
+ protected override void Init ()
+ {
+ _entry = new Entry { AutomationId = "entry" };
+ // Initialize ui here instead of ctor
+ Content = new StackLayout { Children = { new Label {
+ AutomationId = "IssuePageLabel",
+ Text = "See if I'm here"
+ },_entry
+ }
+ };
+ }
+
+ protected override void OnAppearing ()
+ {
+ _entry.Focus ();
+ Content = null;
+ base.OnAppearing ();
+ }
+
+#if UITEST
+ [Test]
+ public void Bugzilla30935DoesntThrowException ()
+ {
+ RunningApp.WaitForNoElement (q => q.Marked ("IssuePageLabel"));
+ RunningApp.WaitForNoElement (q => q.Marked ("entry"));
+ }
+#endif
+ }
+}