fix(image): clipping images on WASM was not working #18787
Merged
Azure Pipelines / Uno.UI - CI
succeeded
Nov 14, 2024 in 1h 7m 7s
Build #5.6.0-PullRequest-18787-147232-18787.477 had test failures
Details
- Failed: 875 (0.72%)
- Passed: 110,444 (90.91%)
- Other: 10,163 (8.37%)
- Total: 121,482
Annotations
Check failure on line 1 in When_HotReloadScenario()
azure-pipelines / Uno.UI - CI
When_HotReloadScenario()
Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Assert.Fail failed. Tests failed:
Test Check_Can_Change_Page1_Navigate_And_Return() failed with Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Assert.AreEqual failed. Expected:<Second page>. Actual:<Second page >.
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowAssertFailed(String assertionName, String message) in /_/src/TestFramework/TestFramework/Assertions/Assert.cs:line 60
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual[T](T expected, T actual, IEqualityComparer`1 comparer, String message, Object[] parameters) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 201
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual[T](T expected, T actual) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 34
at Uno.UI.RuntimeTests.Tests.HotReload.Frame.UIElementExtensions.<>c__DisplayClass0_0.<ValidateTextOnChildTextBlock>b__0(TextBlock textBlock)
at Uno.UI.RuntimeTests.Tests.HotReload.Frame.UIElementExtensions.ValidateChildElement[TElement](UIElement element, Func`2 validation, Int32 index)
at Uno.UI.RuntimeTests.Tests.HotReload.Frame.HRApp.Tests.Given_Frame.<>c__DisplayClass10_0.<<Check_Can_Change_Page1_Navigate_And_Return>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Uno.UI.RuntimeTests.Tests.HotReload.HotReloadHelper.UpdateServerFileAndRevert[T](String originalText, String replacementText, Func`1 callback, CancellationToken ct)
at Uno.UI.RuntimeTests.Tests.HotReload.HotReloadHelper.UpdateServerFileAndRevert[T](String originalText, String replacementText, Func`1 callback, CancellationToken ct)
at Uno.UI.RuntimeTests.Tests.HotReload.Frame.HRApp.Tests.Given_Frame.Check_Can_Change_Page1_Navigate_And_Return()
at Uno.UI.RuntimeTests.UnitTestsControl.<>c__DisplayClass67_0.<<ExecuteTestsForInstance>g__WaitResult|2>d.MoveNext()
--- End of stack trace from previous location ---
at Uno.UI.RuntimeTests.UnitTestsControl.<>c__DisplayClass67_3.<<ExecuteTestsForInstance>g__DoInvoke|9>d.MoveNext()
--- End of stack trace from previous location ---
at Uno.UI.RuntimeTests.UnitTestsControl.<>c__DisplayClass69_0.<<ExecuteOnDispatcher>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Uno.UI.RuntimeTests.UnitTestsControl.ExecuteOnDispatcher(Func`1 asyncAction, CancellationToken ct)
at Uno.UI.RuntimeTests.UnitTestsControl.<>c__DisplayClass67_2.<<ExecuteTestsForInstance>g__InvokeTestMethod|5>d.MoveNext()
Test Check_Can_Change_Page2_Before_Navigation() failed with Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Assert.AreEqual failed. Expected:<Second page (changed)>. Actual:<Second page (changed) >.
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowAssertFailed(String assertionName, String message) in /_/src/TestFramework/TestFramework/Assertions/Assert.cs:line 60
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual[T](T expected, T actual, IEqualityComparer`1 comparer, String message, Object[] parameters) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 201
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual[T](T expected, T actual) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 34
at Uno.UI.RuntimeTests.Tests.HotReload.Frame.UIElementExtensions.<>c__DisplayClass0_0.<ValidateTextOnChildTextBlock>b__0(TextBlock textBlock)
at Uno.UI.RuntimeTests.Tests.HotReload.Frame.UIElementExtensions.ValidateChildElement[TElement](UIElement element, Func`2 validation, Int32 index)
at Uno.UI.RuntimeTests.Tests.HotReload.Frame.HRApp.Tests.Given_Frame.<>c__DisplayClass11_0.<<Check_Can_Change_Page2_Before_Navigation>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Uno.UI.RuntimeTests.Tests.HotReload.HotReloadHelper.UpdateServerFileAndRevert[T](String originalText, String repl
azure-pipelines / Uno.UI - CI
SamplesApp.UITests.Windows_ApplicationModel_Resources.ResourceLoader_Simple.ValidateResourceLoader_Simple
System.Exception : Error while performing WaitForElement(All().Marked("sampleControl"), "Timed out waiting for element...", 00:00:05, null, null)
----> System.TimeoutException : Timed out waiting for element...
TearDown : System.Exception : Error while performing Invoke("GetScreenshot", "0")
----> System.Net.Http.HttpRequestException : An error occurred while sending the request.
----> System.Net.Http.HttpIOException : The response ended prematurely. (ResponseEnded)
Raw output
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
at Xamarin.UITest.Android.AndroidApp.WaitForElement(Func`2 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
at Uno.UITest.Xamarin.XamarinApp.WaitForElement(Func`2 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
at SamplesApp.UITests.SampleControlUITestBase.Run(String metadataName, Boolean waitForSampleControl, Boolean skipInitialScreenshot, Int32 sampleLoadTimeout) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 472
at SamplesApp.UITests.Windows_ApplicationModel_Resources.ResourceLoader_Simple.ValidateResourceLoader_Simple() in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_ApplicationModel_Resources/ResourceLoader_Simple.cs:line 20
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--TimeoutException
at Xamarin.UITest.Shared.WaitForHelper.WaitForAny[T](Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
at Xamarin.UITest.Android.AndroidApp.<>c__DisplayClass80_0.<WaitForElement>b__0()
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
--TearDown
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
at Xamarin.UITest.Android.AndroidApp.Invoke(String methodName, Object argument)
at Uno.UITest.Xamarin.XamarinApp.Invoke(String methodName, Object argument)
at Uno.UITest.Helpers.BackdoorInvocationHelper.InvokeGeneric(IApp app, String methodName, Object arg1)
at SamplesApp.UITests.Extensions.AppExtensions.GetInAppScreenshot(IApp app) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Extensions/AppExtensions.cs:line 61
at SamplesApp.UITests.SampleControlUITestBase.GetNativeScreenshot(String title) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 347
at SamplesApp.UITests.SampleControlUITestBase.TakeScreenshot(String stepName, ScreenshotOptions options) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 307
at SamplesApp.UITests.SampleControlUITestBase.TakeScreenshot(String stepName, Nullable`1 ignoreInSnapshotCompare) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 288
at SamplesApp.UITests.SampleControlUITestBase.AfterEachTest() in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 234
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--HttpRequestException
at Xamarin.UITest.Shared.Http.HttpClient.SendData(String endpoint, String method, HttpContent content, ExceptionPolicy exceptionPolicy, Nullable`1 timeOut)
at Xamarin.UITest.Shared.Http.HttpClient.Post(String endpoint, Object arguments, ExceptionPolicy exceptionPolicy, Nullable`1 timeOut)
at Xamarin.UITest.Android.AndroidGestures.Invoke(String methodName, Object[] arguments)
at Xamarin.UITest.Android.AndroidApp.<>c__DisplayClass88_0.<Invoke>b__0()
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
--HttpIOException
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
azure-pipelines / Uno.UI - CI
SamplesApp.UITests.Windows_UI_Core.SystemNavigationManagerTests.When_Hardware_Back_Button_Pressed
System.Exception : Error while performing WaitForElement(All().Marked("sampleControl"), "Timed out waiting for element...", 00:00:05, null, null)
----> System.TimeoutException : Timed out waiting for element...
TearDown : System.Exception : Error while performing Invoke("GetScreenshot", "0")
----> System.Net.Http.HttpRequestException : An error occurred while sending the request.
----> System.Net.Http.HttpIOException : The response ended prematurely. (ResponseEnded)
Raw output
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
at Xamarin.UITest.Android.AndroidApp.WaitForElement(Func`2 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
at Uno.UITest.Xamarin.XamarinApp.WaitForElement(Func`2 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
at SamplesApp.UITests.SampleControlUITestBase.Run(String metadataName, Boolean waitForSampleControl, Boolean skipInitialScreenshot, Int32 sampleLoadTimeout) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 472
at SamplesApp.UITests.Windows_UI_Core.SystemNavigationManagerTests.When_Hardware_Back_Button_Pressed() in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_UI_Core/SystemNavigationManagerTests.cs:line 17
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--TimeoutException
at Xamarin.UITest.Shared.WaitForHelper.WaitForAny[T](Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
at Xamarin.UITest.Android.AndroidApp.<>c__DisplayClass80_0.<WaitForElement>b__0()
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
--TearDown
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
at Xamarin.UITest.Android.AndroidApp.Invoke(String methodName, Object argument)
at Uno.UITest.Xamarin.XamarinApp.Invoke(String methodName, Object argument)
at Uno.UITest.Helpers.BackdoorInvocationHelper.InvokeGeneric(IApp app, String methodName, Object arg1)
at SamplesApp.UITests.Extensions.AppExtensions.GetInAppScreenshot(IApp app) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Extensions/AppExtensions.cs:line 61
at SamplesApp.UITests.SampleControlUITestBase.GetNativeScreenshot(String title) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 347
at SamplesApp.UITests.SampleControlUITestBase.TakeScreenshot(String stepName, ScreenshotOptions options) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 307
at SamplesApp.UITests.SampleControlUITestBase.TakeScreenshot(String stepName, Nullable`1 ignoreInSnapshotCompare) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 288
at SamplesApp.UITests.SampleControlUITestBase.AfterEachTest() in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 234
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--HttpRequestException
at Xamarin.UITest.Shared.Http.HttpClient.SendData(String endpoint, String method, HttpContent content, ExceptionPolicy exceptionPolicy, Nullable`1 timeOut)
at Xamarin.UITest.Shared.Http.HttpClient.Post(String endpoint, Object arguments, ExceptionPolicy exceptionPolicy, Nullable`1 timeOut)
at Xamarin.UITest.Android.AndroidGestures.Invoke(String methodName, Object[] arguments)
at Xamarin.UITest.Android.AndroidApp.<>c__DisplayClass88_0.<Invoke>b__0()
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
--HttpIOException
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
Check failure on line 1 in SamplesApp.UITests.Windows_UI_Xaml_Input.DoubleTapped_Tests.When_Basic
azure-pipelines / Uno.UI - CI
SamplesApp.UITests.Windows_UI_Xaml_Input.DoubleTapped_Tests.When_Basic
System.Exception : Error while performing WaitForElement(All().Marked("sampleControl"), "Timed out waiting for element...", 00:00:05, null, null)
----> System.TimeoutException : Timed out waiting for element...
TearDown : System.Exception : Error while performing Invoke("GetScreenshot", "0")
----> System.Net.Http.HttpRequestException : An error occurred while sending the request.
----> System.Net.Http.HttpIOException : The response ended prematurely. (ResponseEnded)
Raw output
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
at Xamarin.UITest.Android.AndroidApp.WaitForElement(Func`2 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
at Uno.UITest.Xamarin.XamarinApp.WaitForElement(Func`2 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
at SamplesApp.UITests.SampleControlUITestBase.Run(String metadataName, Boolean waitForSampleControl, Boolean skipInitialScreenshot, Int32 sampleLoadTimeout) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 472
at SamplesApp.UITests.Windows_UI_Xaml_Input.DoubleTapped_Tests.When_Basic() in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_UI_Xaml_Input/DoubleTappedTapped_Tests.cs:line 26
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--TimeoutException
at Xamarin.UITest.Shared.WaitForHelper.WaitForAny[T](Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
at Xamarin.UITest.Android.AndroidApp.<>c__DisplayClass80_0.<WaitForElement>b__0()
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
--TearDown
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
at SamplesApp.UITests.Extensions.AppExtensions.GetInAppScreenshot(IApp app) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/Extensions/AppExtensions.cs:line 61
at SamplesApp.UITests.SampleControlUITestBase.TakeScreenshot(String stepName, ScreenshotOptions options) in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 307
at SamplesApp.UITests.SampleControlUITestBase.AfterEachTest() in /agent/_work/1/s/src/SamplesApp/SamplesApp.UITests/SampleControlUITestBase.cs:line 234
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--HttpRequestException
at Xamarin.UITest.Shared.Http.HttpClient.SendData(String endpoint, String method, HttpContent content, ExceptionPolicy exceptionPolicy, Nullable`1 timeOut)
at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
--HttpIOException
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
Loading