| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC> | 1 <!DOCTYPE HTML PUBLIC> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 This tests that the AXSelection property is correctly reported for non-native te
xt boxes.<br> | 7 This tests that the AXSelection property is correctly reported for non-native te
xt boxes.<br> |
| 8 <div role="textbox" id="ariaTextBox" aria-multiline="false" tabindex="0">Some te
xt in a textbox (34 chars).</div> | 8 <div role="textbox" id="ariaTextBox" aria-multiline="false" tabindex="0">Some te
xt in a textbox (34 chars).</div> |
| 9 <div id="console"></div> | 9 <div id="console"></div> |
| 10 <script> | 10 <script> |
| 11 function assertEvaluatesTo(actual, expected, message) { | 11 function assertEvaluatesTo(actual, expected, message) { |
| 12 var actualValue = 0; | 12 var actualValue = 0; |
| 13 try { | 13 try { |
| 14 actualValue = eval(actual); | 14 actualValue = eval(actual); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 45 assertCorrectAXSelection(ariaTextBox, "{15, 0}", "Collapsed selection in
the middle"); | 45 assertCorrectAXSelection(ariaTextBox, "{15, 0}", "Collapsed selection in
the middle"); |
| 46 assertCorrectAXSelection(ariaTextBox, "{15, 2}", "Non-collapsed selectio
n in the middle"); | 46 assertCorrectAXSelection(ariaTextBox, "{15, 2}", "Non-collapsed selectio
n in the middle"); |
| 47 assertCorrectAXSelection(ariaTextBox, "{0, 15}", "Non-collapsed selectio
n at the start"); | 47 assertCorrectAXSelection(ariaTextBox, "{0, 15}", "Non-collapsed selectio
n at the start"); |
| 48 assertCorrectAXSelection(ariaTextBox, "{15, "+ (textLength - 15) + "}",
"Non-collapsed selection at the end"); | 48 assertCorrectAXSelection(ariaTextBox, "{15, "+ (textLength - 15) + "}",
"Non-collapsed selection at the end"); |
| 49 } | 49 } |
| 50 | 50 |
| 51 </script> | 51 </script> |
| 52 | 52 |
| 53 </body> | 53 </body> |
| 54 </html> | 54 </html> |
| OLD | NEW |