Closed Bug 1673109 Opened 4 years ago Closed 4 years ago

Re-introduce tests that got lost as part of the ASRouter rearchitecture work

Categories

(Firefox :: Messaging System, task, P2)

task

Tracking

()

RESOLVED FIXED
84 Branch
Iteration:
84.2 - Nov 2 - Nov 15
Tracking Status
firefox84 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

(Blocks 1 open bug)

Details

Attachments

(6 files)

In bug 1614465, a big refactor occurred with ASRouter, which changes how it initializes, and also changes it's underlying communications infrastructure.

As part of that change, some unit tests from ASRouter.test.js were removed because certain methods were removed. Per this comment from andreio, we should audit the removed tests and reintroduce new ones where it makes sense.

Assignee: mconley → andrei.br92
Iteration: --- → 84.2 - Nov 2 - Nov 15
Priority: -- → P2

Hey - if it's alright, I'm going to keep this assigned to me - I've already got a patch halfway done that reintroduces a bunch of tests.

Assignee: andrei.br92 → mconley

Thanks! I was confused as to why I couldn't find the bug anymore (I was looking by bugs assigned to me) :)
I came across some unused/dead-code that was accidentally added in (probably an artifact of the numerous rebases) that I was planning to add as a todo to this bug but maybe it should be a separate bug?

(In reply to Andrei Oprea [:andreio] from comment #2)

Thanks! I was confused as to why I couldn't find the bug anymore (I was looking by bugs assigned to me) :)
I came across some unused/dead-code that was accidentally added in (probably an artifact of the numerous rebases) that I was planning to add as a todo to this bug but maybe it should be a separate bug?

Hi! Yep, that dead code is one of the things my patch removes. I'm still in the midst of adding the tests back, but I'll post what patches I have so far that are ready for review.

Depends on: 1673733
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/071ed11caa2d Make sure we properly enter "snippets preview mode" when using a preview endpoint. r=andreio https://hg.mozilla.org/integration/autoland/rev/9db16fa5d64f Get rid of unused dismissById function on ASRouterUtils. r=andreio https://hg.mozilla.org/integration/autoland/rev/2d9cf2b4e8a9 Make sure ASRouter.updateTargetingParameters returns the correct Trailhead parameter. r=andreio https://hg.mozilla.org/integration/autoland/rev/ec95e0de1ad4 Remove dead code that calls a non-existing function. r=andreio https://hg.mozilla.org/integration/autoland/rev/a9f96e3afaab Remove unused ASRouter.renderWNMessages method. r=emcminn https://hg.mozilla.org/integration/autoland/rev/8b291152d074 Reintroduce tests that got lost as part of the ASRouter rearchitecture work. r=andreio
Depends on: 1677625
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: