Open Bug 1709065 Opened 3 years ago Updated 3 years ago

Simplify _initResourceCommandFromCommands test helper

Categories

(DevTools :: Framework, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: ochameau, Unassigned)

References

(Blocks 1 open bug)

Details

By migrating ResourceWatcher to become a command in bug 1701790, we made the instantiation and retrieval of ResourceWatcher/ResourceCommand trivial.
So that _initResourceCommandFromCommands test helper became too complex for no reason. We should make this function only return the commands object and pull the resourceCommand out of it. And instead of doing client.close(), we should now do commands.destroy()

You need to log in before you can comment on or make changes to this bug.