mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +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()
|
||||
|
||||
#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_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)
|
||||
|
||||
self.pipeline = pip
|
||||
|
|
|
@ -28,7 +28,7 @@ class Timeline(TestCase):
|
|||
|
||||
lyr.add_object(src, -1)
|
||||
lyr.add_object(tr, -1)
|
||||
lyr.add_object(src2, -1)
|
||||
assert (lyr.add_object(src2, -1) == True)
|
||||
|
||||
pip.add_timeline(tl)
|
||||
bus.set_sync_handler(self.bus_handler)
|
||||
|
|
Loading…
Reference in a new issue