Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if TEST_FAILS_ON_IOS //Application crashes when ToolbarItem is created with invalid IconImageSource name.Issue Link: https://github.com/dotnet/maui/issues/27095
using NUnit.Framework;
using NUnit.Framework;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens on other platforms? Based on the test, guess not throwing an exception, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An exception is not thrown on other platforms when an invalid IconImageSource name is provided @jsuarezruiz

using UITest.Appium;
using UITest.Core;

Expand All @@ -20,5 +19,4 @@ public void TestItDoesntCrashWithWrongIconName()
App.WaitForElement("TestLabel");
}
}
}
#endif
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public partial class FileImageSourceService
{
Logger?.LogWarning(ex, "Unable to load image file '{File}'.", imageSource.File);

throw;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattleibow I understand that throwing the exception at this point was a expected behavior, right?

return FromResult(null);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on https://github.com/dotnet/maui/pull/27175/files#r1939317042
This align the behavior between platforms. LGTM.

}
}

Expand Down