Closed dergo closed 9 years ago
I think this issue is solved now. You can check TabbedPaneSelection and TabbedPaneSelectionException tests in Playback demo.
If you close this issue, don't forget to close the pull request #168 too.
TabbedPaneSelection:
TabbedPaneSelectionException:
exception = False
try:
call()
except:
exception = True
...
if not exception:
fail()
do this:
try:
call()
fail()
except:
...
Corrections done.
To be able to check that the selection works, I have added 3 new methods in JavaGUI : getSelectedTabIndex, getSelectedTabTitle, getSelectedTabId.
For the TabbedPaneSelectionException, I have changed test data. Now, instead of TEST_CASE_ID (I understand the problem with it), I use SELECTION_METHOD and SELECTION_VALUE. I prefer to do like that instead of doing like in TabbedPaneSelection, because error cases are different in selection by index and selection by title/id.
When JavaGUI selectTab(), selectTabId() or selectTabTitled() methods are called on an inexistent tab index, tab name or table title respectively, it executes successfully instead of throwing a QTasteTestFailException.