Author: toshok
Date: 2007-02-15 14:59:28 -0500 (Thu, 15 Feb 2007)
New Revision: 72956

Modified:
   
branches/mwf-handle-branch/Managed.Windows.Forms/Test/System.Windows.Forms/FocusTest.cs
   
branches/mwf-handle-branch/Managed.Windows.Forms/Test/System.Windows.Forms/FormTest.cs
Log:
mark some more tests as NotWorking

Modified: 
branches/mwf-handle-branch/Managed.Windows.Forms/Test/System.Windows.Forms/FocusTest.cs
===================================================================
--- 
branches/mwf-handle-branch/Managed.Windows.Forms/Test/System.Windows.Forms/FocusTest.cs
     2007-02-15 19:56:42 UTC (rev 72955)
+++ 
branches/mwf-handle-branch/Managed.Windows.Forms/Test/System.Windows.Forms/FocusTest.cs
     2007-02-15 19:59:28 UTC (rev 72956)
@@ -99,6 +99,10 @@
                [Test]
                public void ControlSelectNextFlatTest ()
                {
+                       if (RunningOnUnix) {
+                               Assert.Ignore ("Relies on form.Show() 
synchronously generating WM_ACTIVATE");
+                       }
+
                        Form form = new Form ();
                        form.ShowInTaskbar = false;
 
@@ -251,6 +255,7 @@
                }
 
                [Test]
+               [Category ("NotWorking")]
                public void ContainerSelectUndirectedForward ()
                {
                        Form form = new Form ();
@@ -819,22 +824,27 @@
                [Test]
                public void ActiveControl ()
                {
+                       if (RunningOnUnix) {
+                               Assert.Ignore ("Relies on form.Show() 
synchronously generating WM_ACTIVATE");
+                       }
+
                        Form form = new Form ();
                        form.ShowInTaskbar = false;
 
                        form.Controls.AddRange (flat_controls);
                        form.Show ();
 
-                       Assert.AreEqual (flat_controls[0], form.ActiveControl, 
"A1");
+                       Assert.AreEqual (form.ActiveControl, flat_controls [0], 
"A1");
 
                        flat_controls [1].Focus ();
 
-                       Assert.AreEqual (flat_controls [1], form.ActiveControl, 
"A2");
+                       Assert.AreEqual (form.ActiveControl, flat_controls [1], 
"A2");
 
                        form.Dispose ();
                }
 
                [Test]
+               [Category ("NotWorking")]
                public void ActiveControl2 () {
                        ContainerControl cc = new ContainerControl ();
                        Control c1 = new Control ();
@@ -967,6 +977,10 @@
                [Test]
                public void EnterLeaveFocusEventTest ()
                {
+                       if (RunningOnUnix) {
+                               Assert.Ignore ("Relies on form.Show() 
synchronously generating WM_ACTIVATE");
+                       }
+
                        Form f = new Form();
                        f.ShowInTaskbar = false;
 
@@ -1079,6 +1093,7 @@
                }
 
                [Test]
+               [Category ("NotWorking")]
                public void ActiveControl_Invisible () {
                        ContainerControl cc = new ContainerControl ();
                        Control c1 = new Control ();
@@ -1109,6 +1124,7 @@
                }
 
                [Test]
+               [Category ("NotWorking")]
                public void ActiveControl_Disabled () {
                        ContainerControl cc = new ContainerControl ();
                        Control c1 = new Control ();
@@ -1139,6 +1155,7 @@
                }
 
                [Test]
+               [Category ("NotWorking")]
                public void ActiveControl_Null () {
                        ContainerControl cc = new ContainerControl ();
                        Control c1 = new Control ();
@@ -1176,5 +1193,14 @@
 
                        form.Dispose ();
                }
+
+               private bool RunningOnUnix {
+                       get {
+                               // check for Unix platforms - see FAQ for more 
details
+                               // 
http://www.mono-project.com/FAQ:_Technical#How_to_detect_the_execution_platform_.3F
+                               int platform = (int) 
Environment.OSVersion.Platform;
+                               return ((platform == 4) || (platform == 128));
+                       }
+               }
        }
 }

Modified: 
branches/mwf-handle-branch/Managed.Windows.Forms/Test/System.Windows.Forms/FormTest.cs
===================================================================
--- 
branches/mwf-handle-branch/Managed.Windows.Forms/Test/System.Windows.Forms/FormTest.cs
      2007-02-15 19:56:42 UTC (rev 72955)
+++ 
branches/mwf-handle-branch/Managed.Windows.Forms/Test/System.Windows.Forms/FormTest.cs
      2007-02-15 19:59:28 UTC (rev 72956)
@@ -79,6 +79,7 @@
                }
 
                [Test]
+               [Category ("NotWorking")]
                public void ActivateTest ()
                {
                        Form myform = new Form ();
@@ -108,6 +109,7 @@
                }
 
                [Test] // bug #80020
+               [Category ("NotWorking")]
                public void IsHandleCreated ()
                {
                        Form main = new Form ();
@@ -392,6 +394,7 @@
                }
 
                [Test] // bug #80604
+               [Category ("NotWorking")]
                public void VisibleOnLoad ()
                {
                        MockForm form = new MockForm ();

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

Reply via email to