def test(tc)
super(tc)
tc.assert_bool requires_clock?
tc.assert_bool b = provides_clock?
clock.test(tc) if (clock and b)
i = 0
each_pad { |pad| pad.test(tc); i += 1 }
tc.assert_instance_of(Array, a = pads)
tc.assert_equal(a.size, i)
a.each do |pad|
pad.test(tc)
tc.assert_instance_of(Gst::Pad, pad2 = get_pad(pad.name))
pad2.test(tc)
tc.assert_equal(pad, pad2)
end
flags = {
complex? => Gst::Element::FLAG_COMPLEX,
decoupled? => Gst::Element::FLAG_DECOUPLED,
thread_suggested? => Gst::Element::FLAG_THEAD_SUGGESTED,
has_infinite_loop? => Gst::Element::FLAG_INFINITE_LOOP,
has_new_loopfunc? => Gst::Element::FLAG_NEW_LOOPFUNC,
event_aware? => Gst::Element::FLAG_EVENT_AWARE,
use_threadsafe_properties? => Gst::Element::FLAG_USE_THREADSAFE_PROPERTIES
}
test_flags(tc, flags)
tc.assert_bool indexable?
end