More strictly adhere to nvdaControllerClient and Tolk parameters.
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user