https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 7d1437d93394587f1fa752d1a68f529f9f04d99f authored by Anne van Kesteren on 27 November 2018, 15:40:44 UTC
WIP: figuring out Origin outside of CORS
Tip revision: 7d1437d
WorkerGlobalScope_requestAnimationFrame.tentative.worker.js
importScripts("/resources/testharness.js");

async_test(t => {
  const res = [];
  requestAnimationFrame(t.step_func(dt => {
    res.push(dt);
    requestAnimationFrame(t.step_func(dt => {
      res.push(dt);
      requestAnimationFrame(t.step_func_done(dt => {
        res.push(dt);
        assert_equals(res.length, 3);
        assert_less_than(res[0], res[1]);
        assert_less_than(res[1], res[2]);
      }));
    }));
  }));
});

done();
back to top