1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29

content / test / data / accessibility / html / reparent-crash.html [blame]

<!--
@WAIT-FOR:Done

This is a regression test for a bug that caused a crash when an
inline node was reparented. The actual test output is not
interesting, all that matters is that it correctly waits for
"Done" to appear in the accessibility tree and doesn't generate
an invalid tree update in the process.
-->

<img id="cl"></img>
<li aria-description="@NO_CHILDREN_DUMP">
  <div id="aw"><pre id="d3"><object id="b" aria-hidden=true></object></pre></div>
</li>
<object id="z"><div id="b5"></div> <option></option></object>
<div id="s">Status</div>

<script>
  $ = document.querySelector.bind(document);
  $('#d3').appendChild($('#z'));
  $('#b').offsetTop;
  setInterval(function() {
    $('#z').appendChild($('#cl'));
  }, 1);
  $('#z').removeChild($('#b5'));
  setTimeout(function() {
    $('#s').innerText = "Done";
  }, 10);
</script>