Changeset 863ebca in sasview for src/sas/qtgui/Plotting/UnitTesting/PlotterBaseTest.py
- Timestamp:
- Sep 20, 2018 7:16:26 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:
- 8faac15
- Parents:
- bdfe0be
- git-author:
- Piotr Rozyczko <rozyczko@…> (09/20/18 07:14:40)
- git-committer:
- Piotr Rozyczko <piotrrozyczko@…> (09/20/18 07:16:26)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/UnitTesting/PlotterBaseTest.py
r144fe21 r863ebca 84 84 self.assertTrue(PlotHelper.deletePlot.called) 85 85 86 def testOnImagePrint(self):86 def notestOnImagePrint(self): 87 87 ''' test the workspace print ''' 88 88 QtGui.QPainter.end = MagicMock() … … 124 124 125 125 actions = self.plotter.contextMenu.actions() 126 self.assertEqual(len(actions), 4)126 self.assertEqual(len(actions), 6) 127 127 128 128 # Trigger Print Image and make sure the method is called … … 146 146 # Make sure clipboard got updated. 147 147 self.assertTrue(self.clipboard_called) 148 149 # Trigger toggle navigation bar and make sure the method is called 150 self.assertEqual(actions[4].text(), "Toggle Navigation Menu") 151 isShown = self.plotter.toolbar.isVisible() 152 self.assertTrue(isShow) 153 actions[4].trigger() 154 isShown = self.plotter.toolbar.isVisible() 155 self.assertFalse(isShow) 156 actions[4].trigger() 157 isShown = self.plotter.toolbar.isVisible() 158 self.assertTrue(isShow) 159 148 160 149 161 def testOnWindowsTitle(self):
Note: See TracChangeset
for help on using the changeset viewer.