From f62dc00f8f5182d25bdd6cea50be80dbcc990aa9 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Mon, 29 Mar 2021 14:56:07 -0700 Subject: [PATCH] [Squash] nit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michaƫl Zasso --- test/parallel/test-requestanimationframe.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/parallel/test-requestanimationframe.js b/test/parallel/test-requestanimationframe.js index a0ea23ce8654a5..562087292c0c9d 100644 --- a/test/parallel/test-requestanimationframe.js +++ b/test/parallel/test-requestanimationframe.js @@ -3,6 +3,12 @@ const common = require('../common'); const { strictEqual } = require('assert'); +let called = false; + requestAnimationFrame(common.mustCall((ts) => { + called = true; strictEqual(typeof ts, 'number'); })); + +// Make sure the callback is called asynchronously. +strictEqual(called, false);