<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> |