blob: 8e90091a1e6900be7599c8f7055f67797f61d052 [file] [log] [blame]
<html>
<body>
<div>
<p id="text">
This tests that the methods that set selection colors for Linux work correctly.
</p>
<p>(All the text in the above sentence should be highlighted red with green text)</p>
</div>
<script>
if (window.testRunner) {
testRunner.forceRedSelectionColors()
}
var div = document.getElementById("text");
var sel = window.getSelection();
var range = document.createRange();
range.selectNode(div);
sel.addRange(range);
</script>
</body>
</html>