summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/screen-availLeft.html
blob: e8d9f390d589b281911e9fe0c586b160aed7560e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
<head>
    <script type="text/javascript">
        function log(s)
        {
            var output = document.getElementById('output');
            output.innerHTML += s + "<br>";
        }
        
        function doTest()
        {
            window.setInterval(function() {
                
                var screen = window.screen;
                log('screen availLeft: ' + screen.availLeft + ' availTop: ' + screen.availTop);
                
            }, 1000);
        }
        window.addEventListener('load', doTest, false);
    </script>
</head>
<body>
    <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>
    <div id="output"></div>
</body>
</html>