Author: gert
Date: 2007-03-30 08:39:15 -0500 (Fri, 30 Mar 2007)
New Revision: 75196
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/FormHandleTest.cs
Log:
* FormHandleTest.cs: Added test for bug #81272.
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2007-03-30 13:37:27 UTC (rev 75195)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2007-03-30 13:39:15 UTC (rev 75196)
@@ -1,3 +1,7 @@
+2007-03-30 Gert Driesen <[EMAIL PROTECTED]>
+
+ * FormHandleTest.cs: Added test for bug #81272.
+
2007-03-30 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* MdiFormTest.cs: Added test for #79964.
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/FormHandleTest.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/FormHandleTest.cs
2007-03-30 13:37:27 UTC (rev 75195)
+++
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/FormHandleTest.cs
2007-03-30 13:39:15 UTC (rev 75196)
@@ -19,7 +19,6 @@
namespace MonoTests.System.Windows.Forms
{
-
[TestFixture]
public class FormHandleTest
{
@@ -31,6 +30,27 @@
}
[Test]
+ public void TestContextMenu ()
+ {
+ Form c = new Form ();
+ c.ContextMenu = new ContextMenu ();
+ c.ContextMenu.MenuItems.Add (new MenuItem ());
+ c.ContextMenu.MenuItems [0].Text = "New";
+ Assert.IsFalse (c.IsHandleCreated);
+ }
+
+ [Test] // bug #81272
+ [Category ("NotWorking")]
+ public void TestMenu ()
+ {
+ Form c = new Form ();
+ c.Menu = new MainMenu ();
+ c.Menu.MenuItems.Add (new MenuItem ());
+ c.Menu.MenuItems [0].Text = "New";
+ Assert.IsFalse (c.IsHandleCreated);
+ }
+
+ [Test]
public void TestPublicProperties ()
{
// This long, carpal-tunnel syndrome inducing test
shows us that
@@ -444,7 +464,7 @@
c.RightToLeft = RightToLeft.Yes;
Assert.IsFalse (c.IsHandleCreated, "A60");
- // P - R - Form
+ // P - R - Form
o = c.ParentForm;
Assert.IsFalse (c.IsHandleCreated, "FP1");
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches