Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: LayoutTests/accessibility/ellipsis-text.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/accessibility/duplicate-child-nodes.html ('k') | LayoutTests/accessibility/file-upload-button-with-axpress.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698