gstreamer/bindings/python/testsuite/test_timeline_title_source.py
2011-08-11 14:40:10 +02:00

23 lines
678 B
Python

import gst
from common import TestCase
from gst import ges
class TimelineTitleSource(TestCase):
def testTimelineTitleSource(self):
src = ges.TimelineTitleSource()
lyr = ges.TimelineLayer()
tck = ges.track_video_raw_new()
src.set_text("Foo")
self.failIf (src.get_text() != "Foo")
src.set_font_desc ("Arial")
self.failIf (src.get_font_desc() != "Arial")
src.set_valignment("top")
assert (src.get_valignment().value_name == "top")
src.set_halignment("left")
assert (src.get_halignment().value_name == "left")
src.set_mute(True)
assert (src.is_muted() == True)