-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Issue7339.cs
58 lines (53 loc) · 1.19 KB
/
Issue7339.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
49
50
51
52
53
54
55
56
57
58
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls.Issues
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Github, 7339, "[iOS] Material frame renderer not being cleared",
PlatformAffected.iOS)]
#if UITEST
[NUnit.Framework.Category(UITestCategories.Shell)]
#endif
public class Issue7339 : TestShell
{
protected override void Init()
{
Visual = VisualMarker.Material;
CreateContentPage("Item1").Content =
new StackLayout()
{
Children =
{
new Frame()
{
Content = new Label()
{
Text = "Navigate between flyout items a few times. If app doesn't crash then test has passed"
}
}
}
};
CreateContentPage("Item2").Content =
new StackLayout() { Children = { new Frame() } };
}
#if UITEST
[Test]
public void MaterialFrameDisposesCorrectly()
{
TapInFlyout("Item1");
TapInFlyout("Item2");
TapInFlyout("Item1");
TapInFlyout("Item2");
}
#endif
}
}