Closed Bug 1756663 Opened 3 years ago Closed 3 years ago

Add test for id parameter in history.onTitleChanged event

Categories

(WebExtensions :: General, task)

task

Tracking

(firefox99 fixed)

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: robwu, Assigned: robwu)

References

()

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

In bug 1678611, as part of a refactor, the history.onTitleChanged unintentionally started to receive an id option, in https://hg.mozilla.org/mozilla-central/rev/942167393237

It makes sense to have this property, so let's add a unit test to verify that it is present.

Adding dev-doc-needed so that this id property can be documented on MDN at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/history/onTitleChanged and possibly also in its browser compat table.

In bug 1678611, the id property was added to this event, without unit
tests. The existing test didn't pick up the change because it checked
for a specific property. This patch adds a check of the whole event
object to get coverage for the id property AND to avoid this kind of
issue in the future.

Assignee: nobody → rob
Status: NEW → ASSIGNED
Pushed by rob@robwu.nl: https://hg.mozilla.org/integration/autoland/rev/2d6d35d5f6f7 Add test for id option of history.onTitleChanged r=willdurand
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: