/** Test for Bug 944011 comment 24 - Event handlers should fire even if the
target comes from a non-current inner. **/
SimpleTest.waitForExplicitFinish(); var gLoadCount = 0;
function loaded() {
++gLoadCount;
switch(gLoadCount) {
case 1:
ok(true, "Got first load");
oldBody = window[0].document.body;
oldBody.onclick = function() {
ok(true, "Got onclick");
SimpleTest.finish();
}
$('ifr').setAttribute('srcdoc', 'Second frame');
break;
case 2:
ok(true, "Got second load");
oldBody.dispatchEvent(new MouseEvent('click'));
break;
default:
ok(false, "Unexpected load");
SimpleTest.finish();
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.