Fixes rAF dependency during reftest
Merge pull request #1622 from yurydelendik/master

Fixes rAF dependency during reftest