| Index: LayoutTests/accessibility/calling-accessibility-methods-with-pending-layout-causes-crash.html
|
| diff --git a/LayoutTests/accessibility/calling-accessibility-methods-with-pending-layout-causes-crash.html b/LayoutTests/accessibility/calling-accessibility-methods-with-pending-layout-causes-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6e72fe3ed5b56c409d8ce8a0dd2e46cac409a003
|
| --- /dev/null
|
| +++ b/LayoutTests/accessibility/calling-accessibility-methods-with-pending-layout-causes-crash.html
|
| @@ -0,0 +1,17 @@
|
| +<html>
|
| +<head>
|
| +<script src="../resources/js-test.js"></script>
|
| +</head>
|
| +<body>
|
| +<a href="#" id="link">
|
| +<p id="description"></p>
|
| +<div id="console"></div>
|
| +<script>
|
| + 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.");
|
| +
|
| + var link = document.getElementById("link");
|
| + link.focus();
|
| + link.style.display = "block";
|
| + accessibilityController.focusedElement.description;
|
| +</script>
|
| +</body>
|
|
|