| <!DOCTYPE HTML> |
| <html> |
| <head> |
| <script src="../../resources/js-test-pre.js"></script> |
| </head> |
| <body> |
| |
| <button id="button1">Click</button> |
| |
| <p id="description"></p> |
| <div id="console"></div> |
| |
| <script> |
| description("This tests dispatching accessibility events on web area won't cause a crash."); |
| if (window.accessibilityController) { |
| jsTestIsAsync = true; |
| var webArea = accessibilityController.rootElement.childAtIndex(0); |
| |
| webArea.takeFocus(); |
| |
| // make sure we don't crash after focusing onto the web area. |
| setTimeout(function() { |
| finishJSTest(); |
| }, 100); |
| } |
| |
| </script> |
| <script src="../../resources/js-test-post.js"></script> |
| </body> |
| </html> |