class TestGtkStyleProperties::TestGet

Public Instance Methods

test_eixstent() click to toggle source
# File gtk3/test/test_gtk_style_properties.rb, line 23
def test_eixstent
  key = "border-radius"
  state = :normal
  value = 29

  g_value = GLib::Value.new(GLib::Type::INT, value)
  # TODO: support direct Ruby object use
  @properties.set_property(key, state, g_value)
  assert_equal(value, @properties.get_property(key, state))
end
test_noneixstent() click to toggle source
# File gtk3/test/test_gtk_style_properties.rb, line 34
def test_noneixstent
  assert_nil(@properties.get_property("nonexistent", :normal))
end