async function shimRequestIdleCallbackOnNewDocument(driver, settings) {
  await driver.executionContext.evaluateOnNewDocument(pageFunctions.wrapRequestIdleCallback, {
    args: [settings.throttling.cpuSlowdownMultiplier],
  });
}
Use a RequestIdleCallback shim for tests run with simulated throttling, so that the deadline can be used without
a penalty.
@param {LH.Gatherer.Driver} driver
@param {LH.Config.Settings} settings
@return {Promise<void>}