-
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 Android arrange coordinate conversion
- Loading branch information
1 parent
1a4f263
commit 59686c4
Showing
8 changed files
with
84 additions
and
15 deletions.
There are no files selected for viewing
Binary file added
BIN
+30.8 KB
...rols/tests/TestCases.Android.Tests/snapshots/android/VerifyTextIsNotMissing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions
20
src/Controls/tests/TestCases.HostApp/Issues/Issue17884.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,20 @@ | ||
<?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.Issue17884"> | ||
<Label Text="CHAT MISSING_WORD" | ||
TextColor="Black" | ||
AutomationId="StubLabel" | ||
x:Name="StubLabel" | ||
FontSize="16" | ||
FontFamily="MontserratBold" | ||
Shadow="{Shadow Offset='0,1', Radius=1, Brush=Aqua}" | ||
MaxLines="1" | ||
LineBreakMode="NoWrap" | ||
VerticalOptions="Center" | ||
HorizontalOptions="Center"> | ||
<Label.GestureRecognizers> | ||
<TapGestureRecognizer Tapped="OnStubLabelTapped"/> | ||
</Label.GestureRecognizers> | ||
</Label> | ||
</ContentPage> |
17 changes: 17 additions & 0 deletions
17
src/Controls/tests/TestCases.HostApp/Issues/Issue17884.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,17 @@ | ||
| ||
namespace Maui.Controls.Sample.Issues | ||
{ | ||
[Issue(IssueTracker.Github, 17884, "[Android] Entire words omitted & letters truncated from Label display", PlatformAffected.Android)] | ||
public partial class Issue17884 : ContentPage | ||
{ | ||
public Issue17884() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void OnStubLabelTapped(object sender, EventArgs e) | ||
{ | ||
++StubLabel.FontSize; | ||
} | ||
} | ||
} |
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
+230 KB
src/Controls/tests/TestCases.HostApp/Resources/Fonts/Montserrat-Bold.otf
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue17884.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,25 @@ | ||
#if ANDROID | ||
using NUnit.Framework; | ||
using UITest.Appium; | ||
using UITest.Core; | ||
|
||
namespace Microsoft.Maui.TestCases.Tests.Issues | ||
{ | ||
public class Issue17884 : _IssuesUITest | ||
{ | ||
public Issue17884(TestDevice device) | ||
: base(device) | ||
{ } | ||
|
||
public override string Issue => "[Android] Entire words omitted & letters truncated from Label display"; | ||
|
||
[Test] | ||
[Category(UITestCategories.Visual)] | ||
public void VerifyTextIsNotMissing() | ||
{ | ||
App.WaitForElement("StubLabel"); | ||
VerifyScreenshot(); | ||
} | ||
} | ||
} | ||
#endif |
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
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