diff options
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue181.cs')
-rw-r--r-- | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue181.cs | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue181.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue181.cs new file mode 100644 index 00000000..e290c4a6 --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue181.cs @@ -0,0 +1,41 @@ +using Xamarin.Forms.CustomAttributes; + +#if UITEST +using NUnit.Framework; +using Xamarin.UITest; +#endif + +namespace Xamarin.Forms.Controls +{ + [Preserve (AllMembers=true)] + [Issue (IssueTracker.Github, 181, "Color not initialized for Label", PlatformAffected.Android, NavigationBehavior.PushModalAsync)] + public class Issue181 : TestContentPage + { + protected override void Init () + { + Title = "Issue 181"; + Content = new Frame { + OutlineColor = Color.Red, + BackgroundColor = new Color (1.0, 1.0, 0.0), + Content = new Label { + Text = "I should have red text", + TextColor = Color.Red, + BackgroundColor = new Color (0.5, 0.5, 0.5), + XAlign = TextAlignment.Center, + YAlign = TextAlignment.Center + } + }; + } + +#if UITEST + [Test] + [Category ("ManualReview")] + [UiTest (typeof(Label), "TextColor")] + public void Issue181TestsLabelShouldHaveRedText () + { + RunningApp.WaitForElement (q => q.Marked ("I should have red text")); + RunningApp.Screenshot ("Label should have red text"); + } +#endif + } +} |