Home | History | Annotate | Download | only in ManualTests
      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4     <script type="text/javascript">
      5         function log(s)
      6         {
      7             var output = document.getElementById('output');
      8             output.innerHTML += s + "<br>";
      9         }
     10         
     11         function doTest()
     12         {
     13             window.setInterval(function() {
     14                 
     15                 var screen = window.screen;
     16                 log('screen availLeft: ' + screen.availLeft + ' availTop: ' + screen.availTop);
     17                 
     18             }, 1000);
     19         }
     20         window.addEventListener('load', doTest, false);
     21     </script>
     22 </head>
     23 <body>
     24     <p>On a two-monitor system, configure the menu bar to be on the right screen. Then drag this window between screens. When on the left screen, screen.availLeft should be negative.</p>
     25     <div id="output"></div>
     26 </body>
     27 </html>
     28