summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue764.cs
blob: 5336f2ff260f246b56747420571ae5f71c759496 (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
45
46
47
48
49
50
51
52
53
54
55
56
using System;
using System.Linq;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;

#if UITEST
using NUnit.Framework;
using Xamarin.UITest;
using Xamarin.Forms.Core.UITests;
#endif

namespace Xamarin.Forms.Controls.Issues
{
	[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(UITestCategories.ManualReview)]
		public void Issue764TestsKeyboardDismissedForEnter ()
		{
			Assert.Inconclusive ("Needs test");
		}
#endif

    }
}