Ignore:
Timestamp:
Jan 13, 2017 7:23:38 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:
0f3c22d
Parents:
2e3e959
Message:

Remove graph properties - MPL dialog is enough.
Minor fix in Plot Properties (WP review)

File:
1 edited

Legend:

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

    rdb5cd8d r239214f  
    1818        '''Create the PlotProperties''' 
    1919 
    20         self.widget = PlotProperties(None,  
     20        self.widget = PlotProperties(None, 
    2121                         color=1, 
    2222                         marker=3, 
     
    3636        # Check the combo boxes 
    3737        self.assertEqual(self.widget.cbColor.currentText(), "Green") 
     38        self.assertEqual(self.widget.cbColor.count(), 7) 
    3839        self.assertEqual(self.widget.cbShape.currentText(), "Triangle Down") 
    3940        self.assertEqual(self.widget.txtLegend.text(), "LL") 
    4041        self.assertEqual(self.widget.sbSize.value(), 10) 
     42 
     43    def testDefaultsWithCustomColor(self): 
     44        '''Test the GUI when called with custom color''' 
     45        widget = PlotProperties(None, 
     46                         color="#FF00FF", 
     47                         marker=7, 
     48                         marker_size=10, 
     49                         legend="LL") 
     50 
     51        self.assertEqual(widget.cbColor.currentText(), "Custom") 
     52        self.assertEqual(widget.cbColor.count(), 8) 
    4153         
    4254    def testOnColorChange(self): 
Note: See TracChangeset for help on using the changeset viewer.