Add some coverage pragmas for caret workarounds.
This commit is contained in:
parent
9720d879ad
commit
3f15186a64
@ -1462,11 +1462,11 @@ class CommandDispatcher:
|
|||||||
webview = self._current_widget()
|
webview = self._current_widget()
|
||||||
if not webview.selection_enabled:
|
if not webview.selection_enabled:
|
||||||
act = [QWebPage.MoveToNextWord]
|
act = [QWebPage.MoveToNextWord]
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32': # pragma: no cover
|
||||||
act.append(QWebPage.MoveToPreviousChar)
|
act.append(QWebPage.MoveToPreviousChar)
|
||||||
else:
|
else:
|
||||||
act = [QWebPage.SelectNextWord]
|
act = [QWebPage.SelectNextWord]
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32': # pragma: no cover
|
||||||
act.append(QWebPage.SelectPreviousChar)
|
act.append(QWebPage.SelectPreviousChar)
|
||||||
for _ in range(count):
|
for _ in range(count):
|
||||||
for a in act:
|
for a in act:
|
||||||
@ -1483,11 +1483,11 @@ class CommandDispatcher:
|
|||||||
webview = self._current_widget()
|
webview = self._current_widget()
|
||||||
if not webview.selection_enabled:
|
if not webview.selection_enabled:
|
||||||
act = [QWebPage.MoveToNextWord]
|
act = [QWebPage.MoveToNextWord]
|
||||||
if sys.platform != 'win32':
|
if sys.platform != 'win32': # pragma: no branch
|
||||||
act.append(QWebPage.MoveToNextChar)
|
act.append(QWebPage.MoveToNextChar)
|
||||||
else:
|
else:
|
||||||
act = [QWebPage.SelectNextWord]
|
act = [QWebPage.SelectNextWord]
|
||||||
if sys.platform != 'win32':
|
if sys.platform != 'win32': # pragma: no branch
|
||||||
act.append(QWebPage.SelectNextChar)
|
act.append(QWebPage.SelectNextChar)
|
||||||
for _ in range(count):
|
for _ in range(count):
|
||||||
for a in act:
|
for a in act:
|
||||||
|
Loading…
Reference in New Issue
Block a user