Debian Codegraph @

testing/web-platform/mozilla/tests/dom/throttling/throttling-4.window.js

raw
1 // META: script=resources/throttling.js
2
3 setup(() => waitForLoad()
4 .then(() => "setup done"));
5
6 promise_test(t => inFrame(t)
7 .then(win => win.busy(100))
8 .then(() => getThrottlingRate(100))
9 .then(rate => {
10 assert_less_than(rate, 10, "Timeout was throttled");
11 }), "Don't throttle parent when all budget in iframe has been used");