[pitivi] dogtail tests: Slow down the saveProject helper func a little



commit de826babe3378289866b3b6e1a3d46bffbe324ef
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Wed Aug 8 21:58:59 2012 -0400

    dogtail tests: Slow down the saveProject helper func a little
    
    On some computers, the filechooser dialog wouldn't have time
    to refresh if we enter two paths too quickly.

 tests/dogtail_scripts/helper_functions.py |    2 +-
 tests/dogtail_scripts/test_project.py     |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/dogtail_scripts/helper_functions.py b/tests/dogtail_scripts/helper_functions.py
index ab66ce0..d9687ce 100644
--- a/tests/dogtail_scripts/helper_functions.py
+++ b/tests/dogtail_scripts/helper_functions.py
@@ -26,7 +26,7 @@ class HelpFunc(BaseDogTail):
             text_field = save_dialog.child(roleName="text")
             text_field.text = path_dir
             dogtail.rawinput.pressKey("Enter")
-            sleep(0.05)
+            sleep(0.15)
             text_field.text = filename
             dogtail.rawinput.pressKey("Enter")
             # Save to the list of items to cleanup afterwards
diff --git a/tests/dogtail_scripts/test_project.py b/tests/dogtail_scripts/test_project.py
index 8000780..8968c8c 100644
--- a/tests/dogtail_scripts/test_project.py
+++ b/tests/dogtail_scripts/test_project.py
@@ -152,7 +152,7 @@ class ProjectPropertiesTest(HelpFunc):
         path = "/tmp/" + filename
         backup_path = path + "~"
         self.unlink.append(backup_path)
-        self.saveProject("/tmp/" + filename)
+        self.saveProject(path)
 
         #Change somthing
         seektime = self.search_by_text("0:00:00.000", self.pitivi, roleName="text")
@@ -229,8 +229,8 @@ class ProjectPropertiesTest(HelpFunc):
         tab = self.pitivi.tab("Media Library")
         seektime = self.search_by_text("0:00:00.000", self.pitivi, roleName="text")
         infobar_media = tab.child(name="Add media to your project by dragging files and folders here or by using the \"Import Files...\" button.")
-        filename1 = "/tmp/test_project%i.xptv" % time()
-        filename2 = "/tmp/test_project%i.xptv" % time()
+        filename1 = "/tmp/test_project-%i.xptv" % time()
+        filename2 = "/tmp/test_project-%i.xptv" % time()
 
         #Create project
         self.assertTrue(infobar_media.showing)



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