[pitivi] test_integration.py: add simple test case for ripple trim start
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] test_integration.py: add simple test case for ripple trim start
- Date: Fri, 20 Nov 2009 07:48:53 +0000 (UTC)
commit e5cb718dd310c66b13a733f7154bea8e67625edd
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Tue Nov 10 11:09:54 2009 -0800
test_integration.py: add simple test case for ripple trim start
tests/test_integration.py | 53 ++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 52 insertions(+), 1 deletions(-)
---
diff --git a/tests/test_integration.py b/tests/test_integration.py
index c381258..273a775 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -492,7 +492,58 @@ class TestBasic(Base):
self.runner.loadConfiguration(initial)
self.runner.run()
-class TestRippleComplex(Base):
+ def testRippleTrimStartSimple(self):
+ initial = Configuration()
+ initial.addSource('clip1', test1,
+ {
+ "start" : gst.SECOND,
+ "duration" : gst.SECOND,
+ })
+ initial.addSource('clip2', test1,
+ {
+ "start" : 2 * gst.SECOND,
+ "duration" : gst.SECOND,
+ })
+ initial.addSource('clip3', test1,
+ {
+ "start" : 5 * gst.SECOND,
+ "duration" : 10 * gst.SECOND,
+ })
+
+ final = Configuration()
+ final.addSource('clip1', test1,
+ {
+ "start" : 6 * gst.SECOND,
+ "duration": gst.SECOND,
+ })
+ final.addSource('clip2', test1,
+ {
+ "start" : 7 * gst.SECOND,
+ "duration" : gst.SECOND,
+ })
+ final.addSource('clip3', test1,
+ {
+ "start" : 10 * gst.SECOND,
+ "duration" : 5 * gst.SECOND,
+ })
+
+ self.runner.loadConfiguration(initial)
+ def timelineConfigured(runner):
+ context = TrimStartContext(self.runner.timeline,
+ self.runner.video1.clip3, set())
+ context.setMode(context.RIPPLE)
+ brush.scrub(context, 10 * gst.SECOND, 0)
+ self.runner.connect("timeline-configured", timelineConfigured)
+
+ def scrubDone(brush):
+ final.matches(self.runner)
+ gobject.idle_add(self.ptv.shutdown)
+
+ brush = Brush(self.runner)
+ brush.connect("scrub-done", scrubDone)
+ self.runner.run()
+
+class TestRippleExtensive(Base):
"""Test suite for ripple editing minutia and corner-cases"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]