OLD | NEW |
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 Loading... |
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 |
OLD | NEW |