diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
commit | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (patch) | |
tree | d49911209b132da58d838efa852daf28d516df21 /WebCore/manual-tests/onblur-remove.html | |
parent | 87eb0cb35bad8784770ebc807e6c982432e47107 (diff) | |
download | external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.zip external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.tar.gz external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.tar.bz2 |
Initial Contribution
Diffstat (limited to 'WebCore/manual-tests/onblur-remove.html')
-rw-r--r-- | WebCore/manual-tests/onblur-remove.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/WebCore/manual-tests/onblur-remove.html b/WebCore/manual-tests/onblur-remove.html new file mode 100644 index 0000000..7348e16 --- /dev/null +++ b/WebCore/manual-tests/onblur-remove.html @@ -0,0 +1,31 @@ +<html> + <head> + <script> + var numBlurs = 0; + + function debug(str) { + var c = document.getElementById('console') + c.innerHTML += str + "<br>" + + } + + function finish() { + var f = document.getElementById('f') + + f.innerHTML = ''; + + if (numBlurs) + debug('FAILURE: Onblur handler called!') + else + debug('SUCCESS!') + } + </script> + </head> +<body> + <p>This tests that elements shouldn't emit any onblur events when they are being removed from the document. To test this, click inside the input field. If If this test is successful, "SUCCESS" should be shown below, otherwise "FAILURE" is shown.</p> + <form id='f'> + <input onblur="numBlurs++" onfocus="setTimeout('finish()', 0)"> + </form> + <pre id="console"></pre> + </body> +</html> |