Sha256: 47c9d2108ab948de53b2dc842ed1d2905e753c0784a2ad5ad0753aee6d7547df

Contents?: true

Size: 786 Bytes

Versions: 116

Compression:

Stored size: 786 Bytes

Contents

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

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

  def test_set_composited
    only_gtk_version(2, 12, 0)
    assert_nothing_raised do
      @window.composited = false
    end
  end

  def test_set_opacity
    only_gtk_version(2, 12, 0)
    assert_nothing_raised do
      @window.opacity = 0.5
    end
  end

  def test_set_startup_id
    only_gtk_version(2, 12, 0)
    assert_nothing_raised do
      @window.startup_id = "startup-id"
      @window.startup_id = nil
    end
  end

  def test_cursor_accessors
    only_gtk_version(2, 18, 0)
    arrow_type = Gdk::Cursor::Type::ARROW
    cursor = Gdk::Cursor.new(arrow_type)
    @window.cursor = cursor
    assert_kind_of(Gdk::Cursor, @window.cursor)
  end
end

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
gtk2-3.0.0-x86-mingw32 test/test_gdk_window.rb
gtk2-3.0.0-x64-mingw32 test/test_gdk_window.rb
gtk2-2.2.5-x64-mingw32 test/test_gdk_window.rb
gtk2-2.2.5-x86-mingw32 test/test_gdk_window.rb
gtk2-2.2.5 test/test_gdk_window.rb
gtk2-2.2.4-x64-mingw32 test/test_gdk_window.rb
gtk2-2.2.4-x86-mingw32 test/test_gdk_window.rb
gtk2-2.2.4 test/test_gdk_window.rb
gtk2-2.2.3-x86-mingw32 test/test_gdk_window.rb
gtk2-2.2.3 test/test_gdk_window.rb
gtk2-2.2.2-x86-mingw32 test/test_gdk_window.rb
gtk2-2.2.2 test/test_gdk_window.rb
gtk2-2.2.1-x86-mingw32 test/test_gdk_window.rb
gtk2-2.2.1 test/test_gdk_window.rb
gtk2-2.2.0-x86-mingw32 test/test_gdk_window.rb
gtk2-2.2.0 test/test_gdk_window.rb