Beispiel #1
0
 def test_focus_menu(self):
     self.runDemo('Builder')
     focus.menu('File')
     self.assertTrue(isinstance(focus.widget.node, tree.Node))
     self.assertEqual(focus.widget.node.role, pyatspi.ROLE_MENU)
 def test_focus_menu(self):
     self.runDemo('Builder')
     focus.menu('File')
     self.assertTrue(isinstance(focus.widget.node, tree.Node))
     self.assertEqual(focus.widget.node.role, pyatspi.ROLE_MENU)
Beispiel #3
0
 def testFocusMenu(self):
     self.runDemo('Application window')
     focus.window('Application Window')
     focus.menu('File')
     self.assert_(isinstance(focus.widget.node, tree.Node))
     self.assertEquals(focus.widget.node.role, pyatspi.ROLE_MENU)
Beispiel #4
0
 def test_focus_menu(self):
     self.runDemo('Application window')
     focus.window('Application Window')
     focus.menu('File')
     self.assert_(isinstance(focus.widget.node, tree.Node))
     self.assertEquals(focus.widget.node.role, pyatspi.ROLE_MENU)