[Test]
public void OnActivateEventHandlingTest1 ()
{
- if (TestHelper.RunningOnUnix) {
- Assert.Ignore ("Relies on form.Show() synchronously generating WM_ACTIVATE");
- }
+// if (TestHelper.RunningOnUnix) {
+// Assert.Ignore ("Relies on form.Show() synchronously generating WM_ACTIVATE");
+// }
SwallowOnActivated f = new SwallowOnActivated ();
Assert.AreEqual (new Size (292, 266), f.ClientSize, "A4");
}
#endif
+
+ [Test] // bug #438866
+ public void MinMaxSize ()
+ {
+ Form f = new Form ();
+
+ f.MinimumSize = new Size (200, 200);
+ f.MaximumSize = new Size (150, 150);
+
+ Assert.AreEqual (new Size (150, 150), f.MinimumSize, "A1");
+ Assert.AreEqual (new Size (150, 150), f.MaximumSize, "A2");
+
+ f.MinimumSize = new Size (200, 200);
+
+ Assert.AreEqual (new Size (200, 200), f.MinimumSize, "A3");
+ Assert.AreEqual (new Size (200, 200), f.MaximumSize, "A4");
+
+ f.Dispose ();
+ }
+
+ [Test]
+ public void MinSizeIssue ()
+ {
+ Form f = new Form ();
+
+ f.MinimumSize = new Size (100, 100);
+
+ f.Show ();
+
+ Assert.AreEqual (new Size (300, 300), f.Size, "A1");
+
+ f.Dispose ();
+ }
[Test] // Bug #81582
[Category ("NotWorking")]
[Test] // bug #339641
public void ChildFocused ()
{
- if (TestHelper.RunningOnUnix) {
- Assert.Ignore ("Relies on form.Show() synchronously generating WM_ACTIVATE");
- }
+// if (TestHelper.RunningOnUnix) {
+// Assert.Ignore ("Relies on form.Show() synchronously generating WM_ACTIVATE");
+// }
using (Form f = new TimeBombedForm ()) {
TreeView tv = new TreeView ();
EventLogger log = new EventLogger (tv);