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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/scrolling/absolute-position-behind-scrollbar.html

Issue 1413493005: Update layout tests to work when smooth scrolling is enabled by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: worked on nit Created 5 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 <style> 3 <style>
4 #a { 4 #a {
5 position: absolute; 5 position: absolute;
6 background-color: #def; 6 background-color: #def;
7 left: 100px; 7 left: 100px;
8 top: 100px; 8 top: 100px;
9 width: 1000px; 9 width: 1000px;
10 height: 1000px; 10 height: 1000px;
11 } 11 }
12 </style> 12 </style>
13 Tests that the scrollbar can be clicked even when it clips absolute-positioned c ontent. 13 Tests that the scrollbar can be clicked even when it clips absolute-positioned c ontent.
14 <div id="a"></div> 14 <div id="a"></div>
15 <script> 15 <script>
16 window.jsTestIsAsync = true;
16 17
17 eventSender.mouseMoveTo(790, 500); 18 function runTest() {
18 eventSender.mouseDown(); 19 eventSender.mouseMoveTo(790, 500);
19 eventSender.mouseUp(); 20 eventSender.mouseDown();
21 eventSender.mouseUp();
22 shouldBecomeEqual('scrollY > 0', 'true', finishJSTest);
23 }
20 24
21 shouldBeTrue(String(scrollY > 0)); 25 onload = runTest;
22
23 </script> 26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698