Skip to content

[macOS] Fix Window Resizing, Presenter Commands Breakage #25728

Closed

Description

@jonpryor

Current behavior 🐛

Context: #25492

While updating unoplatform/uno to use .NET 11 rc.2, many things broke. Most have been fixed, e.g. #25651, but there are some remaining issues. For expediency, we're disabling these currently failing tests for now:

When_Resize:

Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Assert.AreEqual failed. Expected:<Windows.Graphics.SizeInt32>. Actual:<Windows.Graphics.SizeInt32>. 'expected' expression: 'appWindow.Size', 'actual' expression: 'adjustedSize'. Expected appWindow.Size { Width=1034, Height=649 } == adjustedSize { Width=1034, Height=659 }
   at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowAssertAreEqualFailed(Object expected, Object actual, String userMessage) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 665
   at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertAreEqualInterpolatedStringHandler`1.ComputeAssertion(String expectedExpression, String actualExpression) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 52
   at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual[T](T expected, T actual, AssertAreEqualInterpolatedStringHandler`1& message, String expectedExpression, String actualExpression) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 441
   at Uno.UI.RuntimeTests.Tests.Microsoft_UI_Windowing.Given_AppWindow.When_Resize() in D:\a\1\s\src\Uno.UI.RuntimeTests\Microsoft\UI\Windowing\Given_AppWindow.cs:line 46
   at Uno.UI.RuntimeTests.Tests.Microsoft_UI_Windowing.Given_AppWindow.When_Resize() in D:\a\1\s\src\Uno.UI.RuntimeTests\Microsoft\UI\Windowing\Given_AppWindow.cs:line 52
   at Uno.UI.Samples.Tests.UnitTestsControl.<>c__DisplayClass75_2.<<ExecuteTestsForInstance>g__InvokeTestMethod|5>d.MoveNext() in D:\a\1\s\src\SamplesApp\SamplesApp.UnitTests.Shared\Controls\UnitTest\UnitTestsControl.cs:line 1048

When_Resize_Before_Activate:

Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Assert.AreEqual failed. Expected:<Windows.Graphics.SizeInt32>. Actual:<Windows.Graphics.SizeInt32>. 'expected' expression: 'appWindow.Size', 'actual' expression: 'adjustedSize'. Expected appWindow.Size { Width=1024, Height=649 } == adjustedSize { Width=1034, Height=778 }
   at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowAssertAreEqualFailed(Object expected, Object actual, String userMessage) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 665
   at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertAreEqualInterpolatedStringHandler`1.ComputeAssertion(String expectedExpression, String actualExpression) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 52
   at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual[T](T expected, T actual, AssertAreEqualInterpolatedStringHandler`1& message, String expectedExpression, String actualExpression) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 441
   at Uno.UI.RuntimeTests.Tests.Microsoft_UI_Windowing.Given_AppWindow.When_Resize_Before_Activate() in D:\a\1\s\src\Uno.UI.RuntimeTests\Microsoft\UI\Windowing\Given_AppWindow.cs:line 177
   at Uno.UI.RuntimeTests.Tests.Microsoft_UI_Windowing.Given_AppWindow.When_Resize_Before_Activate() in D:\a\1\s\src\Uno.UI.RuntimeTests\Microsoft\UI\Windowing\Given_AppWindow.cs:line 183
   at Uno.UI.Samples.Tests.UnitTestsControl.<>c__DisplayClass75_2.<<ExecuteTestsForInstance>g__InvokeTestMethod|5>d.MoveNext() in D:\a\1\s\src\SamplesApp\SamplesApp.UnitTests.Shared\Controls\UnitTest\UnitTestsControl.cs:line 1048

When_TitleBar_Hidden_On_MacOS_Presenter_Commands_Work:

Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Timed out waiting for condition to be met. When_TitleBar_Hidden_On_MacOS_Presenter_Commands_Work():258
   at Private.Infrastructure.TestServices.WindowHelper.WaitFor(Func`1 condition, Int32 timeoutMS, String message, String callerMemberName, Int32 lineNumber) in D:\a\1\s\src\Uno.UI.RuntimeTests\IntegrationTests\common\TestServices.WindowHelper.cs:line 364
   at Uno.UI.RuntimeTests.Tests.Microsoft_UI_Windowing.Given_AppWindowTitleBar.When_TitleBar_Hidden_On_MacOS_Presenter_Commands_Work() in D:\a\1\s\src\Uno.UI.RuntimeTests\Microsoft\UI\Windowing\Given_AppWindowTitleBar.cs:line 258
   at Uno.UI.RuntimeTests.Tests.Microsoft_UI_Windowing.Given_AppWindowTitleBar.When_TitleBar_Hidden_On_MacOS_Presenter_Commands_Work() in D:\a\1\s\src\Uno.UI.RuntimeTests\Microsoft\UI\Windowing\Given_AppWindowTitleBar.cs:line 267
   at Uno.UI.Samples.Tests.UnitTestsControl.<>c__DisplayClass75_2.<<ExecuteTestsForInstance>g__InvokeTestMethod|5>d.MoveNext() in D:\a\1\s\src\SamplesApp\SamplesApp.UnitTests.Shared\Controls\UnitTest\UnitTestsControl.cs:line 1048

Expected behavior 🎯

The When_Resize, When_Resize_Before_Activate, and When_TitleBar_Hidden_On_MacOS_Presenter_Commands_Work tests are executed and pass on CI.

How to reproduce it (as minimally and precisely as possible) 🔬

No response

Workaround 🛠️

No response

Affected platforms 📱💻🖥️

Desktop (macOS)

Uno.Sdk version (and other relevant versions) 📦

No response

IDE version 🧑‍💻

No response

Anything else we need to know? 💬

No response

Activity

  1. added
    triage/untriaged
    on Oct 27, 2026
  2. added theissue type on Oct 27, 2026
  3. added a commit that references this issue on Oct 27, 2026
    ca84a0c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

triage/untriaged

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions