summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue764.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue764.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue764.cs55
1 files changed, 55 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue764.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue764.cs
new file mode 100644
index 00000000..7604fbab
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue764.cs
@@ -0,0 +1,55 @@
+´╗┐using System;
+using System.Linq;
+
+using Xamarin.Forms.CustomAttributes;
+
+#if UITEST
+using NUnit.Framework;
+using Xamarin.UITest;
+#endif
+
+namespace Xamarin.Forms.Controls
+{
+ [Preserve (AllMembers = true)]
+ [Issue (IssueTracker.Github, 764, "Keyboard does not dismiss on SearchBar", PlatformAffected.Android)]
+ public class Issue764 : TestContentPage
+ {
+
+ protected override void Init ()
+ {
+ Title = "Issue 764";
+
+ var searchBar = new SearchBar {
+ Placeholder = "Search Me!"
+ };
+
+ var label = new Label {
+ Text = "Pending Search"
+ };
+
+ searchBar.SearchButtonPressed += (s, e) => label.Text = "Search Activated";
+
+ var layout = new StackLayout {
+ Children = {
+ searchBar,
+ label
+ }
+ };
+
+ Content = layout;
+ }
+
+ // Issue 416
+ // NavigationBar should be visible in modal
+
+#if UITEST
+ [Test]
+ [Category ("ManualReview")]
+ public void Issue764TestsKeyboardDismissedForEnter ()
+ {
+ Assert.Inconclusive ("Needs test");
+ }
+#endif
+
+ }
+}