# File gstreamer/tests/misc.rb, line 109
    def test(tc)
        # Test the element as a Gst::Object
        super(tc)
        # Test clock
        tc.assert_bool requires_clock?
        tc.assert_bool b = provides_clock?
        clock.test(tc) if (clock and b)
        # Test pads
        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
        # Test flags
        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)
        # Test indexable
        tc.assert_bool indexable?
    end