| <script src="../resources/js-test.js"></script> |
| Lorem ipsum dolor sit amet,<br> |
| consectetur adipiscing elit.<br> |
| Aliquam faucibus diam sit amet nunc vestibulum auctor. |
| <p style="max-width:150px;"> |
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam faucibus diam sit amet nunc vestibulum auctor. |
| description("This test checks that linebreaks explicitly set by the author are properly exposed to ATs."); |
| if (window.accessibilityController) { |
| var webArea = accessibilityController.focusedElement; |
| var brokenParagraph = webArea.childAtIndex(0); |
| debug("Role of the paragraph with break lines: " + brokenParagraph.role); |
| debug("Value of the paragraph with break lines: " + brokenParagraph.stringValue); |
| var wrappedParagraph = webArea.childAtIndex(1); |
| debug("Role of the paragraph with wrapped lines: " + wrappedParagraph.role); |
| debug("Value of the paragraph with wrapped lines: " + wrappedParagraph.stringValue); |