Updated speech handling specifically for web.
This commit is contained in:
1 parent
f8107f0759
commit
65c0e57aa8
5 files changed
+126
-3
No files matched your search
@@ -17,6 +17,25 @@ from cthulhu import structural_navigation
|
||||
|
||||
|
||||
class StructuralNavigationTableRegressionTests(unittest.TestCase):
|
||||
def test_object_presentation_marks_keyboard_interruption_as_already_handled(self):
|
||||
navigator = structural_navigation.StructuralNavigation.__new__(
|
||||
structural_navigation.StructuralNavigation
|
||||
)
|
||||
navigator._script = mock.Mock()
|
||||
navigator._presentWithSayAll = mock.Mock(return_value=False)
|
||||
target = object()
|
||||
|
||||
with mock.patch.object(structural_navigation.AXEventSynthesizer, "scroll_to_top_edge"):
|
||||
navigator._presentObject(target, 3, "prior")
|
||||
|
||||
navigator._script.presentObject.assert_called_once_with(
|
||||
target,
|
||||
offset=3,
|
||||
priorObj="prior",
|
||||
interrupt=True,
|
||||
interrupt_already_handled=True,
|
||||
)
|
||||
|
||||
def test_table_cell_coordinates_do_not_interrupt_cell_contents(self):
|
||||
navigator = structural_navigation.StructuralNavigation.__new__(
|
||||
structural_navigation.StructuralNavigation
|
||||
|
||||
Reference in new issue
Block a user