class TestGdkWindow

Public Instance Methods

setup() click to toggle source
# File gtk2/test/test_gdk_window.rb, line 4
def setup
  @window = Gtk::Invisible.new.window
end
test_cursor_accessors() click to toggle source
# File gtk2/test/test_gdk_window.rb, line 30
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
test_set_composited() click to toggle source
# File gtk2/test/test_gdk_window.rb, line 8
def test_set_composited
  only_gtk_version(2, 12, 0)
  assert_nothing_raised do
    @window.composited = false
  end
end
test_set_opacity() click to toggle source
# File gtk2/test/test_gdk_window.rb, line 15
def test_set_opacity
  only_gtk_version(2, 12, 0)
  assert_nothing_raised do
    @window.opacity = 0.5
  end
end
test_set_startup_id() click to toggle source
# File gtk2/test/test_gdk_window.rb, line 22
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