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

Side by Side Diff: LayoutTests/fast/forms/listbox-deselect-scroll.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 PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script> 9 <script>
10 description('This tests that deselecting an option won&apos;t cause unnecessary scrolling.'); 10 description('This tests that deselecting an option won&apos;t cause unnecessary scrolling.');
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 var sl = document.getElementById('sl'); 47 var sl = document.getElementById('sl');
48 sl.focus(); 48 sl.focus();
49 document.execCommand("SelectAll"); 49 document.execCommand("SelectAll");
50 sl.scrollTop = Math.floor(sl.offsetHeight / sl.size) * 4 + 6; 50 sl.scrollTop = Math.floor(sl.offsetHeight / sl.size) * 4 + 6;
51 var scrollBeforeClick = sl.scrollTop; 51 var scrollBeforeClick = sl.scrollTop;
52 mouseDownOnSelect("sl", 3, "addSelectionKey"); 52 mouseDownOnSelect("sl", 3, "addSelectionKey");
53 shouldBe('sl.scrollTop', 'scrollBeforeClick'); 53 shouldBe('sl.scrollTop', 'scrollBeforeClick');
54 shouldBe('selectionPattern(sl)', '"11111110111"'); 54 shouldBe('selectionPattern(sl)', '"11111110111"');
55 </script> 55 </script>
56 <script src="../../fast/js/resources/js-test-post.js"></script>
57 </body> 56 </body>
58 </html> 57 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/legend/legend-form.html ('k') | LayoutTests/fast/forms/listbox-selection.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698