summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1146.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1146.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1146.cs48
1 files changed, 48 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1146.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1146.cs
new file mode 100644
index 00000000..a3466229
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1146.cs
@@ -0,0 +1,48 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Xamarin.Forms.CustomAttributes;
+
+#if UITEST
+using NUnit.Framework;
+using Xamarin.UITest;
+#endif
+
+namespace Xamarin.Forms.Controls.TestCasesPages
+{
+ [Preserve (AllMembers=true)]
+ [Issue(IssueTracker.Github, 1146, "Disabled Switch in Button Gallery not rendering on all devices", PlatformAffected.Android)]
+ public class Issue1146 : TestContentPage
+ {
+ protected override void Init ()
+ {
+ Content = new ScrollView
+ {
+ Content = new StackLayout
+ {
+ Padding = new Size(20, 20),
+ Children = {
+ new StackLayout {
+ Orientation = StackOrientation.Horizontal,
+ Children= {
+ new Switch() { IsEnabled = false , AutomationId="switch"},
+ },
+ },
+ }
+ }
+ };
+ }
+
+#if UITEST
+ [Test]
+ public void TestSwitchDisable()
+ {
+ RunningApp.WaitForElement (c => c.Marked ("switch"));
+ RunningApp.Screenshot("Is the button here?");
+ }
+#endif
+
+ }
+}