* TestHelper.cs: move RunningOnUnix here.
* FocusTest.cs: use TestHelper.RunningOnUnix.
* FormTest.cs: use TestHelper.RunningOnUnix.
svn path=/trunk/mcs/; revision=76134
+2007-04-23 Chris Toshok <toshok@ximian.com>
+
+ * TestHelper.cs: move RunningOnUnix here.
+
+ * FocusTest.cs: use TestHelper.RunningOnUnix.
+
+ * FormTest.cs: use TestHelper.RunningOnUnix.
+
2007-04-23 Jonathan Pobst <monkey@jpobst.com>
* TableLayoutTest.cs: Add a bunch of tests I thought I had lost
[Test]
public void ControlSelectNextFlatTest ()
{
- if (RunningOnUnix) {
+ if (TestHelper.RunningOnUnix) {
Assert.Ignore ("Relies on form.Show() synchronously generating WM_ACTIVATE");
}
[Test]
public void ActiveControl ()
{
- if (RunningOnUnix) {
+ if (TestHelper.RunningOnUnix) {
Assert.Ignore ("Relies on form.Show() synchronously generating WM_ACTIVATE");
}
[Test]
public void EnterLeaveFocusEventTest ()
{
- if (RunningOnUnix) {
+ if (TestHelper.RunningOnUnix) {
Assert.Ignore ("Relies on form.Show() synchronously generating WM_ACTIVATE");
}
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));
- }
- }
}
}
[Test]
public void OnActivateEventHandlingTest1 ()
{
- if (RunningOnUnix) {
+ if (TestHelper.RunningOnUnix) {
Assert.Ignore ("Relies on form.Show() synchronously generating WM_ACTIVATE");
}
Assert.AreEqual (null, f.Owner, "H1");
}
- 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));
- }
- }
-
private class MockForm : Form
{
public bool CloseOnLoad {
CreateParams cp = GetCreateParams (control);
return ((cp.ExStyle & (int) style) == (int) style);
}
+
+ public static 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));
+ }
+ }
}
[Flags]