Skip to content

Commit

Permalink
No longer use filter_displaySize in system tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonarddeR committed Jan 23, 2025
1 parent c877ab3 commit a5efef4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/system/libraries/SystemTestSpy/speechSpyGlobalPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Optional,
Tuple,
)

from braille import DisplayDimensions
import core
import globalPluginHandler
import threading
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a5efef4

Please sign in to comment.