The medical specialty that is concerned with testing visual acuteness is optometry.