jdiggs@igalia.com | ad83c35 | 2014-12-10 19:57:33 +0000 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <script src="../resources/js-test-pre.js"></script> |
| 5 | </head> |
| 6 | <body> |
| 7 | <math><mi id="0">x</mi></math> |
| 8 | <math><mn id="1">1</mn></math> |
| 9 | <math><mo id="2">+</mo></math> |
| 10 | <math><ms id="3">static</ms></math> |
| 11 | <math><mtext id="4">text</mtext></math> |
| 12 | <div id="console"></div> |
| 13 | <script> |
| 14 | description("This tests that the text inside MathML token elements is exposed."); |
| 15 | |
| 16 | function printRoleAndValue(id) |
| 17 | { |
| 18 | var elem = accessibilityController.accessibleElementById(id); |
| 19 | if (accessibilityController.platformName == "mac" && elem.childrenCount == 1) |
| 20 | elem = elem.childAtIndex(0); |
| 21 | debug(elem.role + ": " + elem.stringValue); |
| 22 | } |
| 23 | |
| 24 | if (window.testRunner && window.accessibilityController) { |
| 25 | var testCount = 5; |
| 26 | for (i = 1; i < testCount; i++) { |
| 27 | printRoleAndValue(i.toString()); |
| 28 | } |
| 29 | } |
| 30 | </script> |
| 31 | <script src="../resources/js-test-post.js"></script> |
| 32 | </body> |
| 33 | </html> |