class TestGdkEvent::TestProximity

Public Instance Methods

event() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 569
def event
  @proximity
end
setup() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 565
def setup
  @proximity = Gdk::EventProximity.new(:proximity_in)
end
test_device() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 587
def test_device
  assert_nothing_raised do
    @proximity.device
  end
end
test_proximity_in() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 573
def test_proximity_in
  assert_equal("GDK_PROXIMITY_IN",
               Gdk::EventProximity.new(:proximity_in).type.name)
end
test_proximity_out() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 578
def test_proximity_out
  assert_equal("GDK_PROXIMITY_OUT",
               Gdk::EventProximity.new(:proximity_out).type.name)
end
test_time() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 583
def test_time
  assert_kind_of(Integer, @proximity.time)
end