[jit] Enable partial generic sharing when not using AOT as an experiment.
[mono.git] / mcs / class / Managed.Windows.Forms / Test / System.Windows.Forms / GenerateControlStyleTest.cs
index 9e030762a49c7167c070988a5cdeb4a34f05a175..58dd1b056cbad5559a02f72bea757c90c2ddc904 100644 (file)
@@ -102,7 +102,10 @@ namespace TestApp {
                                TestStyles(file, new ProgressBar(), "ProgressBar");
                                TestStyles(file, new ScrollableControl(), "ScrollableControl");
                                TestStyles(file, new ContainerControl(), "ContainerControl");
-                               TestStyles(file, new Form(), "Form");
+                               Form f = new Form ();
+                               f.ShowInTaskbar = false;
+                               TestStyles(file, f, "Form");
+                               f.Dispose ();
                                TestStyles(file, new PropertyGrid(), "PropertyGrid");
                                TestStyles(file, new DomainUpDown(), "DomainUpDown");
                                TestStyles(file, new NumericUpDown(), "NumericUpDown");