Systems for visual field testing are described. One example system for testing the visual function of a patient includes a display, optics, a variable focus lens, a response detection system, and a processor. The display generates visual stimuli for the visual function testing of the patient. The optics image the visual stimuli onto the retina of the patients eye. The variable focus lens is placed at a plane conjugate to the pupil of the eye for correcting the refractive error of the eye without impacting a field of view of the system. The response detection system collects data on the patients perception of the visual stimuli. The processor receives a refractive error value of the patient and in response adjusts the variable focus lens to compensate for the refractive error of the patient.