Closed Bug 1013657 Opened 12 years ago Closed 12 years ago

Incorrectly handling of ErrorEvent in unittest (event.data)

Categories

(Core :: DOM: Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: seward.zheng, Assigned: seward.zheng)

Details

Attachments

(1 file)

In some unit tests, worker's onerror handler does not correctly handle ErrorEvent. e.g.: dom/workers/test/test_fileReaderSync.xul Line 164: worker.onerror = function(event) { ok(false, "Worker had an error: " + event.data); finish(); }; event does not have data property, should have event.message instead.
Attached patch PatchSplinter Review
A patch.
Assignee: nobody → szheng
Status: NEW → ASSIGNED
Attachment #8427532 - Flags: review?(khuey)
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: