| OLD | NEW | 
|---|
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> | 
| 2 <html> | 2 <html> | 
| 3 <head> | 3 <head> | 
| 4 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> | 
| 5 <style> | 5 <style> | 
| 6 .container { | 6 .container { | 
| 7   padding: 100px; | 7   padding: 100px; | 
| 8   margin: 100px; | 8   margin: 100px; | 
| 9   border: 1px solid #000; | 9   border: 1px solid #000; | 
| 10   height: 900px; | 10   height: 900px; | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 30 | 30 | 
| 31 description("This test ensures that scrolling the window sends a notification.")
    ; | 31 description("This test ensures that scrolling the window sends a notification.")
    ; | 
| 32 window.jsTestIsAsync = true; | 32 window.jsTestIsAsync = true; | 
| 33 | 33 | 
| 34 if (window.testRunner && window.accessibilityController) { | 34 if (window.testRunner && window.accessibilityController) { | 
| 35     testRunner.dumpAsText(); | 35     testRunner.dumpAsText(); | 
| 36 | 36 | 
| 37     var container = document.getElementById('container'); | 37     var container = document.getElementById('container'); | 
| 38 | 38 | 
| 39     accessibilityController.addNotificationListener(function (target, notificati
    on) { | 39     accessibilityController.addNotificationListener(function (target, notificati
    on) { | 
| 40         if (target.role == 'AXRole: AXDiv') { | 40         if (target.role == 'AXRole: AXGenericContainer') { | 
| 41             debug('Got notification on container div'); | 41             debug('Got notification on container div'); | 
| 42             shouldBe("container.scrollTop", "500"); | 42             shouldBe("container.scrollTop", "500"); | 
| 43             accessibilityController.removeNotificationListener(); | 43             accessibilityController.removeNotificationListener(); | 
| 44             finishJSTest(); | 44             finishJSTest(); | 
| 45         } | 45         } | 
| 46     }); | 46     }); | 
| 47 | 47 | 
| 48     window.setTimeout(function() { | 48     window.setTimeout(function() { | 
| 49         container.scrollTop = 500; | 49         container.scrollTop = 500; | 
| 50     }, 0); | 50     }, 0); | 
| 51 } | 51 } | 
| 52 | 52 | 
| 53 </script> | 53 </script> | 
| 54 | 54 | 
| 55 </body> | 55 </body> | 
| 56 </html> | 56 </html> | 
| OLD | NEW | 
|---|