[pitivi] Enhance do/undo test for effects
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Enhance do/undo test for effects
- Date: Wed, 22 Sep 2010 13:40:35 +0000 (UTC)
commit f830b028b8ee6e10a52c4604610091a501cd15c8
Author: Thibault Saunier <tsaunier gnome org>
Date: Thu Jul 15 12:23:33 2010 -0400
Enhance do/undo test for effects
tests/test_timeline_undo.py | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_timeline_undo.py b/tests/test_timeline_undo.py
index 1abf110..42301fb 100644
--- a/tests/test_timeline_undo.py
+++ b/tests/test_timeline_undo.py
@@ -188,14 +188,30 @@ class TestTimelineUndo(TestCase):
self.failUnless(self.track_effect1 \
in self.timeline_object1.track_objects)
+ self.failUnless(self.track_effect1 \
+ in self.track1.track_objects)
+ self.failUnless(len([effect for effect in \
+ self.timeline_object1.track_objects
+ if isinstance(effect, TrackEffect)]) == 1)
+ self.failUnless(len([effect for effect in self.track1.track_objects
+ if isinstance(effect, TrackEffect)]) == 1)
self.action_log.undo()
self.failIf(self.track_effect1 \
in self.timeline_object1.track_objects)
+ self.failIf(self.track_effect1 \
+ in self.track1.track_objects)
self.action_log.redo()
self.failUnless(self.track_effect1 \
in self.timeline_object1.track_objects)
+ self.failUnless(self.track_effect1 \
+ in self.track1.track_objects)
+ self.failUnless(len([effect for effect in
+ self.timeline_object1.track_objects
+ if isinstance(effect, TrackEffect)]) == 1)
+ self.failUnless(len([effect for effect in self.track1.track_objects
+ if isinstance(effect, TrackEffect)]) == 1)
self.timeline.removeTimelineObject(self.timeline_object1, deep=True)
@@ -222,14 +238,25 @@ class TestTimelineUndo(TestCase):
self.failIf(self.track_effect1 \
in self.timeline_object1.track_objects)
+ self.failIf(self.track_effect1 \
+ in self.track1.track_objects)
self.action_log.undo()
self.failUnless(self.track_effect1 \
in self.timeline_object1.track_objects)
+ self.failUnless(len([effect for effect in
+ self.timeline_object1.track_objects
+ if isinstance(effect, TrackEffect)]) == 1)
+ self.failUnless(self.track_effect1 \
+ in self.track1.track_objects)
+ self.failUnless(len([effect for effect in self.track1.track_objects
+ if isinstance(effect, TrackEffect)]) == 1)
self.action_log.redo()
self.failIf(self.track_effect1 \
in self.timeline_object1.track_objects)
+ self.failIf(self.track_effect1 \
+ in self.track1.track_objects)
self.timeline.removeTimelineObject(self.timeline_object1, deep=True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]