2016-03-24 01:31:38 +03:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
using Xamarin.Forms.CustomAttributes;
|
2016-04-26 18:20:55 +03:00
|
|
|
|
using Xamarin.Forms.Internals;
|
2016-03-24 01:31:38 +03:00
|
|
|
|
|
|
|
|
|
#if UITEST
|
|
|
|
|
using Xamarin.UITest;
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
#endif
|
|
|
|
|
|
2016-11-17 00:07:30 +03:00
|
|
|
|
namespace Xamarin.Forms.Controls.Issues
|
2016-03-24 01:31:38 +03:00
|
|
|
|
{
|
|
|
|
|
[Preserve(AllMembers = true)]
|
|
|
|
|
[Issue(IssueTracker.Bugzilla, 39829, "RowHeight of ListView is not working for UWP", PlatformAffected.WinRT)]
|
|
|
|
|
public class Bugzilla39829 : TestContentPage
|
|
|
|
|
{
|
|
|
|
|
protected override void Init()
|
|
|
|
|
{
|
|
|
|
|
Title = "Master";
|
|
|
|
|
var listView = new ListView
|
|
|
|
|
{
|
|
|
|
|
RowHeight = 150,
|
|
|
|
|
AutomationId = "listview",
|
|
|
|
|
ItemsSource = new string[] { "Test1", "Test2", "Test3", "Test4", "Test5", "Test6", }
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Content = listView;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#if UITEST
|
|
|
|
|
[Test]
|
|
|
|
|
[Category("ManualReview")]
|
|
|
|
|
public void Bugzilla39829Test()
|
|
|
|
|
{
|
|
|
|
|
RunningApp.WaitForElement(q => q.Marked("listview"));
|
|
|
|
|
RunningApp.Screenshot("If there isn't substantial space between the list items, this test has failed.");
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
}
|