-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Frame offsets inner content view by 1pt (#24582)
* fix added * UI test added * test case platform affected changes added * test case changes added * UI test changes added * script file method name updated * ui test changes added * script file platform condition added * output snapshots images added * ui test file changes added * Fix Shell title update issue * images added for all platform * changes reverted * fix added * UI test added * test case platform affected changes added * test case changes added * UI test changes added * script file method name updated * ui test changes added * script file platform condition added * output snapshots images added * ui test file changes added * Fix Shell title update issue * images added for all platform * changes reverted * image added * image added
- Loading branch information
1 parent
68524c8
commit 3ef2d92
Showing
8 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+114 KB
...ntrols/tests/TestCases.Android.Tests/snapshots/android/ValidateFrameOffsets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
src/Controls/tests/TestCases.HostApp/Issues/Issue23333.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="Maui.Controls.Sample.Issues.Issue23333"> | ||
|
||
<VerticalStackLayout> | ||
<Label Text="Frame With Image" AutomationId="FrameWithImage" /> | ||
<Frame CornerRadius="100" | ||
Margin="10" | ||
VerticalOptions="Start" | ||
HorizontalOptions="Start" | ||
HeightRequest="200" | ||
WidthRequest="200" | ||
IsClippedToBounds="True" | ||
BackgroundColor="Red"> | ||
<Frame.Content> | ||
<Image Source="dotnet_bot.png" | ||
Background="Tan" /> | ||
</Frame.Content> | ||
</Frame> | ||
</VerticalStackLayout> | ||
|
||
</ContentPage> |
15 changes: 15 additions & 0 deletions
15
src/Controls/tests/TestCases.HostApp/Issues/Issue23333.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Microsoft.Maui.Controls; | ||
using Microsoft.Maui.Controls.Xaml; | ||
|
||
namespace Maui.Controls.Sample.Issues | ||
{ | ||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
[Issue(IssueTracker.Github, 23333, "Frame offsets inner content view by 1pt", PlatformAffected.Android | PlatformAffected.iOS | PlatformAffected.macOS)] | ||
public partial class Issue23333 : ContentPage | ||
{ | ||
public Issue23333() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue23333.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#if !MACCATALYST | ||
using NUnit.Framework; | ||
using NUnit.Framework.Legacy; | ||
using UITest.Appium; | ||
using UITest.Core; | ||
|
||
namespace Microsoft.Maui.TestCases.Tests.Issues | ||
{ | ||
public class Issue23333 : _IssuesUITest | ||
{ | ||
public override string Issue => "Frame offsets inner content view by 1pt"; | ||
|
||
public Issue23333(TestDevice device) : base(device) | ||
{ | ||
} | ||
|
||
[Test] | ||
[Category(UITestCategories.Frame)] | ||
public void ValidateFrameOffsets() | ||
{ | ||
App.WaitForElement("FrameWithImage"); | ||
VerifyScreenshot(); | ||
} | ||
} | ||
} | ||
#endif |
Binary file added
BIN
+30.9 KB
...Controls/tests/TestCases.WinUI.Tests/snapshots/windows/ValidateFrameOffsets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3 Bytes
(100%)
src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/Issue17366Test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+121 KB
src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ValidateFrameOffsets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.