blob: 654f755f60235c37808d2284f0bd8d16d9e0d0e0 [file] [log] [blame]
<!doctype html>
<!--
Tests that window.requestAnimationFrame continues to fire while in a WebXR
immersive session on Windows/desktop
-->
<html>
<head>
<link rel="stylesheet" type="text/css" href="../resources/webxr_e2e.css">
</head>
<body>
<canvas id="webgl-canvas"></canvas>
<script src="../../../../../../third_party/blink/web_tests/resources/testharness.js"></script>
<script src="../resources/webxr_e2e.js"></script>
<script src="../resources/webxr_boilerplate.js"></script>
<script>
var t = async_test("window.rAF keeps firing while in immersive session");
function stepVerifyBeforePresent() {
window.requestAnimationFrame( () => {
finishJavaScriptStep();
});
}
function stepVerifyDuringPresent() {
window.requestAnimationFrame( () => {
finishJavaScriptStep();
});
}
function stepVerifyAfterPresent() {
window.requestAnimationFrame( () => {
t.done();
});
}
</script>
</body>
</html>