Bug 859376 - [homescreen] fix unreliable test about panning r=crdlc

Replace setTimeout by mozRequestAnimationFrame seems to make the test more
reliable.