[pitivi] test_integration.py: add simple ripple test case
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] test_integration.py: add simple ripple test case
- Date: Fri, 20 Nov 2009 07:48:43 +0000 (UTC)
commit 69a58301fbb6c7c4110643a15a9c4f339892477a
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Mon Nov 9 11:47:14 2009 -0800
test_integration.py: add simple ripple test case
tests/test_integration.py | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_integration.py b/tests/test_integration.py
index b8c8f6b..dcfbe1d 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -456,5 +456,41 @@ class TestBasic(Base):
self.runner.run()
+ def testRippleMoveSimple(self):
+
+ initial = Configuration()
+ initial.addSource('clip1', test1, {
+ "duration" : gst.SECOND,
+ "start" : gst.SECOND,
+ "priority" : 2})
+ initial.addSource('clip2', test1, {
+ "duration" : gst.SECOND,
+ "start" : 2 * gst.SECOND,
+ "priority" : 5})
+ final = Configuration()
+ final.addSource('clip1', test1, {
+ "duration" : gst.SECOND,
+ "start" : 11 * gst.SECOND,
+ "priority" : 0})
+ final.addSource('clip2', test1, {
+ "duration" : gst.SECOND,
+ "start" : 12 * gst.SECOND,
+ "priority" : 3})
+
+ def timelineConfigured(runner):
+ initial.matches(self.runner)
+ context = MoveContext(self.runner.timeline,
+ self.runner.video1.clip1, set())
+ context.editTo(11 * gst.SECOND, 0)
+ context.setMode(context.RIPPLE)
+ context.finish()
+ final.matches(self.runner)
+ gobject.idle_add(self.ptv.shutdown)
+
+ self.runner.connect("timeline-configured", timelineConfigured)
+
+ self.runner.loadConfiguration(initial)
+ self.runner.run()
+
if __name__ == "__main__":
unittest.main()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]