Quasilinear diffusion of protons by equatorial magnetosonic waves at quasi-perpendicular propagation: Comparison with the test-particle approach