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

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

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../fast/js/resources/js-test-pre.js"></script> 2 <script src="../../fast/js/resources/js-test-pre.js"></script>
3 <div id="output"></div> 3 <div id="output"></div>
4 <script> 4 <script>
5 description("Tests that select elements cap their size to the size attribute and to 4 when no size is specified."); 5 description("Tests that select elements cap their size to the size attribute and to 4 when no size is specified.");
6 6
7 function getElemById(elemId) { 7 function getElemById(elemId) {
8 return document.getElementById(elemId); 8 return document.getElementById(elemId);
9 } 9 }
10 10
(...skipping 17 matching lines...) Expand all
28 addSelect('select1', 10); 28 addSelect('select1', 10);
29 addSelect('select2', 16); 29 addSelect('select2', 16);
30 30
31 shouldBe("clientHeight('select2')", "clientHeight('select1')"); 31 shouldBe("clientHeight('select2')", "clientHeight('select1')");
32 shouldBeTrue("getElemById('select2').setAttribute('size', '4'); clientHeight ('select2') == clientHeight('select1')"); 32 shouldBeTrue("getElemById('select2').setAttribute('size', '4'); clientHeight ('select2') == clientHeight('select1')");
33 shouldBeTrue("getElemById('select2').setAttribute('size', '5'); clientHeight ('select2') > clientHeight('select1')"); 33 shouldBeTrue("getElemById('select2').setAttribute('size', '5'); clientHeight ('select2') > clientHeight('select1')");
34 shouldBeTrue("getElemById('select2').setAttribute('size', '8'); clientHeight ('select2') == multipleOfElement('select1', 2)"); 34 shouldBeTrue("getElemById('select2').setAttribute('size', '8'); clientHeight ('select2') == multipleOfElement('select1', 2)");
35 shouldBeTrue("getElemById('select2').setAttribute('size', '12'); clientHeigh t('select2') == multipleOfElement('select1', 3)"); 35 shouldBeTrue("getElemById('select2').setAttribute('size', '12'); clientHeigh t('select2') == multipleOfElement('select1', 3)");
36 shouldBeTrue("getElemById('select2').setAttribute('size', '16'); clientHeigh t('select2') == multipleOfElement('select1', 4)"); 36 shouldBeTrue("getElemById('select2').setAttribute('size', '16'); clientHeigh t('select2') == multipleOfElement('select1', 4)");
37 </script> 37 </script>
38 <script src="../../fast/js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/search/search-setrangetext.html ('k') | LayoutTests/fast/forms/select-live-pseudo-selectors.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698