Changeset 34f13a83 in sasview for src/sas/qtgui/Plotting/UnitTesting/Plotter2DTest.py
- Timestamp:
- Sep 25, 2018 9:50:18 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- cb39d66
- Parents:
- 624c8747
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/UnitTesting/Plotter2DTest.py
r863ebca r34f13a83 146 146 self.plotter.createContextMenuQuick() 147 147 actions = self.plotter.contextMenu.actions() 148 self.assertEqual(len(actions), 9)148 self.assertEqual(len(actions), 7) 149 149 150 150 # Trigger Print Image and make sure the method is called … … 158 158 159 159 # Trigger Toggle Grid and make sure the method is called 160 self.assertEqual(actions[ 6].text(), "Toggle Grid On/Off")160 self.assertEqual(actions[4].text(), "Toggle Grid On/Off") 161 161 self.plotter.ax.grid = MagicMock() 162 actions[4].trigger() 163 self.assertTrue(self.plotter.ax.grid.called) 164 165 # Trigger Change Scale and make sure the method is called 166 self.assertEqual(actions[6].text(), "Toggle Linear/Log Scale") 167 FigureCanvas.draw_idle = MagicMock() 162 168 actions[6].trigger() 163 self.assertTrue(self.plotter.ax.grid.called)164 165 # Trigger Change Scale and make sure the method is called166 self.assertEqual(actions[8].text(), "Toggle Linear/Log Scale")167 FigureCanvas.draw_idle = MagicMock()168 actions[8].trigger()169 169 self.assertTrue(FigureCanvas.draw_idle.called) 170 170
Note: See TracChangeset
for help on using the changeset viewer.