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

Side by Side Diff: LayoutTests/fast/events/autoscroll-with-non-scrollable-parent.html

Issue 1133693002: Update most LayoutTests to be agnostic to scrollTopLeftInterop mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tdresser cr feedback 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 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 function log(msg) 4 function log(msg)
5 { 5 {
6 document.getElementById('console').appendChild(document.createTextNod e(msg + '\n')); 6 document.getElementById('console').appendChild(document.createTextNod e(msg + '\n'));
7 } 7 }
8 8
9 function test() 9 function test()
10 { 10 {
(...skipping 21 matching lines...) Expand all
32 setTimeout(autoscrollTestPart2, 100); 32 setTimeout(autoscrollTestPart2, 100);
33 } 33 }
34 34
35 function autoscrollTestPart2() 35 function autoscrollTestPart2()
36 { 36 {
37 if (window.eventSender) 37 if (window.eventSender)
38 eventSender.mouseUp(); 38 eventSender.mouseUp();
39 39
40 var iframe = document.getElementById('NoScrolliFrame'); 40 var iframe = document.getElementById('NoScrolliFrame');
41 var iframeDocument = iframe.contentDocument; 41 var iframeDocument = iframe.contentDocument;
42 if (iframeDocument.body.scrollLeft == 0) 42 if (iframeDocument.scrollingElement.scrollLeft == 0)
43 log("PASSED"); 43 log("PASSED");
44 else 44 else
45 log("FAILED : " + iframeDocument.body.scrollLeft + " pixels have been scrolled"); 45 log("FAILED : " + iframeDocument.scrollingElement.scrollLeft + " pixels have been scrolled");
46 46
47 if (window.testRunner) 47 if (window.testRunner)
48 testRunner.notifyDone(); 48 testRunner.notifyDone();
49 } 49 }
50 </script> 50 </script>
51 </head> 51 </head>
52 <body onload="test()"> 52 <body onload="test()">
53 <iframe id="NoScrolliFrame" scrolling="no" style="height: 100px; width: 100p x" src="resources/big-page-with-input.html"></iframe> 53 <iframe id="NoScrolliFrame" scrolling="no" style="height: 100px; width: 100p x" src="resources/big-page-with-input.html"></iframe>
54 <div id="console"> 54 <div id="console">
55 rdar://problem/6049803 <br> 55 rdar://problem/6049803 <br>
56 To do the test manually you have to try triggering the autoscroll by star ting the dragging from within the text field. If the autoscroll occurs the text has FAILED since the containing iframe has scrolling=no else it has PASSED.<br> 56 To do the test manually you have to try triggering the autoscroll by star ting the dragging from within the text field. If the autoscroll occurs the text has FAILED since the containing iframe has scrolling=no else it has PASSED.<br>
57 Though you should be able to write some long text in the input and to tri gger the autoscroll within the input.<br> 57 Though you should be able to write some long text in the input and to tri gger the autoscroll within the input.<br>
58 </div> 58 </div>
59 59
60 </body> 60 </body>
61 </html> 61 </html>
62 62
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698