blob: 8cd106690e057f313c3006de64cca6c0789e425b [file] [log] [blame]
<!doctype html>
<!--
Tests that WebVR continues to work (rAFs continue to fire) after re-entering
presentation from the VR browser.
-->
<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/webvr_boilerplate.js"></script>
<script>
var t = async_test("rAFs continue to fire after presentation re-entry");
function stepVerifyFirstPresent() {
onPresentingAnimationFrameCallback = () => {
onPresentingAnimationFrameCallback = null;
finishJavaScriptStep();
};
}
function stepVerifyMagicWindow() {
onMagicWindowAnimationFrameCallback = () => {
onMagicWindowAnimationFrameCallback = null;
finishJavaScriptStep();
};
}
function stepVerifySecondPresent() {
onPresentingAnimationFrameCallback = () => {
t.done();
};
}
</script>
</body>
</html>