mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 08:25:33 +00:00
23 lines
575 B
Python
23 lines
575 B
Python
|
import glib
|
||
|
import gst
|
||
|
|
||
|
from common import TestCase
|
||
|
from gst import ges
|
||
|
|
||
|
class SimpleLayer(TestCase):
|
||
|
|
||
|
def testSimpleLayer(self):
|
||
|
lyr = ges.SimpleTimelineLayer()
|
||
|
tl = ges.Timeline()
|
||
|
src = ges.TimelineTestSource()
|
||
|
src2 = ges.TimelineTestSource()
|
||
|
|
||
|
lyr.set_timeline(tl)
|
||
|
|
||
|
assert (lyr.add_object(src, 0) == True)
|
||
|
assert (lyr.add_object(src2, 1) == True)
|
||
|
assert (lyr.nth(0) == src)
|
||
|
assert (lyr.move_object (src, 1) == True)
|
||
|
self.failIf(lyr.index(src) != 1)
|
||
|
assert (lyr.is_valid() == True)
|