blob: e0c29576663a47909893552d6d64a2e61d9d4946 [file]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/accessibility-helper.js"></script>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<br><br><br>
<div>By ISABEL KERSHNER and GRAHAM BOWLEY&nbsp;<span class="timestamp">3:23 PM ET</span></div>
<a href="nowhere" id="message">
Embroiled in a high-profile corruption investigation, Israels prime minister says he will resign as soon as his party chooses a new leader in September elections.
</a>
<script>
if (window.accessibilityController) {
document.getElementById("message").focus();
let output = "";
var textChild = accessibilityController.focusedElement.childAtIndex(0);
output += "----------------------\n";
output += textChild.allAttributes() + "\n";
output += "----------------------\n";
output += textChild.parameterizedAttributeNames() + "\n";
output += "----------------------\n";
output += expectRectWithVariance("textChild.boundsForRange(6, 10)", -1, -1, 60, 18, 1);
output += expectRectWithVariance("textChild.boundsForRange(1, 35)", -1, -1, 221, 18, 1);
output += expectRectWithVariance("textChild.boundsForRange(0, 1)", -1, -1, 11, 18, 2);
output += expectRectWithVariance("textChild.boundsForRange(0, 100000)", -1, -1, 731, 36, 0);
output += expectRectWithVariance("textChild.boundsForRange(5, 0)", -1, -1, 2, 18, 1);
debugEscaped(output);
}
</script>
</body>
</html>