[pitivi] Add a check for doing/undoing timeline objects priority changes.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] Add a check for doing/undoing timeline objects priority changes.
- Date: Thu, 11 Jun 2009 12:40:24 -0400 (EDT)
commit d1c14cf711aa0ff9914f5d3f1bede4e7b709d0f1
Author: Alessandro Decina <alessandro d gmail com>
Date: Thu Jun 11 13:41:22 2009 +0200
Add a check for doing/undoing timeline objects priority changes.
tests/test_timeline_undo.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_timeline_undo.py b/tests/test_timeline_undo.py
index 6eef513..bca4ccf 100644
--- a/tests/test_timeline_undo.py
+++ b/tests/test_timeline_undo.py
@@ -185,3 +185,15 @@ class TestTimelineUndo(TestCase):
self.failUnlessEqual(self.timeline_object1.start, 5 * gst.SECOND)
self.action_log.redo()
self.failUnlessEqual(self.timeline_object1.start, 10 * gst.SECOND)
+
+ self.timeline_object1.priority = 10
+ self.action_log.begin("priority change")
+ self.timeline_object1.priority = 20
+ self.action_log.commit()
+
+ self.failUnlessEqual(self.timeline_object1.priority, 20)
+ self.action_log.undo()
+ self.failUnlessEqual(self.timeline_object1.priority, 10)
+ self.action_log.redo()
+ self.failUnlessEqual(self.timeline_object1.priority, 20)
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]