Closed Bug 921298 Opened 8 years ago Closed 8 years ago

test_EventTarget-dispatchEvent.html throws an exception in an event handler

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla27

People

(Reporter: emk, Assigned: emk)

References

Details

Attachments

(1 file)

This test intentionally throws an exception in an event handler. Currently testharness can't catch exceptions thrown in async callbacks, so those exceptions will be reported as "uncaught" exceptions. We should either
1. Set allow_uncaught_exception in the test, or
2. Add something like async_assert_throws API.
Summary: test_EventTarget-dispatchEvent.html?force=1 throws an exception in an event handler → test_EventTarget-dispatchEvent.html throws an exception in an event handler
We should probably get the window.onerror checking set up upstream.

https://github.com/w3c/web-platform-tests/pull/354
Merged from upstream.
Attachment #811224 - Flags: review?(Ms2ger)
Comment on attachment 811224 [details] [diff] [review]
Allow uncaught exceptions in test_EventTarget-dispatchEvent.html

Review of attachment 811224 [details] [diff] [review]:
-----------------------------------------------------------------

rs=me
Attachment #811224 - Flags: review?(Ms2ger) → review+
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
https://hg.mozilla.org/mozilla-central/rev/c294d0f6d0a5
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.