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

Replace setTimeout by mozRequestAnimationFrame seems to make the test more
reliable.
Merge pull request #9044 from julienw/859376-fix-panning-test

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