From a5efef43bf289b83edb8f073b9a11c36ba90c626 Mon Sep 17 00:00:00 2001 From: Leonard de Ruijter Date: Thu, 23 Jan 2025 14:09:37 +0100 Subject: [PATCH] No longer use filter_displaySize in system tests --- .../libraries/SystemTestSpy/speechSpyGlobalPlugin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/system/libraries/SystemTestSpy/speechSpyGlobalPlugin.py b/tests/system/libraries/SystemTestSpy/speechSpyGlobalPlugin.py index 05bf5b28af0..56a97d9762e 100644 --- a/tests/system/libraries/SystemTestSpy/speechSpyGlobalPlugin.py +++ b/tests/system/libraries/SystemTestSpy/speechSpyGlobalPlugin.py @@ -15,7 +15,7 @@ Optional, Tuple, ) - +from braille import DisplayDimensions import core import globalPluginHandler import threading @@ -189,7 +189,7 @@ def _onNvdaStartupComplete(self): self._isNvdaStartupComplete = True import braille - braille.filter_displaySize.register(self.getBrailleCellCount) + braille.filter_displayDimensions.register(self.getBrailleDisplayDimensions) braille.pre_writeCells.register(self._onNvdaBraille) def _onNvdaBraille(self, rawText: str): @@ -266,8 +266,8 @@ def _hasSpeechFinished(self, speechStartedIndex: Optional[int] = None): def setBrailleCellCount(self, brailleCellCount: int): self._brailleCellCount = brailleCellCount - def getBrailleCellCount(self, value: int): - return self._brailleCellCount + def getBrailleDisplayDimensions(self, value: DisplayDimensions): + return DisplayDimensions(1, self._brailleCellCount) def _getBrailleAtIndex(self, brailleIndex: int) -> str: with self._brailleLock: