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 <script src="../resources/accessibility-helper.js"></script> | 5 <script src="../resources/accessibility-helper.js"></script> |
6 </head> | 6 </head> |
7 <body id="body"> | 7 <body id="body"> |
8 | 8 |
9 <fieldset> | 9 <fieldset> |
10 <legend>Choose a shipping method:</legend> | 10 <legend>Choose a shipping method:</legend> |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 // Print out the tree of accessible objects, indicating the titleUIEleme
nt so | 29 // Print out the tree of accessible objects, indicating the titleUIEleme
nt so |
30 // that each platform can verify their expected object has been found | 30 // that each platform can verify their expected object has been found |
31 buildAccessibilityTree(body, 0, 0, 0, titleUIElement, "<< fieldset's tit
leUIElement"); | 31 buildAccessibilityTree(body, 0, 0, 0, titleUIElement, "<< fieldset's tit
leUIElement"); |
32 | 32 |
33 // Verify that we have gotten the titleUIElement and it has the expected
text, | 33 // Verify that we have gotten the titleUIElement and it has the expected
text, |
34 // which should be in the last descendant regardless of platform. | 34 // which should be in the last descendant regardless of platform. |
35 shouldBeTrue("titleUIElement != null"); | 35 shouldBeTrue("titleUIElement != null"); |
36 var titleUIElementText = titleUIElement; | 36 var titleUIElementText = titleUIElement; |
37 while (titleUIElementText && titleUIElementText.childrenCount) | 37 while (titleUIElementText && titleUIElementText.childrenCount) |
38 titleUIElementText = titleUIElementText.childAtIndex(0); | 38 titleUIElementText = titleUIElementText.childAtIndex(0); |
39 | 39 |
40 shouldBe("titleUIElementText.stringValue", "'AXValue: Choose a shipping
method:'"); | 40 shouldBe("titleUIElementText.name", "'Choose a shipping method:'"); |
41 } | 41 } |
42 </script> | 42 </script> |
43 | 43 |
44 </body> | 44 </body> |
45 </html> | 45 </html> |
OLD | NEW |