# File gstreamer/tests/misc.rb, line 330 def test(tc) # Test name tc.assert_instance_of(String, name) # Test type id tc.assert_instance_of(Fixnum, type_id) # Test fixed tc.assert_bool fixed? # Test properties each_property do |name, value, is_fixed| tc.assert_instance_of(String, name) tc.assert_bool is_fixed tc.assert has_property?(name) tc.assert_equal(has_fixed_property?(name), is_fixed) end # These tests are currently disabled to avoid critical messages. # But they work ;-) #tc.assert !has_property?("does_not_exist") #tc.assert !has_fixed_property?("does_not_exist_too") end