Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / select / select-size.html
blob05e857886487de1cc665d3a3455a0a11b46e0109
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <select></select>
4 <script>
5 description('Test HTMLSelectElement::size behavior.');
6 var select = document.querySelector('select');
7 shouldBe('select.size', '0');
8 shouldBe('select.setAttribute("size", "1"); select.size', '1');
9 shouldBe('select.setAttribute("size", "2"); select.size', '2');
10 shouldBe('select.setAttribute("size", "3"); select.size', '3');
11 shouldBe('select.setAttribute("size", "4"); select.size', '4');
12 shouldBe('select.setAttribute("size", "0"); select.size', '0');
13 shouldBe('select.setAttribute("size", "-1"); select.size', '0');
14 shouldBe('select.setAttribute("size", "abc"); select.size', '0');
15 shouldBe('select.setAttribute("size", "3.14"); select.size', '3');
16 </script>