diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-01-12 16:33:59 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-01-12 17:00:22 -0600 |
| commit | a8e31958d7e1b0ef10ea8035abf1e3bf07170eb8 (patch) | |
| tree | 5a54ef7491ba49f2fd65c2bc97b2f1afd6c0132b /src/test/WixToolsetTest.CoreIntegration/TestData | |
| parent | 9d55d0078155316f3faf799fcf98f123c91617b6 (diff) | |
| download | wix-a8e31958d7e1b0ef10ea8035abf1e3bf07170eb8.tar.gz wix-a8e31958d7e1b0ef10ea8035abf1e3bf07170eb8.tar.bz2 wix-a8e31958d7e1b0ef10ea8035abf1e3bf07170eb8.zip | |
Add failing test for issues exposed by UIExtension.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/TestData')
4 files changed, 73 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/DialogsInInstallUISequence/Package.en-us.wxl b/src/test/WixToolsetTest.CoreIntegration/TestData/DialogsInInstallUISequence/Package.en-us.wxl new file mode 100644 index 00000000..77d46861 --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/DialogsInInstallUISequence/Package.en-us.wxl | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | |||
| 3 | <!-- | ||
| 4 | This file contains the declaration of all the localizable strings. | ||
| 5 | --> | ||
| 6 | <WixLocalization xmlns="http://wixtoolset.org/schemas/v4/wxl" Culture="en-US"> | ||
| 7 | |||
| 8 | <String Id="DowngradeError">A newer version of [ProductName] is already installed.</String> | ||
| 9 | <String Id="FeatureTitle">MsiPackage</String> | ||
| 10 | <String Id="CustomFontName"><!-- NameComment -->Tahoma</String> | ||
| 11 | <String Id="CustomFontSize"><!-- SizeComment -->8</String> | ||
| 12 | |||
| 13 | </WixLocalization> | ||
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/DialogsInInstallUISequence/Package.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/DialogsInInstallUISequence/Package.wxs new file mode 100644 index 00000000..6da3dcbe --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/DialogsInInstallUISequence/Package.wxs | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
| 3 | <Product Id="*" Name="MsiPackage" Codepage="1252" Language="1033" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="047730a5-30fe-4a62-a520-da9381b8226a"> | ||
| 4 | <Package InstallerVersion="200" Compressed="no" InstallScope="perMachine" /> | ||
| 5 | |||
| 6 | <MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" /> | ||
| 7 | <MediaTemplate /> | ||
| 8 | |||
| 9 | <Feature Id="ProductFeature" Title="!(loc.FeatureTitle)"> | ||
| 10 | <ComponentGroupRef Id="ProductComponents" /> | ||
| 11 | </Feature> | ||
| 12 | </Product> | ||
| 13 | |||
| 14 | <Fragment> | ||
| 15 | <Directory Id="TARGETDIR" Name="SourceDir"> | ||
| 16 | <Directory Id="ProgramFilesFolder"> | ||
| 17 | <Directory Id="INSTALLFOLDER" Name="MsiPackage" /> | ||
| 18 | </Directory> | ||
| 19 | </Directory> | ||
| 20 | </Fragment> | ||
| 21 | </Wix> | ||
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/DialogsInInstallUISequence/PackageComponents.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/DialogsInInstallUISequence/PackageComponents.wxs new file mode 100644 index 00000000..724c46ed --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/DialogsInInstallUISequence/PackageComponents.wxs | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
| 3 | <Fragment> | ||
| 4 | <UI Id="CustomDialog"> | ||
| 5 | <!-- TODO: compiler can't handle loc strings for number fields --> | ||
| 6 | <TextStyle Id="CustomFont" FaceName="!(loc.CustomFontName)" Size="!(loc.CustomFontSize)" /> | ||
| 7 | <Dialog Id="FirstDialog" Width="100" Height="100"> | ||
| 8 | <Control Id="Title" Type="Text" X="0" Y="0" Width="90" Height="13" TabSkip="no" Text="FirstDialogTitle" /> | ||
| 9 | </Dialog> | ||
| 10 | <Dialog Id="SecondDialog" Width="100" Height="100"> | ||
| 11 | <Control Id="Title" Type="Text" X="0" Y="0" Width="90" Height="13" TabSkip="no" Text="SecondDialogTitle" /> | ||
| 12 | </Dialog> | ||
| 13 | |||
| 14 | <InstallUISequence> | ||
| 15 | <!-- TODO: overriding this currently causes a duplicate symbol error --> | ||
| 16 | <Show Dialog="SecondDialog" Before="FirstDialog" Overridable="yes">NOT Installed</Show> | ||
| 17 | </InstallUISequence> | ||
| 18 | </UI> | ||
| 19 | </Fragment> | ||
| 20 | <Fragment> | ||
| 21 | <UI Id="CustomUI"> | ||
| 22 | <DialogRef Id="FirstDialog" /> | ||
| 23 | <DialogRef Id="SecondDialog" /> | ||
| 24 | |||
| 25 | <Publish Dialog="FirstDialog" Control="Next" Event="NewDialog" Value="SecondDialog">Installed AND PATCH</Publish> | ||
| 26 | |||
| 27 | <InstallUISequence> | ||
| 28 | <Show Dialog="FirstDialog" Before="SecondDialog">Installed AND PATCH</Show> | ||
| 29 | <Show Dialog="SecondDialog" Before="ExecuteAction">NOT Installed</Show> | ||
| 30 | </InstallUISequence> | ||
| 31 | </UI> | ||
| 32 | <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> | ||
| 33 | <Component> | ||
| 34 | <File Source="test.txt" /> | ||
| 35 | </Component> | ||
| 36 | </ComponentGroup> | ||
| 37 | </Fragment> | ||
| 38 | </Wix> | ||
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/DialogsInInstallUISequence/data/test.txt b/src/test/WixToolsetTest.CoreIntegration/TestData/DialogsInInstallUISequence/data/test.txt new file mode 100644 index 00000000..cd0db0e1 --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/DialogsInInstallUISequence/data/test.txt | |||
| @@ -0,0 +1 @@ | |||
| This is test.txt. \ No newline at end of file | |||
