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:
@@ -1,6 +1,6 @@
|
|||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<AvaloniaVersion>11.2.5</AvaloniaVersion>
|
<AvaloniaVersion>11.3.7</AvaloniaVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>1.13.0</Version>
|
<Version>1.13.0</Version>
|
||||||
<AvaloniaVersion>11.1.1</AvaloniaVersion>
|
<AvaloniaVersion>11.3.7</AvaloniaVersion>
|
||||||
<Authors>IRIHI Technology Co., Ltd.</Authors>
|
<Authors>IRIHI Technology Co., Ltd.</Authors>
|
||||||
<RepositoryUrl>https://github.com/irihitech/Ursa.Avalonia</RepositoryUrl>
|
<RepositoryUrl>https://github.com/irihitech/Ursa.Avalonia</RepositoryUrl>
|
||||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
|
using Avalonia;
|
||||||
using Avalonia.Controls;
|
using Avalonia.Controls;
|
||||||
using Avalonia.Headless;
|
using Avalonia.Headless;
|
||||||
using Avalonia.Headless.XUnit;
|
using Avalonia.Headless.XUnit;
|
||||||
using Avalonia.Input;
|
using Avalonia.Input;
|
||||||
using Avalonia.LogicalTree;
|
using Avalonia.LogicalTree;
|
||||||
|
using Avalonia.VisualTree;
|
||||||
using Ursa.Controls;
|
using Ursa.Controls;
|
||||||
|
|
||||||
namespace HeadlessTest.Ursa.Controls.FormTests.AccessibilityTests;
|
namespace HeadlessTest.Ursa.Controls.FormTests.AccessibilityTests;
|
||||||
@@ -19,6 +21,11 @@ public class FormAccessibilityTests
|
|||||||
|
|
||||||
Assert.False(form.NameBox.IsFocused);
|
Assert.False(form.NameBox.IsFocused);
|
||||||
Assert.False(form.EmailBox.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);
|
window.KeyPressQwerty(PhysicalKey.N, RawInputModifiers.Alt);
|
||||||
Assert.True(form.NameBox.IsFocused);
|
Assert.True(form.NameBox.IsFocused);
|
||||||
Assert.False(form.EmailBox.IsFocused);
|
Assert.False(form.EmailBox.IsFocused);
|
||||||
@@ -37,6 +44,11 @@ public class FormAccessibilityTests
|
|||||||
|
|
||||||
Assert.False(form.NameBox.IsFocused);
|
Assert.False(form.NameBox.IsFocused);
|
||||||
Assert.False(form.EmailBox.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);
|
window.KeyPressQwerty(PhysicalKey.N, RawInputModifiers.Alt);
|
||||||
Assert.True(form.NameBox.IsFocused);
|
Assert.True(form.NameBox.IsFocused);
|
||||||
Assert.False(form.EmailBox.IsFocused);
|
Assert.False(form.EmailBox.IsFocused);
|
||||||
@@ -68,6 +80,11 @@ public class FormAccessibilityTests
|
|||||||
|
|
||||||
Assert.False(text1.IsFocused);
|
Assert.False(text1.IsFocused);
|
||||||
Assert.False(text2.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);
|
window.KeyPressQwerty(PhysicalKey.N, RawInputModifiers.Alt);
|
||||||
Assert.True(text1.IsFocused);
|
Assert.True(text1.IsFocused);
|
||||||
Assert.False(text2.IsFocused);
|
Assert.False(text2.IsFocused);
|
||||||
|
|||||||
@@ -10,12 +10,12 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Avalonia.Headless.XUnit" Version="11.2.3" />
|
<PackageReference Include="Avalonia.Headless.XUnit" Version="11.3.7" />
|
||||||
<PackageReference Include="Avalonia.Skia" Version="11.2.3" />
|
<PackageReference Include="Avalonia.Skia" Version="11.3.7" />
|
||||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.0" />
|
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.0" />
|
||||||
<PackageReference Include="coverlet.collector" Version="6.0.4"/>
|
<PackageReference Include="coverlet.collector" Version="6.0.4"/>
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0"/>
|
<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" Version="2.5.3"/>
|
||||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3"/>
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user