Commit a394d04a authored by Vitezslav Humpa's avatar Vitezslav Humpa
Browse files

test_procedural: really make keyCombo tests gtk<3.18 compatible

parent 2beebd9b
Pipeline #3618538 passed with stages
in 20 minutes and 28 seconds
......@@ -199,13 +199,28 @@ class TestKeyCombo(GtkDemoTest):
def test_keyCombo(self):
self.runDemo('Builder')
keyCombo('<F7>')
self.assertTrue(focus.dialog('About Builder demo') or focus.dialog('About GtkBuilder demo'))
res = False
try:
res = focus.dialog('About Builder demo')
except:
try:
focus.dialog('About GtkBuilder demo')
except:
pass
self.assertTrue(res)
def test_keyCombo_on_widget(self):
self.runDemo('Builder')
focus.button('Copy')
keyCombo('<F7>')
self.assertTrue(focus.dialog('About Builder demo') or focus.dialog('About GtkBuilder demo'))
try:
res = focus.dialog('About Builder demo')
except:
try:
focus.dialog('About GtkBuilder demo')
except:
pass
self.assertTrue(res)
class TestActions(GtkDemoTest):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment