Sha256: 3f28e44a4d87d4b2f4c52218f3348e96481c762bb0057a009f30abf0c82206c7

Contents?: true

Size: 554 Bytes

Versions: 18

Compression:

Stored size: 554 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, :input_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.override_color(:normal, nil)
    end

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
gtk3-2.2.5-x64-mingw32 test/test_gtk_widget.rb
gtk3-2.2.5-x86-mingw32 test/test_gtk_widget.rb
gtk3-2.2.5 test/test_gtk_widget.rb
gtk3-2.2.4-x64-mingw32 test/test_gtk_widget.rb
gtk3-2.2.4-x86-mingw32 test/test_gtk_widget.rb
gtk3-2.2.4 test/test_gtk_widget.rb
gtk3-2.2.3-x86-mingw32 test/test_gtk_widget.rb
gtk3-2.2.3 test/test_gtk_widget.rb
gtk3-2.2.2-x86-mingw32 test/test_gtk_widget.rb
gtk3-2.2.2 test/test_gtk_widget.rb
gtk3-2.2.1-x86-mingw32 test/test_gtk_widget.rb
gtk3-2.2.1 test/test_gtk_widget.rb
gtk3-2.2.0-x86-mingw32 test/test_gtk_widget.rb
gtk3-2.2.0 test/test_gtk_widget.rb
gtk3-2.1.0-x86-mingw32 test/test_gtk_widget.rb
gtk3-2.1.0 test/test_gtk_widget.rb
gtk3-2.0.3-x86-mingw32 test/test_gtk_widget.rb
gtk3-2.0.3 test/test_gtk_widget.rb