Automatic intensity control in testing dark adaptation.