Parent

Methods

Class/Module Index [+]

Quicksearch

Gst::Type

Public Instance Methods

test(tc) click to toggle source
# File gstreamer/tests/misc.rb, line 351
def test(tc)
    # Test id
    tc.assert_instance_of(Fixnum, id)
    # Test mime (may be nil)
    tc.assert_instance_of(String, mime) if mime
    # Test exts (may be nil)
    tc.assert_instance_of(String, exts) if exts
    # Test Gst::Type find methods            
    a = [ Gst::Type.find_by_id(id), Gst::Type.find_by_mime(mime) ] 
    a.each do |t| 
        tc.assert_instance_of(Gst::Type, t)
        tc.assert_equal(self, t)
    end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.