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

Side by Side Diff: LayoutTests/fast/forms/select-clientheight-with-multiple-attr.html

Issue 580013002: Support size<4 rendering of listbox <select>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months 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 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <p>HTMLSelectElement multiple attribute test when no size is specified</p> 6 <p>HTMLSelectElement multiple attribute test when no size is specified</p>
7 <div id="console"></div> 7 <div id="console"></div>
8 8
9 <select multiple id="sel1" > 9 <select multiple id="sel1" >
10 <option value="1">One</option> 10 <option value="1">One</option>
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 function clientHeight(elemId) { 42 function clientHeight(elemId) {
43 var element = getElemById(elemId); 43 var element = getElemById(elemId);
44 return element.clientHeight; 44 return element.clientHeight;
45 } 45 }
46 46
47 shouldBe("clientHeight('sel2')", "clientHeight('sel1')"); 47 shouldBe("clientHeight('sel2')", "clientHeight('sel1')");
48 shouldBeTrue("getElemById('sel2').setAttribute('size', '5'); clientHeight('s el2') > clientHeight('sel1')"); 48 shouldBeTrue("getElemById('sel2').setAttribute('size', '5'); clientHeight('s el2') > clientHeight('sel1')");
49 shouldBe("clientHeight('sel3')", "clientHeight('sel1')"); 49 shouldBe("clientHeight('sel3')", "clientHeight('sel1')");
50 shouldBe("getElemById('sel3').setAttribute('size', '2'); clientHeight('sel3' )", "clientHeight('sel1')"); 50 shouldBeTrue("getElemById('sel3').setAttribute('size', '2'); clientHeight('s el3') < clientHeight('sel1')");
51 shouldBe("getElemById('sel3').setAttribute('size', '0'); clientHeight('sel3' )", "clientHeight('sel1')"); 51 shouldBe("getElemById('sel3').setAttribute('size', '0'); clientHeight('sel3' )", "clientHeight('sel1')");
52 shouldBe("getElemById('sel3').setAttribute('size', ''); clientHeight('sel3') ", "clientHeight('sel1')"); 52 shouldBe("getElemById('sel3').setAttribute('size', ''); clientHeight('sel3') ", "clientHeight('sel1')");
53 shouldBe("getElemById('sel3').setAttribute('size', '1+ef'); clientHeight('se l3')", "clientHeight('sel1')"); 53 // '1+ef' is recognized as 1. This is compatible with IE and Firefox.
54 shouldBeTrue("getElemById('sel3').setAttribute('size', '1+ef'); clientHeight ('sel3') < clientHeight('sel1')");
54 </script> 55 </script>
55 </body> 56 </body>
56 </html> 57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698