[Webkit-unassigned] [Bug 17083] New: nested event dispatch does not work (Acid3 bug)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 29 16:20:17 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=17083
Summary: nested event dispatch does not work (Acid3 bug)
Product: WebKit
Version: 525+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: eric at webkit.org
nested event dispatch does not work (Acid3 bug)
function () {
// test 74: nested events, from Jonas Sicking
var doc = kungFuDeathGrip.childNodes[3].contentDocument;
// implied events
var up = 0;
var down = 0;
var button = doc.createElement("button");
button.type = "button";
button.onclick = function () { up += 1; if (up < 10) button.click(); down
+= up; };
button.click();
assertEquals(up, 10, "click event handler called the wrong number of
times");
assertEquals(down, 100, "click event handler called in the wrong order");
// explicit events
up = 0;
down = 0;
button.addEventListener('test', function () { up += 1; var e =
doc.createEvent("HTMLEvents"); e.initEvent('test', false, false); if (up < 20)
button.dispatchEvent(e); down += up; }, false);
var evt = doc.createEvent("HTMLEvents");
evt.initEvent('test', false, false);
button.dispatchEvent(evt);
assertEquals(up, 20, "test event handler called the wrong number of
times");
assertEquals(down, 400, "test event handler called in the wrong order");
return 5;
},
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list