diff options
Diffstat (limited to 'WebCore/manual-tests/screen-availLeft.html')
-rw-r--r-- | WebCore/manual-tests/screen-availLeft.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/WebCore/manual-tests/screen-availLeft.html b/WebCore/manual-tests/screen-availLeft.html new file mode 100644 index 0000000..e8d9f39 --- /dev/null +++ b/WebCore/manual-tests/screen-availLeft.html @@ -0,0 +1,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> |