Open Bug 2082881 Opened 29 days ago Updated 16 days ago

Remove `browser.nova.enabled` check in debugger tests

Categories

(DevTools :: Debugger, task)

task

Tracking

(Not tracked)

People

(Reporter: sclements, Unassigned)

References

Details

Bug 2082898 locks browser.nova.enabled to true. Before that can happen, tests that set the pref to false need to be removed so only the Nova behavior is tested. Do not remove any code behind browser.nova.enabled=false outside of test directories or configuration; that cleanup needs to happen after the pref is locked.

Tests to clean up:

  • devtools/client/debugger/test/mochitest/browser_dbg-editor-horizontal-scroll.js

No prefs are set for this test https://searchfox.org/firefox-main/rev/751f5671de2d327ff436154dfca6ed1733809163/devtools/client/debugger/test/mochitest/browser_af.toml#141-145

["browser_dbg-editor-highlight.js"]

["browser_dbg-editor-horizontal-scroll.js"]

["browser_dbg-editor-mode.js"]

and we're only reading from the pref in it https://searchfox.org/firefox-main/rev/751f5671de2d327ff436154dfca6ed1733809163/devtools/client/debugger/test/mochitest/browser_dbg-editor-horizontal-scroll.js#11-13

const toolboxBorderWidth = Services.prefs.getBoolPref("browser.nova.enabled")
  ? 2
  : 0;

(that's actually the only reference to the pref in the debugger folder, see https://searchfox.org/firefox-main/search?q=browser.nova.enabled&path=devtools%2Fclient%2Fdebugger&case=true&regexp=false)

So I'm not sure we don't need to do anything here? I guess we'd have to cleanup the test once the pref is effectively removed.

Am I missing something Sarah?

Yeah, if its not setting the pref to false in the test that should be fine to keep for now.

No longer blocks: nova-test-cleanup
Depends on: 2082898
Summary: Remove `browser.nova.enabled=false` coverage from debugger tests → Remove `browser.nova.enabled` check in debugger tests
You need to log in before you can comment on or make changes to this bug.