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

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

Issue 1524663002: Move textarea-related tests to fast/forms/textarea/, part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st rict.dtd">
2 <html>
3 <head>
4 <style type="text/css">
5 body {font:13px/1.22 arial;}
6 li {overflow:auto;}
7 </style>
8
9 <script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
12
13 function checkForVerticalScrollbar() {
14 var actual_height = document.getElementById('list_item').clientHeight;
15 var scroll_height = document.getElementById('list_item').scrollHeight;
16 if (actual_height == scroll_height )
17 document.getElementById('sourceViewDiv').innerHTML=' This test: PASSED!';
18 }
19
20 </script>
21 </head>
22 <body onload="checkForVerticalScrollbar()">
23 <p> <b> Vertical scrollbar should not be created when there is no overflow. </b > </p>
24 <p> This test passes if the list item below, bordered in blue, has no vertical scrollbar. </p>
25 <ul >
26 <li id="list_item" style="border:1px solid blue;">
27 list item
28 </li>
29 </ul>
30 <div id='sourceViewDiv'>This test: FAILED</div>
31 </body>
32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698