raster image of udom-event-204-t

This tests the defaultPrevented attribute and the preventDefault method of the Event interface.

The test consists of a single rectangle, which has event listeners registered on it and some of its ancestor nodes. Clicking on the rectangle will dispatch the click event. The listener on the grandparent node of the rect calls preventDefault(). The test checks that the event object has defaultPrevented set to true.

The test has been passed if the rectangle becomes blue when clicking it.