Merge pull request #809 from irihitech/upgrade_11.3.7

Update Avalonia version to 11.3.7 across project files
This commit is contained in:
Zhang Dian
2025-11-11 14:10:04 +08:00
committed by GitHub
4 changed files with 22 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Nullable>enable</Nullable>
<AvaloniaVersion>11.2.5</AvaloniaVersion>
<AvaloniaVersion>11.3.7</AvaloniaVersion>
</PropertyGroup>
</Project>

View File

@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<Version>1.13.0</Version>
<AvaloniaVersion>11.1.1</AvaloniaVersion>
<AvaloniaVersion>11.3.7</AvaloniaVersion>
<Authors>IRIHI Technology Co., Ltd.</Authors>
<RepositoryUrl>https://github.com/irihitech/Ursa.Avalonia</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>

View File

@@ -1,8 +1,10 @@
using Avalonia;
using Avalonia.Controls;
using Avalonia.Headless;
using Avalonia.Headless.XUnit;
using Avalonia.Input;
using Avalonia.LogicalTree;
using Avalonia.VisualTree;
using Ursa.Controls;
namespace HeadlessTest.Ursa.Controls.FormTests.AccessibilityTests;
@@ -19,6 +21,11 @@ public class FormAccessibilityTests
Assert.False(form.NameBox.IsFocused);
Assert.False(form.EmailBox.IsFocused);
var label1 = form.GetVisualDescendants().OfType<Label>().First();
Assert.Equal("_Name", label1.Content);
var position1 = label1.TranslatePoint(new Point(), window);
Assert.NotNull(position1);
window.MouseDown(position1.Value, MouseButton.Left);
window.KeyPressQwerty(PhysicalKey.N, RawInputModifiers.Alt);
Assert.True(form.NameBox.IsFocused);
Assert.False(form.EmailBox.IsFocused);
@@ -37,6 +44,11 @@ public class FormAccessibilityTests
Assert.False(form.NameBox.IsFocused);
Assert.False(form.EmailBox.IsFocused);
var label1 = form.GetVisualDescendants().OfType<Label>().First();
Assert.Equal("_Name", label1.Content);
var position1 = label1.TranslatePoint(new Point(), window);
Assert.NotNull(position1);
window.MouseDown(position1.Value, MouseButton.Left);
window.KeyPressQwerty(PhysicalKey.N, RawInputModifiers.Alt);
Assert.True(form.NameBox.IsFocused);
Assert.False(form.EmailBox.IsFocused);
@@ -68,6 +80,11 @@ public class FormAccessibilityTests
Assert.False(text1.IsFocused);
Assert.False(text2.IsFocused);
var label1 = form.GetVisualDescendants().OfType<Label>().First();
Assert.Equal("_Name", label1.Content);
var position1 = label1.TranslatePoint(new Point(), window);
Assert.NotNull(position1);
window.MouseDown(position1.Value, MouseButton.Left);
window.KeyPressQwerty(PhysicalKey.N, RawInputModifiers.Alt);
Assert.True(text1.IsFocused);
Assert.False(text2.IsFocused);

View File

@@ -10,12 +10,12 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Avalonia.Headless.XUnit" Version="11.2.3" />
<PackageReference Include="Avalonia.Skia" Version="11.2.3" />
<PackageReference Include="Avalonia.Headless.XUnit" Version="11.3.7" />
<PackageReference Include="Avalonia.Skia" Version="11.3.7" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.0" />
<PackageReference Include="coverlet.collector" Version="6.0.4"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0"/>
<PackageReference Include="Semi.Avalonia" Version="11.2.1.3" />
<PackageReference Include="Semi.Avalonia" Version="11.3.7" />
<PackageReference Include="xunit" Version="2.5.3"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3"/>
</ItemGroup>