зеркало из https://github.com/DeGsoft/maui-linux.git
34 строки
935 B
C#
34 строки
935 B
C#
using System.Threading;
|
|
using Xamarin.Forms.CustomAttributes;
|
|
using Xamarin.Forms.Internals;
|
|
|
|
#if UITEST
|
|
using Xamarin.Forms.Core.UITests;
|
|
using Xamarin.UITest;
|
|
using NUnit.Framework;
|
|
#endif
|
|
|
|
namespace Xamarin.Forms.Controls.Issues
|
|
{
|
|
#if UITEST
|
|
[Category(UITestCategories.ManualReview)]
|
|
#endif
|
|
[Preserve(AllMembers = true)]
|
|
[Issue(IssueTracker.Github, 7053, "Support for Accessibility automation properties on iOS is removed for Layouts", PlatformAffected.iOS)]
|
|
public class Issue7053 : TestContentPage
|
|
{
|
|
protected override void Init()
|
|
{
|
|
|
|
var stack = new StackLayout
|
|
{
|
|
AutomationId = "test",
|
|
Children = { new Label { Text = "Turn on the Screen Reader. If you do not hear 'I am the StackLayout', this test has failed." } },
|
|
};
|
|
|
|
AutomationProperties.SetIsInAccessibleTree(stack, true);
|
|
AutomationProperties.SetName(stack, "I am the StackLayout. This should be announced.");
|
|
Content = stack;
|
|
}
|
|
}
|
|
} |