2011-06-10 14:58:55 +00:00
|
|
|
import gst
|
|
|
|
|
|
|
|
from common import TestCase
|
2011-08-11 12:27:31 +00:00
|
|
|
import ges
|
2011-06-10 14:58:55 +00:00
|
|
|
from time import sleep
|
|
|
|
|
|
|
|
class ParseLaunchEffect(TestCase):
|
|
|
|
|
|
|
|
def testParseLaunchEffect(self):
|
|
|
|
tl = ges.Timeline()
|
|
|
|
tck = ges.track_video_raw_new()
|
|
|
|
lyr = ges.TimelineLayer()
|
|
|
|
efct = ges.TimelineParseLaunchEffect("agingtv", None)
|
|
|
|
tck_efct = ges.TrackParseLaunchEffect("agingtv")
|
|
|
|
|
|
|
|
tl.add_layer(lyr)
|
|
|
|
efct.add_track_object(tck_efct)
|
|
|
|
lyr.add_object(efct)
|
|
|
|
tck.set_timeline(tl)
|
|
|
|
tck.add_object(tck_efct)
|
|
|
|
tck_efct.set_child_property("GstAgingTV::scratch-lines", 17)
|
|
|
|
self.failIf(tck_efct.get_child_property("GstAgingTV::scratch-lines") != 17)
|
|
|
|
self.failIf(len(tck_efct.list_children_properties()) != 6)
|
|
|
|
self.failIf (tck_efct.lookup_child ("scratch-lines") == None)
|