From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- .../requestidlecallback/resources/post_name_on_load.html | 7 +++++++ .../tests/requestidlecallback/resources/ric-utils.js | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 testing/web-platform/tests/requestidlecallback/resources/post_name_on_load.html create mode 100644 testing/web-platform/tests/requestidlecallback/resources/ric-utils.js (limited to 'testing/web-platform/tests/requestidlecallback/resources') diff --git a/testing/web-platform/tests/requestidlecallback/resources/post_name_on_load.html b/testing/web-platform/tests/requestidlecallback/resources/post_name_on_load.html new file mode 100644 index 0000000000..4679a6e6ec --- /dev/null +++ b/testing/web-platform/tests/requestidlecallback/resources/post_name_on_load.html @@ -0,0 +1,7 @@ + + diff --git a/testing/web-platform/tests/requestidlecallback/resources/ric-utils.js b/testing/web-platform/tests/requestidlecallback/resources/ric-utils.js new file mode 100644 index 0000000000..d6d22767a9 --- /dev/null +++ b/testing/web-platform/tests/requestidlecallback/resources/ric-utils.js @@ -0,0 +1,14 @@ +function getDeadlineForNextIdleCallback() { + return new Promise( + resolve => + requestIdleCallback(deadline => resolve(deadline.timeRemaining())) + ); +} + +function getPendingRenderDeadlineCap() { + return 1000 / 60; +} + +function getRICRetryCount() { + return 10; +} \ No newline at end of file -- cgit v1.2.3