class TestGtkWidget

Public Instance Methods

setup() click to toggle source
# File gtk2/test/test_gtk_widget.rb, line 4
def setup
  @widget = Gtk::Invisible.new
end
test_modify_color_component_with_nil_color() click to toggle source
# File gtk2/test/test_gtk_widget.rb, line 15
def test_modify_color_component_with_nil_color
  assert_nothing_raised do
    @widget.modify_base(:normal, nil)
  end

  assert_nothing_raised do
    @widget.modify_text(:normal, nil)
  end

  assert_nothing_raised do
    @widget.modify_fg(:normal, nil)
  end

  assert_nothing_raised do
    @widget.modify_bg(:normal, nil)
  end
end
test_set_window() click to toggle source
# File gtk2/test/test_gtk_widget.rb, line 8
def test_set_window
  attrs = Gdk::WindowAttr.new(100, 100, :only, :temp)
  window = Gdk::Window.new(nil, attrs, 0)
  @widget.window = window
  assert_equal(window, @widget.window)
end