[pitivi] dogtail tests: Remove a GTK2 filechooser hack that is not required anymore



commit dab6fa39496ef96639fed197740d2904f3dbca0f
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Fri Oct 19 14:58:09 2012 -0400

    dogtail tests: Remove a GTK2 filechooser hack that is not required anymore
    
    This makes saving projects work again, which makes test_backup work in test_project

 tests/dogtail_scripts/helper_functions.py |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/tests/dogtail_scripts/helper_functions.py b/tests/dogtail_scripts/helper_functions.py
index 5bc2dba..39a9c65 100644
--- a/tests/dogtail_scripts/helper_functions.py
+++ b/tests/dogtail_scripts/helper_functions.py
@@ -20,15 +20,10 @@ class HelpFunc(BaseDogTail):
             self.assertIsNotNone(path)
             proj_menu.menuItem("Save As...").click()
             save_dialog = self.pitivi.child(name="Save As...", roleName='file chooser', recursive=False)
-            # In GTK3's file chooser, you can enter /tmp/foo.xptv directly
-            # In GTK2 however, you must do it in two steps:
-            path_dir, filename = os.path.split(path)
             text_field = save_dialog.child(roleName="text")
-            text_field.text = path_dir
+            text_field.text = path
             dogtail.rawinput.pressKey("Enter")
             sleep(0.15)
-            text_field.text = filename
-            dogtail.rawinput.pressKey("Enter")
             # Save to the list of items to cleanup afterwards
             self.unlink.append(path)
         else:



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