Add test coverage of the new options
This commit is contained in:
@@ -16,8 +16,8 @@ docpane = 400, 400
|
|||||||
viewpane = 500, 150
|
viewpane = 500, 150
|
||||||
outlinepane = 500, 150
|
outlinepane = 500, 150
|
||||||
fullscreen = False
|
fullscreen = False
|
||||||
hidevscroll = False
|
hidevscroll = True
|
||||||
hidehscroll = False
|
hidehscroll = True
|
||||||
|
|
||||||
[Project]
|
[Project]
|
||||||
autosaveproject = 40
|
autosaveproject = 40
|
||||||
@@ -39,8 +39,8 @@ repsquotes = True
|
|||||||
repdquotes = True
|
repdquotes = True
|
||||||
repdash = True
|
repdash = True
|
||||||
repdots = True
|
repdots = True
|
||||||
scrollpastend = True
|
scrollpastend = False
|
||||||
scollwithcursor = False
|
scollwithcursor = True
|
||||||
fmtsinglequote = ‘, ’
|
fmtsinglequote = ‘, ’
|
||||||
fmtdoublequote = “, ”
|
fmtdoublequote = “, ”
|
||||||
spelltool = internal
|
spelltool = internal
|
||||||
|
|||||||
@@ -1077,6 +1077,16 @@ def testPreferences(qtbot, monkeypatch, yesToAll, nwMinimal, nwTemp, nwRef, tmpC
|
|||||||
qtbot.mouseClick(tabGeneral.showFullPath, Qt.LeftButton)
|
qtbot.mouseClick(tabGeneral.showFullPath, Qt.LeftButton)
|
||||||
assert not tabGeneral.showFullPath.isChecked()
|
assert not tabGeneral.showFullPath.isChecked()
|
||||||
|
|
||||||
|
qtbot.wait(keyDelay)
|
||||||
|
assert not tabGeneral.hideVScroll.isChecked()
|
||||||
|
qtbot.mouseClick(tabGeneral.hideVScroll, Qt.LeftButton)
|
||||||
|
assert tabGeneral.hideVScroll.isChecked()
|
||||||
|
|
||||||
|
qtbot.wait(keyDelay)
|
||||||
|
assert not tabGeneral.hideHScroll.isChecked()
|
||||||
|
qtbot.mouseClick(tabGeneral.hideHScroll, Qt.LeftButton)
|
||||||
|
assert tabGeneral.hideHScroll.isChecked()
|
||||||
|
|
||||||
# Check font button
|
# Check font button
|
||||||
monkeypatch.setattr(QFontDialog, "getFont", lambda font, obj: (font, True))
|
monkeypatch.setattr(QFontDialog, "getFont", lambda font, obj: (font, True))
|
||||||
qtbot.mouseClick(tabGeneral.fontButton, Qt.LeftButton)
|
qtbot.mouseClick(tabGeneral.fontButton, Qt.LeftButton)
|
||||||
@@ -1135,6 +1145,16 @@ def testPreferences(qtbot, monkeypatch, yesToAll, nwMinimal, nwTemp, nwRef, tmpC
|
|||||||
qtbot.mouseClick(tabLayout.textJustify, Qt.LeftButton)
|
qtbot.mouseClick(tabLayout.textJustify, Qt.LeftButton)
|
||||||
assert not tabLayout.textJustify.isChecked()
|
assert not tabLayout.textJustify.isChecked()
|
||||||
|
|
||||||
|
qtbot.wait(keyDelay)
|
||||||
|
assert tabLayout.scrollPastEnd.isChecked()
|
||||||
|
qtbot.mouseClick(tabLayout.scrollPastEnd, Qt.LeftButton)
|
||||||
|
assert not tabLayout.scrollPastEnd.isChecked()
|
||||||
|
|
||||||
|
qtbot.wait(keyDelay)
|
||||||
|
assert not tabLayout.scollWithCursor.isChecked()
|
||||||
|
qtbot.mouseClick(tabLayout.scollWithCursor, Qt.LeftButton)
|
||||||
|
assert tabLayout.scollWithCursor.isChecked()
|
||||||
|
|
||||||
# Editor Settings
|
# Editor Settings
|
||||||
qtbot.wait(keyDelay)
|
qtbot.wait(keyDelay)
|
||||||
tabEditing = nwPrefs.tabEditing
|
tabEditing = nwPrefs.tabEditing
|
||||||
|
|||||||
Reference in New Issue
Block a user