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

Side by Side Diff: LayoutTests/fast/scrolling/scrollbar-mousedown-move-mouseup.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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../js/resources/js-test-pre.js"></script> 4 <script src="../js/resources/js-test-pre.js"></script>
5 <script> 5 <script>
6 window.jsTestIsAsync = true; 6 window.jsTestIsAsync = true;
7 7
8 function initEventHandlers(element) { 8 function initEventHandlers(element) {
9 element.addEventListener('mousedown', handleEvent); 9 element.addEventListener('mousedown', handleEvent);
10 element.addEventListener('mouseup', handleEvent); 10 element.addEventListener('mouseup', handleEvent);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 eventSender.mouseUp(); 45 eventSender.mouseUp();
46 eventSender.mouseMoveTo(d1.offsetLeft + d1.offsetWidth - 4, d1.o ffsetTop + 4); 46 eventSender.mouseMoveTo(d1.offsetLeft + d1.offsetWidth - 4, d1.o ffsetTop + 4);
47 eventSender.mouseDown(1); 47 eventSender.mouseDown(1);
48 eventSender.mouseMoveTo(d2.offsetLeft + d2.offsetWidth - 4, d2.o ffsetTop + 4); 48 eventSender.mouseMoveTo(d2.offsetLeft + d2.offsetWidth - 4, d2.o ffsetTop + 4);
49 eventSender.mouseUp(1); 49 eventSender.mouseUp(1);
50 finish(); 50 finish();
51 } else 51 } else
52 debug('This test requires eventSender. Click the scrollbar to pl ay manually.'); 52 debug('This test requires eventSender. Click the scrollbar to pl ay manually.');
53 }; 53 };
54 </script> 54 </script>
55 <script src="../js/resources/js-test-post.js"></script>
56 <style> 55 <style>
57 #scrollme, #notscrollme { 56 #scrollme, #notscrollme {
58 width: 100px; 57 width: 100px;
59 height: 100px; 58 height: 100px;
60 overflow: auto; 59 overflow: auto;
61 } 60 }
62 #scrollme p { 61 #scrollme p {
63 height: 1000px; 62 height: 1000px;
64 } 63 }
65 </style> 64 </style>
66 </head> 65 </head>
67 <body> 66 <body>
68 <div id="scrollme"><p>This is a scrollable div.</p></div> 67 <div id="scrollme"><p>This is a scrollable div.</p></div>
69 <div id="notscrollme"></div> 68 <div id="notscrollme"></div>
70 <pre id="console"></pre> 69 <pre id="console"></pre>
71 </body> 70 </body>
72 </html> 71 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698