This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 483 - Events test in Javascript don't work (EventMonitor)
Summary: Events test in Javascript don't work (EventMonitor)
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 2 (show other bugs)
Version: unspecified
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Curt Arnold
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-23 06:26 UTC by David Faure
Modified: 2004-03-10 07:37 UTC (History)
0 users

See Also:


Attachments
Enhanced test-to-ecmascript for EventMonitor, inner classes (38.26 KB, patch)
2004-03-10 02:32 UTC, Curt Arnold
Details

Description David Faure 2004-01-23 06:26:17 UTC
dispatchEvent08.xml seems to assume that the variable "monitor", of type 
"EventMonitor" will receive events. 
But the Javascript generated for this test simply says 
var monitor; 
[...] 
doc.addEventListener("foo",monitor,false);   // so monitor is undefined 
 
and then tests for a local atEvents array, which can't have been modified 
anywhere. I think something's missing in the JS code for this test (and most 
following tests).
Comment 1 Bob Clary 2004-02-10 15:36:56 UTC
to curt.
Comment 2 Curt Arnold 2004-03-10 02:32:21 UTC
Created attachment 294 [details]
Enhanced test-to-ecmascript for EventMonitor, inner classes
Comment 3 Curt Arnold 2004-03-10 02:37:58 UTC
The events suite had apparently never been tested for the ECMAScript 
framework.  With these changes, the test suite runs on Mozilla.