mailr20870 - /branches/relax_disp/test_suite/gui_tests/relax_disp.py


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

Header


Content

Posted by edward on September 06, 2013 - 09:55:
Author: bugman
Date: Fri Sep  6 09:55:30 2013
New Revision: 20870

URL: http://svn.gna.org/viewcvs/relax?rev=20870&view=rev
Log:
Modified the Relax_disp.test_tp02_data_to_tp02 GUI test to check the spectrum 
list GUI element.

The popup menu is now tested in the same way as in the 
Relax_disp.test_hansen_trunc_data GUI test.


Modified:
    branches/relax_disp/test_suite/gui_tests/relax_disp.py

Modified: branches/relax_disp/test_suite/gui_tests/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/test_suite/gui_tests/relax_disp.py?rev=20870&r1=20869&r2=20870&view=diff
==============================================================================
--- branches/relax_disp/test_suite/gui_tests/relax_disp.py (original)
+++ branches/relax_disp/test_suite/gui_tests/relax_disp.py Fri Sep  6 
09:55:30 2013
@@ -453,6 +453,26 @@
             wizard._apply(None)
         wizard._skip(None)
 
+        # Flush all wx events (to allow the spectrum list GUI element to 
populate all its rows).
+        wx.Yield()
+
+        # Simulate right clicking in the spectrum list element to test the 
popup menu.
+        analysis.peak_intensity.on_right_click(Fake_right_click())
+
+        # Simulate the popup menu entries to catch bugs there (just apply 
the user functions with the currently set values).
+        analysis.peak_intensity.action_relax_disp_spin_lock_field(item=4)
+        uf_store['relax_disp.spin_lock_field'].wizard._go_next()
+        interpreter.flush()
+        analysis.peak_intensity.action_relax_disp_exp_type(item=5)
+        uf_store['relax_disp.exp_type'].wizard._go_next()
+        interpreter.flush()
+        analysis.peak_intensity.action_relax_disp_relax_time(item=0)
+        uf_store['relax_disp.relax_time'].wizard._go_next()
+        interpreter.flush()
+        analysis.peak_intensity.action_spectrometer_frq(item=10)
+        uf_store['spectrometer.frequency'].wizard._go_next()
+        interpreter.flush()
+
         # Deselect all but the 'TP02' model.
         models = [MODEL_R2EFF, MODEL_NOREX, MODEL_TP02]
         for i in range(len(analysis.model_field.models)):




Related Messages


Powered by MHonArc, Updated Fri Sep 06 10:00:02 2013