chromium/chrome/test/data/xr/e2e_test_files/html/webxr_test_visibility_changed.html

<!doctype html>
<!--
Tests WebXR Using OpenXR End Session correctly when XR_SESSION_STATE_STOPPING
event received.
-->
<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>
      function currentImmersiveSession() {
        return sessionInfos[sessionTypes.IMMERSIVE].currentSession;
      }

      function isVisibilityEqualTo(expected) {
        return currentImmersiveSession().visibilityState == expected;
      }
    </script>
  </body>
</html>