JS Test Harness: Remove successfullyParsed from more tests
[WebKit-https.git] / LayoutTests / platform / mac / fast / forms / input-appearance-spinbutton-size.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../../fast/js/resources/js-test-pre.js"></script>
5 <style>
6 .button {
7   -webkit-appearance: outer-spin-button;
8   display: inline-block;
9 }
10 </style>
11 </head>
12 <body>
13 <p id="description"></p>
14 <div id="console"></div>
15
16 <script>
17 document.getElementById('description').innerHTML = 'Test sizes of outer-spin-button. A spin-button height should be equal to or less than the corresponding text field height.';
18
19 var body = document.body;
20 for (var size = 8; size < 20; size++) {
21     var div = document.createElement('div');
22     body.appendChild(div);
23     div.innerHTML = '<input style="font-size:' + size + 'px" id=input' + size + '>'
24         + '<span class="button" style="font-size:' + size + 'px" id=span' + size + '></span>';
25     var input = document.getElementById('input' + size);
26     var spinButton = document.getElementById('span' + size);
27     // 6 is border-top + border-bottom + padding-top + padding-bottom in the default style.
28     shouldBeTrue('spinButton.offsetHeight <= input.offsetHeight + 6');
29 }
30
31 </script>
32 <script src="../../../../fast/js/resources/js-test-post.js"></script>
33 </body>
34 </html>