| <!DOCTYPE html> |
| <html> |
| <head> |
| <script src="../../resources/js-test.js"></script> |
| </head> |
| <body> |
| |
| <div contenteditable id="contenteditable"></div> |
| |
| <script> |
| let output = "This tests that we can retrieve resolved editing styles from the editable text area.\n\n"; |
| |
| if (window.accessibilityController) { |
| document.getElementById("contenteditable").focus(); |
| |
| textInputController.insertText("a"); |
| document.execCommand("italic", false) |
| document.execCommand("FontSize", false, 6) |
| |
| output += accessibilityController |
| .accessibleElementById("contenteditable") |
| .stringDescriptionOfAttributeValue("AXResolvedEditingStyles"); |
| |
| debug(output); |
| finishJSTest(); |
| } |
| </script> |
| </body> |
| </html> |