| OLD | NEW | 
|---|
| 1 <body style="height: 200%"> | 1 <body style="height: 200%"> | 
| 2 <div onmouseover="mouseOver(event)" style="margin: 300px 0; width: 100px; height
    : 100px; background-color: blue;"></div> | 2 <div onmouseover="mouseOver(event)" style="margin: 300px 0; width: 100px; height
    : 100px; background-color: blue;"></div> | 
| 3 <div id="result">Test did not run</div> | 3 <div id="result">Test did not run</div> | 
| 4 <script> | 4 <script> | 
| 5     var passed = false; | 5     var passed = false; | 
| 6 | 6 | 
| 7     function mouseOver(event) | 7     function mouseOver(event) | 
| 8     { | 8     { | 
| 9         passed = true; | 9         passed = true; | 
| 10     } | 10     } | 
| 11 | 11 | 
| 12     function finish() | 12     function finish() | 
| 13     { | 13     { | 
| 14         document.getElementById("result").innerText = passed ? "PASS" : "FAIL"; | 14         document.getElementById("result").innerText = passed ? "PASS" : "FAIL"; | 
| 15         testRunner.notifyDone(); | 15         testRunner.notifyDone(); | 
| 16     } | 16     } | 
| 17 | 17 | 
| 18     if (window.testRunner) { | 18     if (window.testRunner) { | 
| 19         testRunner.dumpAsText(); | 19         testRunner.dumpAsText(); | 
| 20         testRunner.waitUntilDone(); | 20         testRunner.waitUntilDone(); | 
| 21 | 21 | 
| 22         // WebKit schedules a fake mouse move event as part of installing the We
    bView in | 22         // WebKit schedules a fake mouse move event as part of installing the We
    bView in | 
| 23         // a window. For the test to be valid, it must begin only after that eve
    nt | 23         // a window. For the test to be valid, it must begin only after that eve
    nt | 
| 24         // gets dispatched. | 24         // gets dispatched. | 
| 25         setTimeout(function() | 25         setTimeout(function() | 
| 26         { | 26         { | 
| 27             eventSender.mouseMoveTo(50, 100); | 27             eventSender.mouseMoveTo(50, 100); | 
| 28             document.body.scrollTop = 250; | 28             document.scrollingElement.scrollTop = 250; | 
| 29             setTimeout(finish, 200); | 29             setTimeout(finish, 200); | 
| 30         }, 200); | 30         }, 200); | 
| 31     } | 31     } | 
| 32 </script> | 32 </script> | 
| OLD | NEW | 
|---|