class TestGdkEvent::TestSelection

Public Instance Methods

event() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 460
def event
  @selection
end
setup() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 456
def setup
  @selection = Gdk::EventSelection.new(:selection_clear)
end
test_property() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 491
def test_property
  assert_nothing_raised do
    @selection.property
  end
end
test_selection() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 479
def test_selection
  assert_nothing_raised do
    @selection.selection
  end
end
test_selection_clear() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 464
def test_selection_clear
  assert_equal("GDK_SELECTION_CLEAR",
               Gdk::EventSelection.new(:selection_clear).type.name)
end
test_selection_notify() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 469
def test_selection_notify
  assert_equal("GDK_SELECTION_NOTIFY",
               Gdk::EventSelection.new(:selection_notify).type.name)
end
test_selection_request() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 474
def test_selection_request
  assert_equal("GDK_SELECTION_REQUEST",
               Gdk::EventSelection.new(:selection_request).type.name)
end
test_target() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 485
def test_target
  assert_nothing_raised do
    @selection.target
  end
end
test_time() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 497
def test_time
  assert_kind_of(Integer, @selection.time)
end