[eog] Update installed tests to work with latest GtkFileChooser



commit ed8e8838cd07fb0bb6d97b76e1e0cf093d4559dd
Author: Felix Riemann <friemann gnome org>
Date:   Mon Apr 28 23:22:07 2014 +0200

    Update installed tests to work with latest GtkFileChooser
    
    The location entry is shown differently now and apparently there is
    also a slightly longer timeout needed until one can press Enter.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727989

 tests/common_steps.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/common_steps.py b/tests/common_steps.py
index adda7b5..3fdffe9 100644
--- a/tests/common_steps.py
+++ b/tests/common_steps.py
@@ -227,12 +227,12 @@ def select_file_in_dialog(context, name):
         home_folder.click()
     else:
         context.app.dialog.childNamed('File System').click()
-    location_button = context.app.dialog.child('Type a file name')
-    if not pyatspi.STATE_ARMED in location_button.getState().getStates():
+    location_button = context.app.dialog.child('Enter Location')
+    if not pyatspi.STATE_SELECTED in location_button.getState().getStates():
         location_button.click()
 
     context.app.dialog.childLabelled('Location:').set_text_contents(name)
-    sleep(0.1)
+    sleep(0.2)
     context.app.dialog.childLabelled('Location:').grab_focus()
     keyCombo('<Enter>')
     assert wait_until(lambda x: x.dead, context.app.dialog), "Dialog was not closed"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]