| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <title>Bug 60737 test case</title> |
| /* Use customized scrollbar to avoid platform differences. */ |
| ::-webkit-scrollbar-button { |
| ::-webkit-scrollbar-track-piece { |
| ::-webkit-scrollbar-thumb { |
| <body style="margin:0px"> |
| <div id="container" style="border:1px solid black; height:150px; width:100px; overflow:auto;"> |
| <div id="expander" style="height:100px; width:5000px; background-color:green; border:2px solid red;"> |
| <p id="result">Test did not run.</p> |
| var container = document.getElementById("container"); |
| container.scrollLeft = 2; |
| // Drag scrollbar thumber to left most: |
| if (window.eventSender) { |
| eventSender.mouseMoveTo(30, 145); |
| eventSender.mouseMoveTo(0, 145); |
| document.getElementById("result").innerText = container.scrollLeft == 0 ? "PASS" : "FAIL"; |