chromium/content/test/data/screen_orientation/screen_orientation_screenorientationchange.html

<!DOCTYPE HTML>
<html>
<head>
</head>
<script>
  screen.orientation.onchange = function() {
    document.location.hash = '#' + screen.orientation.angle;
  };

  document.location.hash = '#ready';
</script>
<body>
  <div>Starting...</div>
</body>
</html>