Skip to content

Commit

Permalink
test: add a ui test for x:uid
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezgerges committed Nov 21, 2024
1 parent 38d47af commit bb52d27
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SamplesApp/SamplesApp.Shared/Strings/en/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,7 @@
<data name="PublisherDisplayName" xml:space="preserve">
<value>Uno Platform</value>
</data>
<data name="XuidGeneratorErrorUid.PrimaryButtonText" xml:space="preserve">
<value>SomeValue</value>
</data>
</root>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<ContentDialog
x:Class="UITests.Shared.Resources.XuidGeneratorError"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Uid="XuidGeneratorErrorUid">
<Grid>
<TextBlock Text="This is a crash test for the xaml generator. Nothing to see here." />
</Grid>
</ContentDialog>
10 changes: 10 additions & 0 deletions src/SamplesApp/UITests.Shared/Resources/XuidGeneratorError.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using Microsoft.UI.Xaml.Controls;

namespace UITests.Shared.Resources;
public sealed partial class XuidGeneratorError : ContentDialog
{
public XuidGeneratorError()
{
this.InitializeComponent();
}
}
7 changes: 7 additions & 0 deletions src/SamplesApp/UITests.Shared/UITests.Shared.projitems
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="$(MSBuildThisFileDirectory)Resources\XuidGeneratorError.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="$(MSBuildThisFileDirectory)Toolkit\ElevatedView_BorderThickness.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
Expand Down Expand Up @@ -5855,6 +5859,9 @@
<Compile Include="$(MSBuildThisFileDirectory)Playground\Playground.xaml.cs">
<DependentUpon>Playground.xaml</DependentUpon>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Resources\XuidGeneratorError.xaml.cs">
<DependentUpon>XuidGeneratorError.xaml</DependentUpon>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)Toolkit\ElevatedViewTests.xaml.cs">
<DependentUpon>ElevatedViewTests.xaml</DependentUpon>
</Compile>
Expand Down

0 comments on commit bb52d27

Please sign in to comment.