mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 05:26:23 +00:00
pyges : Add actual testing to the testcases
This commit is contained in:
parent
b0114a79c4
commit
843df22ec0
2 changed files with 6 additions and 4 deletions
|
@ -16,12 +16,14 @@ class Timeline(TestCase):
|
||||||
self.mainloop = glib.MainLoop()
|
self.mainloop = glib.MainLoop()
|
||||||
|
|
||||||
#Let's add the layer to the timeline, and the source to the layer.
|
#Let's add the layer to the timeline, and the source to the layer.
|
||||||
tl.add_layer(lyr)
|
|
||||||
src.set_duration(long(gst.SECOND * 10))
|
src.set_duration(long(gst.SECOND * 10))
|
||||||
src.set_vpattern("Random (television snow)")
|
src.set_vpattern("Random (television snow)")
|
||||||
lyr.add_object(src, -1)
|
|
||||||
|
|
||||||
pip.add_timeline(tl)
|
assert (tl.add_layer(lyr) == True)
|
||||||
|
assert (lyr.add_object(src, -1) == True)
|
||||||
|
self.failIf(len(src.get_track_objects()) != 2)
|
||||||
|
assert (pip.add_timeline(tl) == True)
|
||||||
|
|
||||||
bus.set_sync_handler(self.bus_handler)
|
bus.set_sync_handler(self.bus_handler)
|
||||||
|
|
||||||
self.pipeline = pip
|
self.pipeline = pip
|
||||||
|
|
|
@ -28,7 +28,7 @@ class Timeline(TestCase):
|
||||||
|
|
||||||
lyr.add_object(src, -1)
|
lyr.add_object(src, -1)
|
||||||
lyr.add_object(tr, -1)
|
lyr.add_object(tr, -1)
|
||||||
lyr.add_object(src2, -1)
|
assert (lyr.add_object(src2, -1) == True)
|
||||||
|
|
||||||
pip.add_timeline(tl)
|
pip.add_timeline(tl)
|
||||||
bus.set_sync_handler(self.bus_handler)
|
bus.set_sync_handler(self.bus_handler)
|
||||||
|
|
Loading…
Reference in a new issue