This repository has been archived on 2021-09-15 . You can view files and clone it, but cannot push or open issues or pull requests.
18 lines
530 B
Ruby
18 lines
530 B
Ruby
class TestSelectionData < Test::Unit::TestCase
|
|||
def setup
|
|||
@window = Gtk::Invisible.new.window
|
|||
end
|
|||
|
|||
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
|
|||
end
|