Ignore:
Timestamp:
Jan 16, 2017 4:05:40 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
092a3d9
Parents:
239214f
Message:

Code review for SASVIEW-383

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/UnitTesting/PlotPropertiesTest.py

    r239214f r0f3c22d  
    5757        QtGui.QColorDialog.getColor = MagicMock(return_value=QtGui.QColor(255, 0, 255)) 
    5858 
    59         self.widget.onColorChange(None) 
     59        self.widget.onColorChange() 
    6060 
    6161        self.assertEqual(self.widget.color(), "#ff00ff") 
     
    7272        bad_color = QtGui.QColor() # constructs an invalid color 
    7373        QtGui.QColorDialog.getColor = MagicMock(return_value=bad_color) 
    74         self.widget.onColorChange(None) 
     74        self.widget.onColorChange() 
    7575 
    7676        self.assertEqual(self.widget.color(), 1) 
     
    8383        '''Test the response to color index change event''' 
    8484        # Intitial population of the color combo box 
    85         self.widget.onColorIndexChange(0) 
     85        self.widget.onColorIndexChange() 
    8686        self.assertEqual(self.widget.cbColor.count(), 7) 
    8787        # Block the callback so we can update the cb 
     
    9494        self.assertEqual(self.widget.cbColor.count(), 8) 
    9595        # Call the method 
    96         self.widget.onColorIndexChange(0) 
     96        self.widget.onColorIndexChange() 
    9797        # see that the Custom entry disappeared 
    9898        self.assertEqual(self.widget.cbColor.count(), 7) 
Note: See TracChangeset for help on using the changeset viewer.