event()
click to toggle source
setup()
click to toggle source
def setup
@selection = Gdk::EventSelection.new(:selection_clear)
end
test_property()
click to toggle source
def test_property
assert_nothing_raised do
@selection.property
end
end
test_selection()
click to toggle source
def test_selection
assert_nothing_raised do
@selection.selection
end
end
test_selection_clear()
click to toggle source
def test_selection_clear
assert_equal("GDK_SELECTION_CLEAR",
Gdk::EventSelection.new(:selection_clear).type.name)
end
test_selection_notify()
click to toggle source
def test_selection_notify
assert_equal("GDK_SELECTION_NOTIFY",
Gdk::EventSelection.new(:selection_notify).type.name)
end
test_selection_request()
click to toggle source
def test_selection_request
assert_equal("GDK_SELECTION_REQUEST",
Gdk::EventSelection.new(:selection_request).type.name)
end
test_target()
click to toggle source
def test_target
assert_nothing_raised do
@selection.target
end
end
test_time()
click to toggle source
def test_time
assert_kind_of(Integer, @selection.time)
end