| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 | 7 |
| 8 <p>A br element<br id="br">should return newline as its accessible title.</p> | 8 <p>A br element<br id="br">should return newline as its accessible title.</p> |
| 9 | 9 |
| 10 <p id="description"></p> | 10 <p id="description"></p> |
| 11 <div id="console"></div> | 11 <div id="console"></div> |
| 12 | 12 |
| 13 <script> | 13 <script> |
| 14 description("This tests that a br element will return the newline character
as its accessible title."); | 14 description("This tests that a br element will return the newline character
as its accessible title."); |
| 15 | 15 |
| 16 if (window.accessibilityController) { | 16 if (window.accessibilityController) { |
| 17 var brElement = accessibilityController.accessibleElementById("br"); | 17 var brElement = accessibilityController.accessibleElementById("br"); |
| 18 shouldBe("brElement.title", "'AXTitle: \\n'"); | 18 shouldBe("brElement.deprecatedTitle", "'AXTitle: \\n'"); |
| 19 } | 19 } |
| 20 </script> | 20 </script> |
| 21 | 21 |
| 22 </body> | 22 </body> |
| 23 </html> | 23 </html> |
| OLD | NEW |