blob: a408977b843bd89d772aec4db1bf853805c5e9af [file] [log] [blame] [edit]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test.js"></script>
<script src="../../resources/accessibility-helper.js"></script>
<script src="resources/accessibility-helper.js"></script>
</head>
<body>
<script>
if (window.accessibilityController) {
let output = "This tests setting caret browsing preference via AX API.\n\n";
var webArea = accessibilityController.rootElement.childAtIndex(0);
setCaretBrowsingEnabled(webArea, true);
output += expect("caretBrowsingEnabled(webArea)", "true");
setCaretBrowsingEnabled(webArea, false);
output += expect("caretBrowsingEnabled(webArea)", "false");
debug(output);
}
</script>
</body>
</html>