Closed Bug 1201446 Opened 9 years ago Closed 9 years ago

Don't expose some websocket reasons to Loop's view code - use the failure details instead

Categories

(Hello (Loop) :: Client, defect, P1)

defect
Points:
2

Tracking

(firefox43 fixed)

RESOLVED FIXED
mozilla43
Iteration:
43.3 - Sep 21
Tracking Status
firefox43 --- fixed
backlog tech-debt

People

(Reporter: standard8, Assigned: standard8)

References

Details

(Whiteboard: [tech-debt])

Attachments

(1 file)

We're currently exposing some of the websocket failures to the view code. We need to clean this up fully in bug 1124384, however, for now, I want to cut down the some of the existing exposure - namely the websocket reasons for when the user is unavailable.

This makes writing tests for bug 1184933 simpler, as we'll have less codes that are duplicated/exposed to the view code.
Flags: qe-verify-
Flags: firefox-backlog+
Implements what I need for comment 0, and also tidies up some of the test code to use the newer style formatting.

Split out from bug 1184933 to make those patches smaller.
Attachment #8656485 - Flags: review?(mdeboer)
Rank: 19
Attachment #8656485 - Flags: review?(dmose)
Iteration: 43.2 - Sep 7 → 43.3 - Sep 21
Comment on attachment 8656485 [details] [diff] [review]
Don't expose websocket reasons to the view code where we have a specific failure detail available.

Review of attachment 8656485 [details] [diff] [review]:
-----------------------------------------------------------------

r=Mardak

::: browser/components/loop/test/shared/conversationStore_test.js
@@ +1196,5 @@
> +
> +        it("should dispatch a connection failure action", function() {
> +          store.setStoreState({
> +            outgoing: true
> +          });

You can move the setStoreState into a beforeEach for these 3 tests.
Attachment #8656485 - Flags: review?(mdeboer)
Attachment #8656485 - Flags: review?(dmose)
Attachment #8656485 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/93878395a38d
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: