[pitivi] dogtail tests: Fix the clip properties/transformation test
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] dogtail tests: Fix the clip properties/transformation test
- Date: Wed, 25 Jul 2012 11:57:19 +0000 (UTC)
commit 9781451c31ea4a86410ae38156ee2a332fa04b7e
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Tue Jul 24 17:24:51 2012 -0400
dogtail tests: Fix the clip properties/transformation test
It will fail, but the failures are actual bugs now
tests/dogtail_scripts/test_clipproperties.py | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/tests/dogtail_scripts/test_clipproperties.py b/tests/dogtail_scripts/test_clipproperties.py
index 1e18dd3..53292ec 100644
--- a/tests/dogtail_scripts/test_clipproperties.py
+++ b/tests/dogtail_scripts/test_clipproperties.py
@@ -22,9 +22,11 @@ class ClipTransforamtionTest(HelpFunc):
conftab.child(name="Transformation", roleName="toggle button").click()
#Just try changing values
#Test slider
- self.assertEqual(conftab.child(roleName="slider").value, 1)
- conftab.child(roleName="slider").click()
- self.assertNotEqual(conftab.child(roleName="slider").value, 1)
+ slider = conftab.child(roleName="slider")
+ self.assertEqual(slider.value, 1.0)
+ slider.click()
+ # Clicking in the middle of the slider will set it backwards to 0.9
+ self.assertNotEqual(slider.value, 1.0)
#Test position
spinb = conftab.child(roleName="panel", name="Position").findChildren(GenericPredicate(roleName="spin button"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]