pyges : Add actual testing to the testcases

This commit is contained in:
Thibault Saunier 2011-06-07 18:09:35 -04:00
parent b0114a79c4
commit 843df22ec0
2 changed files with 6 additions and 4 deletions

View file

@ -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

View file

@ -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)