blob: 56af82f26cc099193b11903a27cc8f03cf3d25c9 [file] [log] [blame]
function log(t) {
document.getElementById('console').innerHTML += t +'<br>';
if (window.testRunner)
These checkboxes call their own and each others click() method from their onchange callbacks. Click the first checkbox. This should not crash or hang.
This also shows that click() is protected on per-element basis.<br>
<input id=cb type="checkbox" onchange="log('checkbox1 onchange enter');;document.getElementById('cb2').click();log('checkbox1 onchange exit');">
<input id=cb2 type="checkbox" onchange="log('checkbox2 onchange enter');document.getElementById('cb').click();log('checkbox2 onchange exit')">
<div id=console></div>
if (window.eventSender) {
var cb = document.getElementById('cb');
eventSender.mouseMoveTo(cb.offsetLeft + 5, cb.offsetTop + 5);