Bläddra i källkod

* Test/System.Windows.Forms/FocusTest.cs,
Test/System.Windows.Forms/FormTest.cs,
Test/System.Windows.Forms/FormEventTest.cs: Enable tests that
depend on synchronous WM_ACTIVATE messages and are now working with
the latest message fixes

2008-11-11 Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=118455

Andreia Gaita 17 år sedan
förälder
incheckning
7d070dbda2

+ 6 - 0
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog

@@ -1,3 +1,9 @@
+2008-11-11  Andreia Gaita <[email protected]> 
+
+	* FocusTest.cs, FormTest.cs, FormEventTest.cs: Enable tests that depend on
+	  synchronous WM_ACTIVATE messages and are now working with the latest
+	  message fixes
+
 2008-11-07  Jonathan Pobst  <[email protected]>
 
 	* DefaultLayoutTest.cs: Add some tests from Jonathan Anderson

+ 6 - 6
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/FocusTest.cs

@@ -99,9 +99,9 @@ namespace MonoTests.System.Windows.Forms {
 		[Test]
 		public void ControlSelectNextFlatTest ()
 		{
-			if (TestHelper.RunningOnUnix) {
-				Assert.Ignore ("Relies on form.Show() synchronously generating WM_ACTIVATE");
-			}
+//			if (TestHelper.RunningOnUnix) {
+//				Assert.Ignore ("Relies on form.Show() synchronously generating WM_ACTIVATE");
+//			}
 
 			Form form = new Form ();
 			form.ShowInTaskbar = false;
@@ -827,9 +827,9 @@ namespace MonoTests.System.Windows.Forms {
 		[Test]
 		public void ActiveControl ()
 		{
-			if (TestHelper.RunningOnUnix) {
-				Assert.Ignore ("Relies on form.Show() synchronously generating WM_ACTIVATE");
-			}
+//			if (TestHelper.RunningOnUnix) {
+//				Assert.Ignore ("Relies on form.Show() synchronously generating WM_ACTIVATE");
+//			}
 
 			Form form = new Form ();
 			form.ShowInTaskbar = false;

+ 4 - 4
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/FormEventTest.cs

@@ -40,7 +40,7 @@ namespace MonoTests.System.Windows.Forms
 		public void Activated ()
 		{
 			if (TestHelper.RunningOnUnix)
-				Assert.Ignore ("#7 fails");
+				Assert.Ignore ("#3 fails");
 
 			_form = new Form ();
 			EventLogger logger = new EventLogger (_form);
@@ -180,8 +180,8 @@ namespace MonoTests.System.Windows.Forms
 		[Test]
 		public void Deactivate_Dialog ()
 		{
-			if (TestHelper.RunningOnUnix)
-				Assert.Ignore ("#2 sometimes fails");
+//			if (TestHelper.RunningOnUnix)
+//				Assert.Ignore ("#2 sometimes fails");
 
 			_form = new DelayedCloseForm ();
 			EventLogger logger = new EventLogger (_form);
@@ -272,7 +272,7 @@ namespace MonoTests.System.Windows.Forms
 		public void EventOrder_Dialog ()
 		{
 			if (TestHelper.RunningOnUnix)
-				Assert.Ignore ("#A1 fails");
+				Assert.Ignore ("#A3 fails");
 
 			string [] expectedEvents = {
 				"Load",

+ 6 - 6
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/FormTest.cs

@@ -2086,9 +2086,9 @@ namespace MonoTests.System.Windows.Forms
 		[Test]
 		public void OnActivateEventHandlingTest1 ()
 		{
-			if (TestHelper.RunningOnUnix) {
-				Assert.Ignore ("Relies on form.Show() synchronously generating WM_ACTIVATE");
-			}
+//			if (TestHelper.RunningOnUnix) {
+//				Assert.Ignore ("Relies on form.Show() synchronously generating WM_ACTIVATE");
+//			}
 
 			SwallowOnActivated f = new SwallowOnActivated ();
 
@@ -2362,9 +2362,9 @@ namespace MonoTests.System.Windows.Forms
 		[Test] // bug #339641
 		public void ChildFocused ()
 		{
-			if (TestHelper.RunningOnUnix) {
-				Assert.Ignore ("Relies on form.Show() synchronously generating WM_ACTIVATE");
-			}
+//			if (TestHelper.RunningOnUnix) {
+//				Assert.Ignore ("Relies on form.Show() synchronously generating WM_ACTIVATE");
+//			}
 			using (Form f = new TimeBombedForm ()) {
 				TreeView tv = new TreeView ();
 				EventLogger log = new EventLogger (tv);