[pitivi] dogtail tests: Optimize performance in the clipmediaprops test
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] dogtail tests: Optimize performance in the clipmediaprops test
- Date: Wed, 25 Jul 2012 11:56:54 +0000 (UTC)
commit 2d0c5edf91d892adb4e134786873df86f9546168
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Sun Jul 22 16:23:12 2012 -0400
dogtail tests: Optimize performance in the clipmediaprops test
.../dogtail_scripts/test_dialogs_clipmediaprops.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/dogtail_scripts/test_dialogs_clipmediaprops.py b/tests/dogtail_scripts/test_dialogs_clipmediaprops.py
index a0f4e2c..3d2c2ef 100644
--- a/tests/dogtail_scripts/test_dialogs_clipmediaprops.py
+++ b/tests/dogtail_scripts/test_dialogs_clipmediaprops.py
@@ -12,7 +12,7 @@ class DialogsClipMediaPropsTest(HelpFunc):
buttons[1].click()
#Check if we have real info, can't check if in correct place.
- dialog = self.pitivi.child(name="Clip Properties", roleName="dialog")
+ dialog = self.pitivi.child(name="Clip Properties", roleName="dialog", recursive=False)
labels = {"640", "480"}
real_labels = set([])
for label in dialog.findChildren(GenericPredicate(roleName="label")):
@@ -28,7 +28,7 @@ class DialogsClipMediaPropsTest(HelpFunc):
self.menubar.menuItem("Clip Properties...").click()
#Check if we have real info, can't check if in correct place.
- dialog = self.pitivi.child(name="Clip Properties", roleName="dialog")
+ dialog = self.pitivi.child(name="Clip Properties", roleName="dialog", recursive=False)
labels = {"1280", "544", "23.976 fps", "Square", "Stereo", "48 KHz", "16 bit"}
real_labels = set([])
for label in dialog.findChildren(GenericPredicate(roleName="label")):
@@ -41,8 +41,8 @@ class DialogsClipMediaPropsTest(HelpFunc):
#Check if correctly applied
self.menubar.menu("Edit").click()
- self.pitivi.child(name="Project Settings", roleName="menu item").click()
- dialog = self.pitivi.child(name="Project Settings", roleName="dialog")
+ self.menubar.menuItem("Project Settings").click()
+ dialog = self.pitivi.child(name="Project Settings", roleName="dialog", recursive=False)
children = dialog.findChildren(IsATextEntryNamed(""))
childtext = {}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]