diff options
author | Jason Smith <jason.smith@xamarin.com> | 2016-03-22 13:02:25 -0700 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-03-22 16:13:41 -0700 |
commit | 17fdde66d94155fc62a034fa6658995bef6fd6e5 (patch) | |
tree | b5e5073a2a7b15cdbe826faa5c763e270a505729 /Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla24574.cs | |
download | xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.gz xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.bz2 xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.zip |
Initial import
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla24574.cs')
-rw-r--r-- | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla24574.cs | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla24574.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla24574.cs new file mode 100644 index 00000000..b6d3c508 --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla24574.cs @@ -0,0 +1,50 @@ +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, 24574, "Tap Double Tap")] + public class Issue24574 : TestContentPage // or TestMasterDetailPage, etc ... + { + protected override void Init () + { + var label = new Label { + AutomationId = "TapLabel", + Text = "123" + }; + + var rec = new TapGestureRecognizer () { NumberOfTapsRequired = 1 }; + rec.Tapped += (s, e) => { label.Text = "Single"; }; + label.GestureRecognizers.Add (rec); + + rec = new TapGestureRecognizer () { NumberOfTapsRequired = 2 }; + rec.Tapped += (s, e) => { label.Text = "Double"; }; + label.GestureRecognizers.Add (rec); + + Content = label; + } + +#if UITEST + [Test] + public void Issue1Test () + { + RunningApp.Screenshot ("I am at Issue 24574"); + + RunningApp.WaitForElement (q => q.Marked ("TapLabel")); + + RunningApp.Tap (q => q.Marked ("TapLabel")); + RunningApp.WaitForElement (q => q.Marked ("Single")); + + RunningApp.DoubleTap (q => q.Marked ("TapLabel")); + RunningApp.WaitForElement (q => q.Marked ("Double")); + } +#endif + } +} |