blob: 537bd4edf0568e24ab23682dcdd66a8ab027c158 [file] [log] [blame]
<script src="../../resources/js-test.js"></script>
if (window.testRunner)
var numBlurs = 0;
window.onload = function() { document.getElementById("input").focus(); }
function finish() {
var f = document.getElementById('f')
f.innerHTML = '';
if (numBlurs)
testFailed('Onblur handler called.');
testPassed('Onblur handler not called.');
debug('<br /><span class="pass">TEST COMPLETE</span>');
if (window.testRunner)
<p id="description"></p>
<form id='f'>
<input id="input" onblur="numBlurs++" onfocus="setTimeout('finish()', 0)">
<div id="console"></div>
description("This tests that elements shouldn't emit any onblur events when they are being removed from the document. <br>" +
"Note, this test is expected to fail as of 04/25/2011. See bug #59379.");