https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9cef0de514b1aa162f3b7191ea395476d06840a1 authored by Yoav Weiss on 20 November 2018, 21:30:06 UTC
Align resource timing buffer full processing to spec PR 163
Tip revision: 9cef0de
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