Sha256: c878b51768a3a13bfc4ff0a069410eb1b6446c8b24337e59ecaff413a6f7a2b7

Contents?: true

Size: 683 Bytes

Versions: 207

Compression:

Stored size: 683 Bytes

Contents

class TestGtkWidget < Test::Unit::TestCase
  include GtkTestUtils

  def setup
    @widget = Gtk::Invisible.new
  end

  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

  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
end

Version data entries

207 entries across 207 versions & 2 rubygems

Version Path
gtk2-3.4.3 test/test_gtk_widget.rb
gtk2-3.4.2 test/test_gtk_widget.rb
gtk2-3.4.1 test/test_gtk_widget.rb
gtk2-3.4.0 test/test_gtk_widget.rb
gtk2-3.3.9 test/test_gtk_widget.rb
gtk2-3.3.8 test/test_gtk_widget.rb
gtk2-3.3.7 test/test_gtk_widget.rb
gtk2-3.3.6 test/test_gtk_widget.rb
gtk2-3.3.5 test/test_gtk_widget.rb
gtk2-3.3.4 test/test_gtk_widget.rb
gtk2-3.3.3 test/test_gtk_widget.rb
gtk2-3.3.2 test/test_gtk_widget.rb
gtk2-3.3.1 test/test_gtk_widget.rb
gtk2-3.3.0 test/test_gtk_widget.rb
gtk2-3.2.9-x64-mingw32 test/test_gtk_widget.rb
gtk2-3.2.9-x86-mingw32 test/test_gtk_widget.rb
gtk2-3.2.9 test/test_gtk_widget.rb
gtk2-3.2.8-x64-mingw32 test/test_gtk_widget.rb
gtk2-3.2.8-x86-mingw32 test/test_gtk_widget.rb
gtk2-3.2.8 test/test_gtk_widget.rb