[pitivi] test_integration.py: add TestMoveSources test case
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] test_integration.py: add TestMoveSources test case
- Date: Fri, 20 Nov 2009 07:47:53 +0000 (UTC)
commit 8b9015bbfb7ceb47b9b9ddb08400fcc4cf2c3ed8
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Wed Oct 28 14:20:18 2009 -0700
test_integration.py: add TestMoveSources test case
tests/test_integration.py | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_integration.py b/tests/test_integration.py
index 1bacdd2..c051c47 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -295,5 +295,22 @@ class TestTimeline(Base):
self._scrubCallback()
return False
+class TestMoveSources(TestTimeline):
+
+ def _finish(self):
+ self.context.finish()
+ self.assertEquals(self.timelineObject1.start, 10 * gst.SECOND)
+ self.assertEquals(self.timelineObject1.priority, 2)
+ self.assertEquals(self.timelineObject2.start, 11 * gst.SECOND)
+ self.assertEquals(self.timelineObject2.priority, 2)
+ self.ptv.current.dirty = False
+ self.ptv.shutdown()
+
+ def _interactiveTest(self):
+ timeline = self.ptv.current.timeline
+ self.context = MoveContext(timeline, self.timelineObject1,
+ set((self.timelineObject2,)))
+ self.scrubContext(self.context, 10 * gst.SECOND, 2, self._finish)
+
if __name__ == "__main__":
unittest.main()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]