summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@gmail.com>2017-09-05 22:23:28 (GMT)
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 04:30:09 (GMT)
commite02cb2052cc4492a2fd915c694f8f994e74e9c76 (patch)
tree4841d22d3eb986267f9a8056231a41c2b07e3441 /Xamarin.Forms.Controls.Issues
parent95c51598724561b0ed1c8940736ceb7972f0db22 (diff)
downloadxamarin-forms-e02cb2052cc4492a2fd915c694f8f994e74e9c76.zip
xamarin-forms-e02cb2052cc4492a2fd915c694f8f994e74e9c76.tar.gz
xamarin-forms-e02cb2052cc4492a2fd915c694f8f994e74e9c76.tar.bz2
Add RelativeLayout to 44096 tests
Diffstat (limited to 'Xamarin.Forms.Controls.Issues')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44096.cs22
1 files changed, 21 insertions, 1 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44096.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44096.cs
index 37c135d..69cd530 100644
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44096.cs
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44096.cs
@@ -26,6 +26,7 @@ namespace Xamarin.Forms.Controls.Issues
const string StackLayout = "stackLayout";
const string ContentView = "contentView";
const string Grid = "grid";
+ const string RelativeLayout = "relativeLayout";
protected override void Init()
{
@@ -61,6 +62,15 @@ namespace Xamarin.Forms.Controls.Issues
};
AddTapGesture(result, stackLayout);
+ var relativeLayout = new RelativeLayout
+ {
+ IsEnabled = true,
+ WidthRequest = 250,
+ HeightRequest = 50,
+ AutomationId = RelativeLayout
+ };
+ AddTapGesture(result, relativeLayout);
+
var color = new Button
{
Text = "Toggle colors",
@@ -71,12 +81,14 @@ namespace Xamarin.Forms.Controls.Issues
grid.BackgroundColor = Color.Red;
contentView.BackgroundColor = Color.Blue;
stackLayout.BackgroundColor = Color.Yellow;
+ relativeLayout.BackgroundColor = Color.Green;
}
else
{
grid.BackgroundColor = Color.Default;
contentView.BackgroundColor = Color.Default;
stackLayout.BackgroundColor = Color.Default;
+ relativeLayout.BackgroundColor = Color.Default;
}
_flag = !_flag;
@@ -92,6 +104,7 @@ namespace Xamarin.Forms.Controls.Issues
grid.IsEnabled = false;
contentView.IsEnabled = false;
stackLayout.IsEnabled = false;
+ relativeLayout.IsEnabled = false;
result.Text = Original;
}),
@@ -111,7 +124,8 @@ namespace Xamarin.Forms.Controls.Issues
result,
grid,
contentView,
- stackLayout
+ stackLayout,
+ relativeLayout
}
};
@@ -150,6 +164,12 @@ namespace Xamarin.Forms.Controls.Issues
TestControl(StackLayout);
}
+ [Test]
+ public void TestRelativeLayout()
+ {
+ TestControl(RelativeLayout);
+ }
+
void TestControl(string control)
{
RunningApp.WaitForElement(q => q.Marked(control));