Closed Bug 1191858 Opened 9 years ago Closed 9 years ago

[LockScreen] Fix |transfer| test in state manager unit tests

Categories

(Firefox OS Graveyard :: Gaia::System::Lockscreen, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-master fixed)

RESOLVED FIXED
FxOS-S4 (07Aug)
Tracking Status
b2g-master --- fixed

People

(Reporter: gweng, Assigned: gweng)

Details

Attachments

(1 file)

Julien has found some defects in the test.
Assignee: nobody → gweng
Comment on attachment 8644418 [details] [review]
[gaia] snowmantw:bug1191858 > mozilla-b2g:master

Julien: I've greped the file and only found one promise as you described. Since it's you reported that, could you take a look? I've tested it manually that now the |transferTo| and |transferOut| will be executed after calling |transfer|, which is the test is for. Thanks.
Attachment #8644418 - Flags: review?(felash)
Comment on attachment 8644418 [details] [review]
[gaia] snowmantw:bug1191858 > mozilla-b2g:master

yes, this looks better. r=me for the test changes

Did you check if subject.transfer is called somewhere in the code though ? I had the impression it's called nowhere...
Attachment #8644418 - Flags: review?(felash) → review+
It is called as every new event/input comes as:

    this.nextStep(this.transfer.bind(this, inputs));

It's because manager now needs to handle async conditions that was not in the original design.
Ah right, now I see it; I grepped for 'transfer(' :) Thanks !
Patch modified.
Keywords: checkin-needed
https://github.com/mozilla-b2g/gaia/commit/bb666efba51e14d4c7f4267aef02b4ccff2c913a
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S4 (07Aug)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: