chromium/third_party/blink/web_tests/fullscreen/full-screen-orientation-change.html

<!DOCTYPE html>
<title>Test that full screen requests are allowed when inside an orientation change handler.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<span></span>
<script>

var element = document.querySelector('span');

async_test(function(t) {
  window.screen.orientation.onchange = t.step_func(function() {
    element.webkitRequestFullScreen();
  });

  document.onwebkitfullscreenerror = t.unreached_func("fullscreen is not accepted when orientation is changed");
  document.onwebkitfullscreenchange = t.step_func_done();

  testRunner.setMockScreenOrientation('landscape-primary');
});

</script>