event()
click to toggle source
setup()
click to toggle source
def setup
@motion = Gdk::EventMotion.new(:motion_notify)
end
test_request()
click to toggle source
def test_request
assert_nothing_raised do
@motion.request
end
end
test_state()
click to toggle source
def test_state
assert_not_nil(@motion.state)
end
test_time()
click to toggle source
def test_time
assert_kind_of(Integer, @motion.time)
end
test_x()
click to toggle source
def test_x
assert_kind_of(Float, @motion.x)
end
test_x_root()
click to toggle source
def test_x_root
assert_kind_of(Float, @motion.x_root)
end
test_y()
click to toggle source
def test_y
assert_kind_of(Float, @motion.y)
end
test_y_root()
click to toggle source
def test_y_root
assert_kind_of(Float, @motion.y_root)
end