blob: 3ccb35dc086c72d1b4c4d5b4c0d02c3596d85ea0 (
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 => win.busy(100)
.then(() => win.getThrottlingRate(100)))
.then(rate => {
assert_greater_than(rate, 10, "Timeout wasn't throttled");
}), "Throttle iframe when all budget has been used");
|