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

Side by Side Diff: LayoutTests/fast/events/autoscroll-should-not-stop-on-keypress.html

Issue 1133693002: Update most LayoutTests to be agnostic to scrollTopLeftInterop mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix a couple more tests Created 5 years, 7 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <script src="../../resources/js-test.js"></script> 5 <script src="../../resources/js-test.js"></script>
6 <script> 6 <script>
7 window.jsTestIsAsync = true; 7 window.jsTestIsAsync = true;
8 8
9 var frame; 9 var frame;
10 function test() { 10 function test() {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 eventSender.mouseDown(); 76 eventSender.mouseDown();
77 eventSender.mouseMoveTo(xPoint, frame.offsetHeight + 100); 77 eventSender.mouseMoveTo(xPoint, frame.offsetHeight + 100);
78 setTimeout(testAutoScroll, 1500); 78 setTimeout(testAutoScroll, 1500);
79 eventSender.keyDown('a'); 79 eventSender.keyDown('a');
80 } else { 80 } else {
81 debug("Test manually that scrolling does not stop if we press a key whil e autoscroll is happening."); 81 debug("Test manually that scrolling does not stop if we press a key whil e autoscroll is happening.");
82 } 82 }
83 } 83 }
84 84
85 function testAutoScroll() { 85 function testAutoScroll() {
86 shouldBe('frame.contentDocument.body.scrollTop + frame.clientHeight', 'frame .contentDocument.body.scrollHeight'); 86 shouldBe('frame.contentDocument.scrollingElement.scrollTop + frame.clientHei ght', 'frame.contentDocument.scrollingElement.scrollHeight');
87 finishJSTest(); 87 finishJSTest();
88 } 88 }
89 89
90 successfullyParsed = true; 90 successfullyParsed = true;
91 </script> 91 </script>
92 </head> 92 </head>
93 <body onload="test()"> 93 <body onload="test()">
94 <iframe id="frame" style="height: 400px;" frameborder="0"></iframe> 94 <iframe id="frame" style="height: 400px;" frameborder="0"></iframe>
95 <div id="console"></div> 95 <div id="console"></div>
96 </body> 96 </body>
97 </html> 97 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698