Visual field testing device with function of measuring and correcting patient refractive error is presented. One embodiment of the device according to the invention involves DLP technology for optotype and stimulus generation and a electrically tunable lens for refractive error correction. Alternative designs for measuring and providing refractive error correction are described. The refractive error can be measured and corrected manually or automatically with the device.