-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Issue1908.cs
48 lines (38 loc) · 972 Bytes
/
Issue1908.cs
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
using System;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls.Issues
{
#if UITEST
[NUnit.Framework.Category(Core.UITests.UITestCategories.Github5000)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Github, 1908, "Image reuse", PlatformAffected.Android)]
public class Issue1908 : TestContentPage
{
public Issue1908()
{
}
protected override void Init()
{
StackLayout listView = new StackLayout();
for (int i = 0; i < 1000; i++)
{
listView.Children.Add(new Image() { Source = "oasis.jpg", ClassId = $"OASIS{i}", AutomationId = $"OASIS{i}" });
}
Content = new ScrollView() { Content = listView };
}
#if UITEST && __ANDROID__
[Test]
public void Issue1908Test()
{
RunningApp.WaitForElement(q => q.Marked("OASIS1"));
RunningApp.Screenshot("For manual review. Images load");
}
#endif
}
}