| <p>This tests that clicking on a scrollbar in a frame does not clear selections in the frame.</p> |
| <iframe id="fr" src="resources/mousedown-in-subframe-scrollbar.html"></iframe> |
| var iframe = document.getElementById("fr"); |
| iframe.contentWindow.focusAndSelectText(); |
| if (window.eventSender) { |
| var x = iframe.offsetLeft + iframe.offsetWidth; |
| var y = iframe.offsetTop; |
| eventSender.mouseMoveTo(x - 5, y + 5); |
| eventSender.mouseMoveTo(x - 5, y + 20); |
| document.getElementById("results").innerText = "Selection: " + |
| iframe.contentWindow.getSelection(); |