https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 27f443364c7bc6ebbd569f8d6e8065992b66484c authored by Reza.Zakerinasab on 06 December 2018, 19:35:02 UTC
Check canvas color correction pipeline to be HDR
Tip revision: 27f4433
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