Added regression test for Chromium Issues 320724 and 322726.

Also fixed a bug in how webgl-test-utils.js was invoking requestAnimationFrame and cancelAnimationFrame.