Commit 77b58e0c authored by payno's avatar payno Committed by Henri Payno
Browse files

[gui][axis][test] fix typo _dockWidgetWidget / _controlWidget

parent bf6bf2c8
......@@ -88,24 +88,24 @@ class TestWindowAxis(TestCaseQt):
self.assertTrue(radio_axis.getXShift() == 0)
self.assertTrue(radio_axis.getYShift() == 0)
self.assertTrue(radio_axis.getShiftStep() == 1.0)
radio_axis._dockWidgetWidget._shiftControl._leftButton.click()
radio_axis._controlWidget._shiftControl._leftButton.click()
self.qapp.processEvents()
self.assertTrue(radio_axis.getXShift() == -1)
self.assertTrue(radio_axis.getYShift() == 0)
radio_axis._dockWidgetWidget._shiftControl._rightButton.click()
radio_axis._controlWidget._shiftControl._rightButton.click()
self.qapp.processEvents()
self.assertTrue(radio_axis.getXShift() == 0)
self.assertTrue(radio_axis.getYShift() == 0)
radio_axis._dockWidgetWidget._displacementSelector._fineButton.toggle()
radio_axis._controlWidget._displacementSelector._fineButton.toggle()
self.qapp.processEvents()
self.assertTrue(radio_axis.getShiftStep() == 0.1)
radio_axis._dockWidgetWidget._shiftControl._topButton.click()
radio_axis._controlWidget._shiftControl._topButton.click()
self.qapp.processEvents()
self.assertTrue(radio_axis.getXShift() == 0)
self.assertTrue(radio_axis.getYShift() == 0.1)
radio_axis.setShiftStep(0.2)
self.assertTrue(radio_axis.getShiftStep() == 0.2)
radio_axis._dockWidgetWidget._shiftControl._bottomButton.click()
radio_axis._controlWidget._shiftControl._bottomButton.click()
self.qapp.processEvents()
self.assertTrue(radio_axis.getXShift() == 0)
self.assertTrue(radio_axis.getYShift() == -0.1)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment