blob: b82e3d6fc372b8f0ab81b84f81d01c84b4a2ab50 [file] [log] [blame]
Test that requestAnimationFrame gets the right throttling in an iframe when inserted into a document.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS internals.requestAnimationFrameThrottlingReasons() is "[Unthrottled]"
PASS internals.requestAnimationFrameInterval is 0.015
PASS frame.contentWindow.internals.requestAnimationFrameThrottlingReasons() is "[Unthrottled]"
PASS frame.contentWindow.internals.requestAnimationFrameInterval is 0.015
internals.setLowPowerModeEnabled(true);
PASS internals.requestAnimationFrameThrottlingReasons() is "LowPowerMode"
PASS internals.requestAnimationFrameInterval is 0.030
PASS frame.contentWindow.internals.requestAnimationFrameThrottlingReasons() is "LowPowerMode"
PASS frame.contentWindow.internals.requestAnimationFrameInterval is 0.030
frame.remove()
document.body.appendChild(frame)
PASS internals.requestAnimationFrameThrottlingReasons() is "LowPowerMode"
PASS internals.requestAnimationFrameInterval is 0.030
PASS frame.contentWindow.internals.requestAnimationFrameThrottlingReasons() is "LowPowerMode"
PASS frame.contentWindow.internals.requestAnimationFrameInterval is 0.030
frame.remove()
internals.setLowPowerModeEnabled(false);
PASS internals.requestAnimationFrameThrottlingReasons() is "[Unthrottled]"
PASS internals.requestAnimationFrameInterval is 0.015
document.body.appendChild(frame)
PASS frame.contentWindow.internals.requestAnimationFrameThrottlingReasons() is "[Unthrottled]"
PASS frame.contentWindow.internals.requestAnimationFrameInterval is 0.015
PASS successfullyParsed is true
TEST COMPLETE