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

Side by Side Diff: LayoutTests/fast/forms/select/select-size.html

Issue 579133002: Default value of |size| IDL attribute of HTMLSelectElement should be 0. (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
« no previous file with comments | « no previous file | LayoutTests/fast/forms/select/select-size-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/select/select-size-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698