Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / accessibility / calling-accessibility-methods-with-pending-layout-causes-crash.html
1 <html>
2 <head>
3 <script src="../resources/js-test.js"></script>
4 </head>
5 <body>
6 <a href="#" id="link">
7 <p id="description"></p>
8 <div id="console"></div>
9 <script>
10     description("Changing the display of a link from inline to block invalidates layout, but doesn't trigger a layout right away. Ensure that accessing the accessibility object's text before the layout happens doesn't cause a crash.");
11
12     var link = document.getElementById("link");
13     link.focus();
14     link.style.display = "block";
15     accessibilityController.focusedElement.description;
16 </script>
17 </body>