class TestSelectionData

Public Instance Methods

setup() click to toggle source
# File gtk2/test/test_gdk_selection_data.rb, line 2
def setup
  @window = Gtk::Invisible.new.window
end
test_type_integer() click to toggle source
# File gtk2/test/test_gdk_selection_data.rb, line 6
def test_type_integer
  name = "ID"
  value = 10
  Gdk::Property.change(@window, name,
                       Gdk::Selection::TYPE_INTEGER,
                       :replace, value)
  assert_equal([Gdk::Selection::TYPE_INTEGER, [value]],
               Gdk::Property.get(@window, name,
                                 Gdk::Selection::TYPE_INTEGER,
                                 false)[0, 2])
end