5 This test passes if it does not trip an assert in debug builds.
6 It ensures a readystatechange event can't get dispatched until after a plugin is fully removed.
8 <embed id=
"viewer" src=
"resources/simple_blank.swf"></embed>
10 if (window
.testRunner
)
11 testRunner
.dumpAsText();
14 document
.addEventListener('readystatechange', function() {
17 document
.body
.appendChild(document
.getElementById('viewer'));
20 alert('PASS: element could not be re-appended');
26 window
.addEventListener('DOMContentLoaded', function() {
27 document
.body
.removeChild(document
.getElementById('viewer'));
30 // FIXME: This shouldn't be needed, but it's here to make our whitespace text node
31 // creation deterministic in the face of lazily creating the render tree.
32 document
.body
.offsetHeight
;