Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / display-inline-block-crash.html
blobd7710b141edcd8252b2bf89c4d3eff872f3e4732
1 <html>
2 <head>
3 <script src="../resources/js-test.js"></script>
4 </head>
5 <body>
7 <p id="description">This test makes sure that calling childrenCount on
8 an accessible element doesn't crash under ASAN immediately after switching
9 that document's display from block to inline-block, due to a bug in
10 AXLayoutObject::addInlineTextBoxChildren.</p>
12 <div id="console"></div>
14 <script>
15 if (window.testRunner) {
16 testRunner.dumpAsText();
17 testRunner.waitUntilDone();
20 window.jsTestIsAsync = true;
22 window.addEventListener('load', function() {
23 document.body.style.display = "inline-block";
24 if (window.accessibilityController)
25 accessibilityController.focusedElement.childrenCount;
26 finishJSTest();
27 });
28 </script>
30 </body>
31 </html>