More strictly adhere to nvdaControllerClient and Tolk parameters.

This commit is contained in:
Storm Dragon
2026-07-18 02:53:17 -04:00
parent 5a8a96b14f
commit ffae1c309a
3 changed files with 28 additions and 2 deletions
@@ -0,0 +1,24 @@
import re
import unittest
from pathlib import Path
class WineAccessControllerContractTests(unittest.TestCase):
def test_legacy_speak_text_queues_without_cancelling_current_speech(self):
sourcePath = Path(__file__).resolve().parents[1] / "wine-access" / "main.cpp"
source = sourcePath.read_text(encoding="utf-8")
match = re.search(
r'extern "C" error_status_t __stdcall speakText\(.*?\n\}',
source,
re.DOTALL,
)
self.assertIsNotNone(match)
self.assertIn(
'g_variant_new("(sb)", utf8.c_str(), FALSE)',
match.group(0),
)
if __name__ == "__main__":
unittest.main()