blob: 5d2c043d187fbe5d19e69879ff046c90e9097325 [file] [log] [blame]
<html>
<head>
<script type="text/javascript" src="resources/lookup-test.js"></script>
<script>
window.onload = function () {
var selection = window.getSelection();
var range = document.createRange();
range.selectNode(document.getElementById("select"));
selection.addRange(range);
runTest();
}
</script>
</head>
<body>
<!-- The hit word is outside the selection, so the selection should be ignored. -->
<div>Some <span class="lookupInCenter" data-name="outside selected text">text</span> to look up. <span id="select">This part is all selected, but the hit word is elsewhere so that doesn't matter.</span></div>
</body>
</html>