diff options
Diffstat (limited to 'testing/web-platform/tests/workers/support/worker-request-animation-frame.js')
-rw-r--r-- | testing/web-platform/tests/workers/support/worker-request-animation-frame.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/support/worker-request-animation-frame.js b/testing/web-platform/tests/workers/support/worker-request-animation-frame.js new file mode 100644 index 0000000000..b73781244e --- /dev/null +++ b/testing/web-platform/tests/workers/support/worker-request-animation-frame.js @@ -0,0 +1,6 @@ +self.onmessage = function(event) { + requestAnimationFrame(time => { + postMessage(time); + self.close(); + }); +} |