diff options
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs')
-rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs index 9462c4ff..bb44395f 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |||
@@ -255,6 +255,54 @@ namespace WixToolsetTest.CoreIntegration | |||
255 | } | 255 | } |
256 | 256 | ||
257 | [Fact] | 257 | [Fact] |
258 | public void PopulatesControlTables() | ||
259 | { | ||
260 | var folder = TestData.Get(@"TestData"); | ||
261 | |||
262 | using (var fs = new DisposableFileSystem()) | ||
263 | { | ||
264 | var baseFolder = fs.GetFolder(); | ||
265 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
266 | var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); | ||
267 | |||
268 | var result = WixRunner.Execute(new[] | ||
269 | { | ||
270 | "build", | ||
271 | Path.Combine(folder, "DialogsInInstallUISequence", "PackageComponents.wxs"), | ||
272 | Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"), | ||
273 | Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), | ||
274 | "-bindpath", Path.Combine(folder, "SingleFile", "data"), | ||
275 | "-intermediateFolder", intermediateFolder, | ||
276 | "-o", msiPath, | ||
277 | }); | ||
278 | |||
279 | result.AssertSuccess(); | ||
280 | |||
281 | Assert.True(File.Exists(msiPath)); | ||
282 | |||
283 | var results = Query.QueryDatabase(msiPath, new[] { "CheckBox", "Control", "InstallUISequence" }); | ||
284 | Assert.Equal(new[] | ||
285 | { | ||
286 | "CheckBox:WIXUI_EXITDIALOGOPTIONALCHECKBOX\t1", | ||
287 | "Control:FirstDialog\tHeader\tText\t0\t13\t90\t13\t3\tFirstDialogHeader\tTitle\t\t", | ||
288 | "Control:FirstDialog\tTitle\tText\t0\t0\t90\t13\t3\tFirstDialogTitle\tHeader\t\t", | ||
289 | "Control:SecondDialog\tOptionalCheckBox\tCheckBox\t0\t13\t100\t40\t2\t[WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT]\tTitle\t\t", | ||
290 | "Control:SecondDialog\tTitle\tText\t0\t0\t90\t13\t3\tSecondDialogTitle\tOptionalCheckBox\t\t", | ||
291 | "InstallUISequence:CostFinalize\t\t1000", | ||
292 | "InstallUISequence:CostInitialize\t\t800", | ||
293 | "InstallUISequence:ExecuteAction\t\t1300", | ||
294 | "InstallUISequence:FileCost\t\t900", | ||
295 | "InstallUISequence:FindRelatedProducts\t\t25", | ||
296 | "InstallUISequence:FirstDialog\tInstalled AND PATCH\t1298", | ||
297 | "InstallUISequence:LaunchConditions\t\t100", | ||
298 | "InstallUISequence:MigrateFeatureStates\t\t1200", | ||
299 | "InstallUISequence:SecondDialog\tNOT Installed\t1299", | ||
300 | "InstallUISequence:ValidateProductID\t\t700", | ||
301 | }, results); | ||
302 | } | ||
303 | } | ||
304 | |||
305 | [Fact] | ||
258 | public void PopulatesCreateFolderTableForNullKeypathComponents() | 306 | public void PopulatesCreateFolderTableForNullKeypathComponents() |
259 | { | 307 | { |
260 | var folder = TestData.Get(@"TestData\Components"); | 308 | var folder = TestData.Get(@"TestData\Components"); |
@@ -982,6 +1030,40 @@ namespace WixToolsetTest.CoreIntegration | |||
982 | } | 1030 | } |
983 | } | 1031 | } |
984 | 1032 | ||
1033 | [Fact(Skip = "Test demonstrates failure")] | ||
1034 | public void PopulatesTextStyleTableWhenSizeIsLocalized() | ||
1035 | { | ||
1036 | var folder = TestData.Get(@"TestData"); | ||
1037 | |||
1038 | using (var fs = new DisposableFileSystem()) | ||
1039 | { | ||
1040 | var baseFolder = fs.GetFolder(); | ||
1041 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
1042 | var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); | ||
1043 | |||
1044 | var result = WixRunner.Execute(new[] | ||
1045 | { | ||
1046 | "build", | ||
1047 | Path.Combine(folder, "TextStyle", "SizeLocalized.wxs"), | ||
1048 | Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"), | ||
1049 | Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), | ||
1050 | "-loc", Path.Combine(folder, "TextStyle", "SizeLocalized.en-us.wxl"), | ||
1051 | "-bindpath", Path.Combine(folder, "SingleFile", "data"), | ||
1052 | "-intermediateFolder", intermediateFolder, | ||
1053 | "-o", msiPath, | ||
1054 | }); | ||
1055 | |||
1056 | result.AssertSuccess(); | ||
1057 | |||
1058 | Assert.True(File.Exists(msiPath)); | ||
1059 | var results = Query.QueryDatabase(msiPath, new[] { "TextStyle" }); | ||
1060 | Assert.Equal(new[] | ||
1061 | { | ||
1062 | "TextStyle:CustomFont\tTahoma\t8\t\t", | ||
1063 | }, results); | ||
1064 | } | ||
1065 | } | ||
1066 | |||
985 | [Fact] | 1067 | [Fact] |
986 | public void PopulatesTypeLibTableWhenLanguageIsZero() | 1068 | public void PopulatesTypeLibTableWhenLanguageIsZero() |
987 | { | 1069 | { |