Author: gert
Date: 2007-01-02 12:54:32 -0500 (Tue, 02 Jan 2007)
New Revision: 70376

Modified:
   trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs
Log:
* ControlTest.cs: Added FontHeight test.


Modified: 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2007-01-02 17:53:09 UTC (rev 70375)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2007-01-02 17:54:32 UTC (rev 70376)
@@ -1,5 +1,9 @@
 2007-01-02  Gert Driesen  <[EMAIL PROTECTED]>
 
+       * ControlTest.cs: Added FontHeight test.
+
+2007-01-02  Gert Driesen  <[EMAIL PROTECTED]>
+
        * ListControlTest.cs: Added test for AllowSelection.
        * UpDownTest.cs: MockItem is now nested class.
        * ListBoxTest.cs: Added test for AllowSelection.

Modified: 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs  
    2007-01-02 17:53:09 UTC (rev 70375)
+++ 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs  
    2007-01-02 17:54:32 UTC (rev 70376)
@@ -445,7 +445,15 @@
                }
 
                [Test]
-               [Category ("NotWorking")] // Theme.DefaultFont change must be 
approved first
+               [Category ("NotWorking")]
+               public void FontHeightTest ()
+               {
+                       MockControl c = new MockControl ();
+                       Assert.AreEqual (13, c.font_height);
+               }
+
+               [Test]
+               [Category ("NotWorking")]
                public void FontTest ()
                {
                        Control c = new Control ();
@@ -1273,7 +1281,7 @@
                }
 
                [Test]
-               [Category ("NotWorking")] // Theme.DefaultFont change must be 
approved first
+               [Category ("NotWorking")]
                public void ResetFontTest ()
                {
                        Control c = new Control ();
@@ -1529,6 +1537,14 @@
                {
                        ((Control) sender).Tag = false;
                }
+
+               public class MockControl : Control
+               {
+                       public int font_height {
+                               get { return base.FontHeight; }
+                               set { base.FontHeight = value; }
+                       }
+               }
        }
 
        [TestFixture]

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to