-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes wixtoolset/issues#8036.
- Loading branch information
Showing
6 changed files
with
63 additions
and
1 deletion.
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
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
14 changes: 14 additions & 0 deletions
14
src/test/msi/TestData/UIExtensionTests/LocalizedWixUI/LocalizedWixUI.wixproj
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,14 @@ | ||
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
<Project Sdk="WixToolset.Sdk"> | ||
<PropertyGroup> | ||
<UpgradeCode>{4D188568-1CCF-4EEE-BC27-17C3DCC83E58}</UpgradeCode> | ||
<ProductComponentsRef>true</ProductComponentsRef> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="..\..\Templates\Product.wxs" Link="Product.wxs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="WixToolset.UI.wixext" /> | ||
<PackageReference Include="WixToolset.Util.wixext" /> | ||
</ItemGroup> | ||
</Project> |
13 changes: 13 additions & 0 deletions
13
src/test/msi/TestData/UIExtensionTests/LocalizedWixUI/LocalizedWixUI.wxs
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,13 @@ | ||
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
|
||
|
||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> | ||
<Fragment> | ||
<ComponentGroup Id="ProductComponents"> | ||
<Files Include="**" /> | ||
</ComponentGroup> | ||
|
||
<ui:WixUI Id="WixUI_FeatureTree" /> | ||
<util:FailWhenDeferred /> | ||
</Fragment> | ||
</Wix> |
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 @@ | ||
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
|
||
namespace WixToolsetTest.MsiE2E | ||
{ | ||
using Xunit; | ||
using Xunit.Abstractions; | ||
|
||
public class UIExtensionTests : MsiE2ETests | ||
{ | ||
public UIExtensionTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } | ||
|
||
[Fact] | ||
public void CanBuildLocalizedWixUIPackageWithDefaultUSEnglish() | ||
{ | ||
var product = this.CreatePackageInstaller("LocalizedWixUI"); | ||
|
||
var nextButton = product.GetControlText("WelcomeDlg", "Next"); | ||
var cancelButton = product.GetControlText("ExitDialog", "Cancel"); | ||
var updateButton = product.GetControlText("VerifyReadyDlg", "Update"); | ||
|
||
Assert.Equal("&Next", nextButton); | ||
Assert.Equal("Cancel", cancelButton); | ||
Assert.Equal("&Update", updateButton); | ||
} | ||
} | ||
} |
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