Author: gert
Date: 2006-11-24 08:48:51 -0500 (Fri, 24 Nov 2006)
New Revision: 68427
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 NotWorking test for Form.Text.
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-24 13:42:52 UTC (rev 68426)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2006-11-24 13:48:51 UTC (rev 68427)
@@ -1,3 +1,7 @@
+2006-11-24 Gert Driesen <[EMAIL PROTECTED]>
+
+ * MdiFormTest.cs: Added NotWorking test for Form.Text.
+
2006-11-23 Gert Driesen <[EMAIL PROTECTED]>
* FormTest.cs: Added test for bug #80020.
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-24 13:42:52 UTC (rev 68426)
+++
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/MdiFormTest.cs
2006-11-24 13:48:51 UTC (rev 68427)
@@ -86,6 +86,30 @@
main.Dispose ();
}
+ // Setting Text of the MDI containiner before setting
IsMdiContainer to
+ // true causes #2 to fail on Mono
+ [Test]
+ [Category ("NotWorking")]
+ public void Text_MdiContainer ()
+ {
+ Form main = new Form ();
+ main.ShowInTaskbar = false;
+ main.Text = "main";
+ main.IsMdiContainer = true;
+ 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");
+ }
+
// 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