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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/panScroll-click-hyperlink.html

Issue 2289213002: Implement Middle Click Autoscroll on all platforms not just Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update a test Created 4 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <script> 4 <script>
5 window.jsTestIsAsync = true; 5 window.jsTestIsAsync = true;
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.waitUntilDone() 7 testRunner.waitUntilDone()
8 8
9 var LeftMouseButton = 0; 9 var LeftMouseButton = 0;
10 var MiddleMouseButton = 1; 10 var MiddleMouseButton = 1;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 <li>Move the mouse such that you scroll the &lt;div&gt; until you see the hy perlinks &quot;Link 1&quot; and &quot;Link 2&quot;.</li> 78 <li>Move the mouse such that you scroll the &lt;div&gt; until you see the hy perlinks &quot;Link 1&quot; and &quot;Link 2&quot;.</li>
79 <li>Left-click the hyperlink &quot;Link 1&quot;.</li> 79 <li>Left-click the hyperlink &quot;Link 1&quot;.</li>
80 <li>Left-click the hyperlink &quot;Link 2&quot;.</li> 80 <li>Left-click the hyperlink &quot;Link 2&quot;.</li>
81 </ol> 81 </ol>
82 <div id="test-container" style="width:500px; height:100px; overflow:auto; border :2px solid red; padding:0px"> 82 <div id="test-container" style="width:500px; height:100px; overflow:auto; border :2px solid red; padding:0px">
83 <div id="dummy" style="height:200px"><!-- dummy element to overflow test-con tainer --></div> 83 <div id="dummy" style="height:200px"><!-- dummy element to overflow test-con tainer --></div>
84 <a id="firstLink" href="#" onclick="didClickLink1=true">Link 1</a> <a id="se condLink" href="#" onclick="checkIfClickedLink1AndFinish()">Link 2</a> 84 <a id="firstLink" href="#" onclick="didClickLink1=true">Link 1</a> <a id="se condLink" href="#" onclick="checkIfClickedLink1AndFinish()">Link 2</a>
85 </div> 85 </div>
86 <div id="console"></div> 86 <div id="console"></div>
87 <script> 87 <script>
88 description("This test can be used to verify that clicking on a hyperlink is ignored when in pan scroll mode. <br/>" + 88 description("This test can be used to verify that clicking on a hyperlink is ignored when in pan scroll mode.");
89 "Note, this test is expected to fail on the Apple Mac and Chromi um Mac port since they don't support pan scrolling.");
90 </script> 89 </script>
91 </body> 90 </body>
92 </html> 91 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698