blob: bc552c53d1f53c52d3d556e0e77cb58aaed98d02 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<!-- FIXME: Don't use Flash, it may not be installed on the machine where this test is run.
It is not trivial to switch from Flash to TestNetscapePlugin, because we need to be loading
a resource in this test. -->
<embed id="viewer" src="resources/simple_blank.swf"></embed>
<div>
This test passes if it does not trip an assert in debug builds.
It ensures a readystatechange event can't get dispatched until after a plugin is fully removed.
</div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
document.addEventListener('readystatechange', function() {
if (document.readyState == "complete") {
try {
document.body.appendChild(document.getElementById('viewer'));
}
catch (e) {
alert('PASS: element could not be re-appended');
}
}
});
window.addEventListener('DOMContentLoaded', function() {
document.body.removeChild(document.getElementById('viewer'));
});
</script>
</body>
</html>