OLD | NEW |
1 <html> | 1 <html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../fast/js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body id="body"> | 6 <body id="body"> |
7 | 7 |
8 text | 8 text |
9 <div id="text-ellipsis" tabindex="0" style="width:50px; text-overflow:ellipsis;
overflow:hidden; white-space: nowrap;" class="name">My Writing Nook for iPad. Mo
re text, more text, more text.</div> | 9 <div id="text-ellipsis" tabindex="0" style="width:50px; text-overflow:ellipsis;
overflow:hidden; white-space: nowrap;" class="name">My Writing Nook for iPad. Mo
re text, more text, more text.</div> |
10 <div id="text-noellipsis" tabindex="0" style="width:50px; white-space: nowrap;"
class="name">My Writing Nook for iPad. More text, more text, more text.</div> | 10 <div id="text-noellipsis" tabindex="0" style="width:50px; white-space: nowrap;"
class="name">My Writing Nook for iPad. More text, more text, more text.</div> |
(...skipping 15 matching lines...) Expand all Loading... |
26 // The width of non-ellipsis'd text should be longer. | 26 // The width of non-ellipsis'd text should be longer. |
27 document.getElementById("text-noellipsis").focus(); | 27 document.getElementById("text-noellipsis").focus(); |
28 textContainer = accessibilityController.focusedElement; | 28 textContainer = accessibilityController.focusedElement; |
29 textNode = textContainer.childrenCount ? textContainer.childAtIndex(
0) : textContainer; | 29 textNode = textContainer.childrenCount ? textContainer.childAtIndex(
0) : textContainer; |
30 var fullWidth = textNode.width; | 30 var fullWidth = textNode.width; |
31 | 31 |
32 shouldBeTrue("clippedWidth < fullWidth"); | 32 shouldBeTrue("clippedWidth < fullWidth"); |
33 } | 33 } |
34 </script> | 34 </script> |
35 | 35 |
36 <script src="../fast/js/resources/js-test-post.js"></script> | |
37 </body> | 36 </body> |
38 </html> | 37 </html> |
OLD | NEW |