mailr21182 - in /branches/relax_disp: gui/components/base_list.py test_suite/gui_tests/model_free.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on October 18, 2013 - 18:32:
Author: bugman
Date: Fri Oct 18 18:32:37 2013
New Revision: 21182

URL: http://svn.gna.org/viewcvs/relax?rev=21182&view=rev
Log:
Fixes to allow the Mf.test_mf_auto_analysis system test to pass on Mac OS X.

The simulated event.GetPosition() method in the Fake_right_click class the 
file
test_suite/gui_tests/model_free.py must return a wx.Point object and not a 
Python tuple.  The
gui.components.base_list.Base_list.on_right_click() method has also been 
modified with a wx.Yield()
call to allos the test to pass.


Modified:
    branches/relax_disp/gui/components/base_list.py
    branches/relax_disp/test_suite/gui_tests/model_free.py

Modified: branches/relax_disp/gui/components/base_list.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/gui/components/base_list.py?rev=21182&r1=21181&r2=21182&view=diff
==============================================================================
--- branches/relax_disp/gui/components/base_list.py (original)
+++ branches/relax_disp/gui/components/base_list.py Fri Oct 18 18:32:37 2013
@@ -327,6 +327,9 @@
         # Obtain the position.
         pos = event.GetPosition()
 
+        # Hack to allow the test suite to pass.
+        wx.Yield()
+
         # Find the item clicked on.
         item, flags = self.element.HitTest(pos)
 

Modified: branches/relax_disp/test_suite/gui_tests/model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/test_suite/gui_tests/model_free.py?rev=21182&r1=21181&r2=21182&view=diff
==============================================================================
--- branches/relax_disp/test_suite/gui_tests/model_free.py (original)
+++ branches/relax_disp/test_suite/gui_tests/model_free.py Fri Oct 18 
18:32:37 2013
@@ -441,7 +441,7 @@
         """Simulate the GetPosition() method."""
 
         # Return some random position.
-        return (10, 10)
+        return wx.Point(2, 2)
 
 
     def GetRow(self):




Related Messages


Powered by MHonArc, Updated Fri Oct 18 19:40:01 2013