1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17

content / test / data / screen_orientation / screen_orientation_lock_disabled.html [blame]

<!DOCTYPE HTML>
<html>
<head>
</head>
<script>
function run() {
  screen.orientation.lock('portrait-secondary').then(function() {
    document.location.hash = '#success';
  }, function(e) {
    document.location.hash = '#' + e.name;
  });
}
</script>
<body>
  <div>Starting...</div>
</body>
</html>