chromium/content/test/data/accessibility/html/button-content-changed.html

<!--
@BLINK-ALLOW:name=*
@WAIT-FOR:Done
-->
<!DOCTYPE html>
<html>
<body>
  <div tabindex="0" id="status" aria-label="Working"></div>
  <button>
    <p>
      <div id="txt1">Before</div>
    </p>
  </button>
  <button>
    <p>
      <div id="txt2">Before</div>
    </p>
  </button>

<script>
setTimeout(function() {
  document.getElementById('txt1').textContent = 'After';
  document.getElementById('txt2').firstChild.data = 'After';
  setTimeout(() => {
    document.getElementById('status').setAttribute('aria-label', 'Done');
  }, 0);
}, 1000);
</script>
</body>
</html>