mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 06:58:49 +00:00
1b036156af
Using from gst import ges did not make much sense
23 lines
669 B
Python
23 lines
669 B
Python
import gst
|
|
|
|
from common import TestCase
|
|
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)
|
|
|