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

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

Issue 1509853008: Move select/option/optgroup-related tests in fast/forms to fast/forms/select. (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
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>
11 </select> 11 </select>
12 12
13 <select multiple id="sel2" > 13 <select multiple id="sel2" >
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 shouldBeTrue("getElemById('sel3').setAttribute('size', '2'); clientHeight('s el3') < 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 // '1+ef' is recognized as 1. This is compatible with IE and Firefox. 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 shouldBeTrue("getElemById('sel3').setAttribute('size', '1+ef'); clientHeight ('sel3') < clientHeight('sel1')");
55 </script> 55 </script>
56 </body> 56 </body>
57 </html> 57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698