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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-metrics.html

Issue 1522803002: Move textarea-related tests to fast/forms/textarea/, part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@color-uaf
Patch Set: Created 5 years 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
OLDNEW
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 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script> 9 <script>
10 description("This test checks that textareas have the right metrics. These numbe rs match IE7 except for scrollHeight. For two reasons:<br>" + 10 description("This test checks that textareas have the right metrics. These numbe rs match IE7 except for scrollHeight. For two reasons:<br>" +
11 "1. scrollHeight is different for elements without enough content to cause scrol l because IE7 then reports the height of the text inside the " + 11 "1. scrollHeight is different for elements without enough content to cause scrol l because IE7 then reports the height of the text inside the " +
12 "element as the scrollHeight. IE8 reports has scrollHeight == offsetHeight. Geck o/WebKit have scrollHeight == clientHeight.<br>" + 12 "element as the scrollHeight. IE8 reports has scrollHeight == offsetHeight. Geck o/WebKit have scrollHeight == clientHeight.<br>" +
13 "2. For the elements with scroll in standards-mode, IE wraps the text differentl y. It seems to leave 2px less space for the text. We don't " + 13 "2. For the elements with scroll in standards-mode, IE wraps the text differentl y. It seems to leave 2px less space for the text. We don't " +
14 "currently mimic this quirk. It's not clear whether we should given that we agre e with IE7's clientWidth numbers in all these cases."); 14 "currently mimic this quirk. It's not clear whether we should given that we agre e with IE7's clientWidth numbers in all these cases.");
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 offsetHeight: 68, 159 offsetHeight: 68,
160 scrollWidth: 68 - scroll barPlusBorderWidth, 160 scrollWidth: 68 - scroll barPlusBorderWidth,
161 scrollHeight: 76}; 161 scrollHeight: 76};
162 162
163 testTextareasForDocument(standardsIframe.contentWindow.document, 'CSS1Compat', 163 testTextareasForDocument(standardsIframe.contentWindow.document, 'CSS1Compat',
164 textareaSizesStandards, textareaWithScrollSizesStandard s, 164 textareaSizesStandards, textareaWithScrollSizesStandard s,
165 textareaWith8pxPaddingSizesStandards, textareaWith8pxPa ddingAndScrollbarSizesStandards); 165 textareaWith8pxPaddingSizesStandards, textareaWith8pxPa ddingAndScrollbarSizesStandards);
166 </script> 166 </script>
167 </body> 167 </body>
168 </html> 168 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698