blob: 72171f39c07dcb1cf78f513a8733c1e4bf03cc9f (
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
|
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);
}
///*******************************************************/
///**************** Landscape tests **********************/
///*******************************************************/
// [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");
// }
}
}
|