blob: 6ff343792dc6cd1dc9f309995ea0e5c907769bec [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body id="body">
<div contenteditable id=div></div>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that we can retrieve resolved editing styles from the editable text area.");
if (window.accessibilityController) {
window.jsTestIsAsync = true;
var div = document.getElementById("div");
div.focus();
textInputController.insertText("a");
document.execCommand("italic", false)
document.execCommand("FontSize", false, 6)
var axDiv = accessibilityController.accessibleElementById("div");
axDiv.attributeValueAsync("AXResolvedEditingStyles", function(value) {
debug(value);
finishJSTest();
});
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>