chromium/third_party/blink/web_tests/accessibility/corresponding-control-deleted-crash.html


<!DOCTYPE html>
<html>
<head>
<script src="../resources/js-test.js"></script>
</head>
<body>

<p id="description"></p>
<div id="console"></div>

<script>
    description("Make sure that a debug assert is not triggered when a call to LayoutBlockFlow::deleteLineBoxTree calls AccessibilityRenderObject::accessibilityIsIgnored which may require the AXObject for a node that is being deleted.");

    var span = document.createElement('span');
    span.style.position = 'fixed';
    document.body.appendChild(span);

    var progress = document.createElement('progress');
    progress.style.display = 'block';
    span.appendChild(progress);

    var kbd = document.createElement('kbd');
    span.appendChild(kbd);

    var spanShadow = span.attachShadow({mode: 'open'});

    var select = document.createElement('select');
    select.setAttribute('multiple', 'multiple');
    spanShadow.appendChild(select);

    var shadow = document.createElement('shadow');
    spanShadow.appendChild(shadow);

    select.focus();

    document.body.removeChild(span);

</script>
</body>
</html>