summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-RelativeLayoutUITest.cs
blob: caa05eac875cd9e37618a1476122019ceb07fc68 (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
using NUnit.Framework;
using Xamarin.UITest;
using System.Linq;

namespace Xamarin.Forms.Core.UITests
{
	[TestFixture]
	[Category ("RelativeLayout")]
	internal class RelativeLayoutGalleryTests : BaseTestFixture
	{
		// TODO - Add relative layout tests
		// TODO: Port to new conventions

		public RelativeLayoutGalleryTests ()
		{
			ShouldResetPerFixture = false;
		}

		protected override void NavigateToGallery ()
		{
			App.NavigateToGallery (GalleryQueries.RelativeLayoutGalleryLegacy);
		}

		[Test]
		[Description ("All elements are present")]
		public void RelativeLayoutGalleryAllElementsPresent ()
		{
//			var elements = Enumerable.Range (0, 201).Select (x => x);
//			foreach (int element in elements)
//				App.ScrollDownForElement (q => q.Marked (element.ToString ()), 10);
		}

//		[Test]
//		[Description ("All elements are present - Landscape")]
//		public void RelativeLayoutGalleryAllElementsPresentLandscape ()
//		{
//			App.SetOrientationLandscape ();
//			App.Screenshot ("Rotated to Landscape");
//			RelativeLayoutGalleryAllElementsPresent ();
//			App.SetOrientationPortrait ();
//			App.Screenshot ("Rotated to Portrait");
//		}

	}
}