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

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

Issue 9385018: Merge 106730 - Source/WebCore: Patch by Swapna P <spottabathini@innominds.com> on 2012-02-04 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 10 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
« no previous file with comments | « LayoutTests/ChangeLog ('k') | Source/WebCore/ChangeLog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.body.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.body.scrollLeft + " pixels have been scrolled");
46 46
47 if (window.layoutTestController) 47 if (window.layoutTestController)
48 layoutTestController.notifyDone(); 48 layoutTestController.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
« no previous file with comments | « LayoutTests/ChangeLog ('k') | Source/WebCore/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698