Changeset 239214f in sasview for src/sas/qtgui/UnitTesting
- Timestamp:
- Jan 13, 2017 9:23:38 AM (8 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/UnitTesting/PlotPropertiesTest.py
rdb5cd8d r239214f 18 18 '''Create the PlotProperties''' 19 19 20 self.widget = PlotProperties(None, 20 self.widget = PlotProperties(None, 21 21 color=1, 22 22 marker=3, … … 36 36 # Check the combo boxes 37 37 self.assertEqual(self.widget.cbColor.currentText(), "Green") 38 self.assertEqual(self.widget.cbColor.count(), 7) 38 39 self.assertEqual(self.widget.cbShape.currentText(), "Triangle Down") 39 40 self.assertEqual(self.widget.txtLegend.text(), "LL") 40 41 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) 41 53 42 54 def testOnColorChange(self):
Note: See TracChangeset
for help on using the changeset viewer.