summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ClipToBoundsUITests.cs
blob: 9dffeaaf7008e077fba5cbe8c36fd1c7e197a0c4 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
using System;
using System.Runtime;
using NUnit.Framework;
using Xamarin.UITest;
using Xamarin.UITest.Shared;

namespace Xamarin.Forms.Core.UITests
{
	[TestFixture]
	[Category ("AbsoluteLayout")]
	internal class ClipToBoundsGalleryTests : BaseTestFixture
	{
		// TODO detect size before and after clip
		// TODO: Port to new conventions

		public ClipToBoundsGalleryTests ()
		{
			ShouldResetPerFixture = false;
		}

		protected override void NavigateToGallery ()
		{
			App.NavigateToGallery (GalleryQueries.ClipToBoundsGalleryLegacy);
		}
		[Test]
		[Description ("Check all elements exist")]
		public void ClipToBoundsGalleryAllElementsExist ()
		{
//			App.WaitForElement (q => q.Button ("Clip"), "Timeout : Clip");
//			var boxes = App.Query (PlatformQueries.BoxRendererQuery);
//			Assert.AreEqual (2, boxes.Length);
//			App.Screenshot ("2 boxes exist");


		}	

//		[Test]
//		[Description ("Clip boxes")]
//		public void ClipToBoundsGalleryClipElements ()
//		{
//			App.Tap (q => q.Button ("Clip"));
//			App.Screenshot ("Clip elements");
//		}

///*******************************************************/
///**************** Landscape tests **********************/
///*******************************************************/

//		[Test]
//		[Description ("Check all elements exist - landscape")]
//		public void ClipToBoundsGalleryAllElementsExistLandscape ()
//		{
//			App.SetOrientationLandscape ();
//			App.Screenshot ("Rotated to Landscape");
//			ClipToBoundsGalleryAllElementsExist ();
//			App.SetOrientationPortrait ();
//			App.Screenshot ("Rotated to Portrait");
//		}	

//		[Test]
//		[Description ("Clip boxes - landscape")]
//		public void ClipToBoundsGalleryClipElementsLandscape ()
//		{
//			App.SetOrientationLandscape ();
//			App.Screenshot ("Rotated to Landscape");
//			ClipToBoundsGalleryClipElements ();
//			App.SetOrientationPortrait ();
//			App.Screenshot ("Rotated to Portrait");
	//	}

	}
}