mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
23 lines
678 B
Python
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)
|
|
|