Author: gert
Date: 2006-11-25 09:17:08 -0500 (Sat, 25 Nov 2006)
New Revision: 68458
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/MdiFormTest.cs
Log:
* MdiFormTest.cs: Added test for bug #80036.
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2006-11-25 10:54:38 UTC (rev 68457)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2006-11-25 14:17:08 UTC (rev 68458)
@@ -1,3 +1,7 @@
+2006-11-25 Gert Driesen <[EMAIL PROTECTED]>
+
+ * MdiFormTest.cs: Added test for bug #80036.
+
2006-11-24 Gert Driesen <[EMAIL PROTECTED]>
* MdiFormTest.cs: Added NotWorking test for Form.Text.
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/MdiFormTest.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/MdiFormTest.cs
2006-11-25 10:54:38 UTC (rev 68457)
+++
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/MdiFormTest.cs
2006-11-25 14:17:08 UTC (rev 68458)
@@ -107,9 +107,34 @@
child.WindowState = FormWindowState.Maximized;
child.Show ();
- Assert.AreEqual ("main- [child]", main.Text, "#2");
+ Assert.AreEqual ("main - [child]", main.Text, "#2");
}
+ [Test] // bug 80038
+ [Category ("NotWorking")]
+ public void Text_ChildClose ()
+ {
+ Form main = new Form ();
+ main.ShowInTaskbar = false;
+ main.IsMdiContainer = true;
+ main.Text = "main";
+ main.Show ();
+
+ Assert.AreEqual ("main", main.Text, "#1");
+
+ Form child = new Form ();
+ child.Name = "child";
+ child.MdiParent = main;
+ child.Text = child.Name;
+ child.WindowState = FormWindowState.Maximized;
+ child.Show ();
+
+ Assert.AreEqual ("main - [child]", main.Text, "#2");
+
+ child.Close ();
+ Assert.AreEqual ("main", main.Text, "#3");
+ }
+
// Setting WindowState to Maximized of a form, of which the
handle is
// already created, does not make it ActiveMdiChild
[Test]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches