Closed Bug 1657074 Opened 6 months ago Closed 6 months ago

Refactor 'toggleJavaScript' mochitest helper function to make it reusable

Categories

(DevTools :: Debugger, task)

task

Tracking

(firefox81 fixed)

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: stepan, Assigned: stepan)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

As suggested in revision D81678, the current toggleJavaScript function is used for toggling one menu item in the debugger settings.
https://searchfox.org/mozilla-central/source/devtools/client/debugger/test/mochitest/browser_dbg-settings-disable-javascript.js#7

It would be nice to refactor this function so it can be used for toggling any menu item and move it to helpers.js to make it reusable by other tests as well.

Blocks: 1645613

As suggested in revision [[ D8167| https://phabricator.services.mozilla.com/D81678#inline-485161]] the current toggleJavaScript function is used for toggling one menu item in the debugger settings.

This patch refactors this function to be reusable by other tests.

Assignee: nobody → stepanstava
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0c48ca91e5d9
Refactor 'toggleJavaScript' mochitest helper function to make it reusable r=nchevobbe
Status: UNCONFIRMED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.