summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/mozilla/tests/dom/throttling/throttling-3.window.js
blob: d1c38bcc12672da230171603c89b5d58e5d048a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
// META: script=resources/throttling.js

setup(() => waitForLoad()
  .then(() => "setup done"));

promise_test(t => inFrame(t)
  .then(win => busy(100)
    .then(() => win.getThrottlingRate(100)))
  .then(rate => {
    assert_less_than(rate, 10, "Timeout was throttled");
  }), "Don't throttle iframe when all budget in parent has been used");