event()
click to toggle source
setup()
click to toggle source
def setup
@crossing = Gdk::EventCrossing.new(:enter_notify)
end
test_detail()
click to toggle source
def test_detail
assert_not_nil(@crossing.detail)
end
test_enter_notify()
click to toggle source
def test_enter_notify
assert_equal("GDK_ENTER_NOTIFY",
Gdk::EventCrossing.new(:enter_notify).type.name)
end
test_leave_notify()
click to toggle source
def test_leave_notify
assert_equal("GDK_LEAVE_NOTIFY",
Gdk::EventCrossing.new(:leave_notify).type.name)
end
test_mode()
click to toggle source
def test_mode
assert_kind_of(Gdk::CrossingMode, @crossing.mode)
end
test_state()
click to toggle source
def test_state
assert_not_nil(@crossing.state)
end
test_time()
click to toggle source
def test_time
assert_kind_of(Integer, @crossing.time)
end
test_x()
click to toggle source
def test_x
assert_kind_of(Float, @crossing.x)
end
test_x_root()
click to toggle source
def test_x_root
assert_kind_of(Float, @crossing.x_root)
end
test_y()
click to toggle source
def test_y
assert_kind_of(Float, @crossing.y)
end
test_y_root()
click to toggle source
def test_y_root
assert_kind_of(Float, @crossing.y_root)
end