Closed Bug 891788 Opened 11 years ago Closed 11 years ago

The Sms compose tests are slow

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:-)

RESOLVED FIXED
blocking-b2g -

People

(Reporter: julienw, Assigned: julienw)

Details

Attachments

(1 file)

this is due to the fact that input listeners are not cleared at each test run.
Attached patch patch v1Splinter Review
see also PR https://github.com/mozilla-b2g/gaia/pull/10892
Attachment #773224 - Flags: review?(gnarf37)
This is a change only for tests, but since the change is part of the build and we'd like this to go to the branch, I'm asking leo+ on this. This should have no impact for the normal build because the "init" function is called only once when the app is launched.
blocking-b2g: --- → leo?
(In reply to Julien Wajsberg [:julienw] from comment #2)
> This is a change only for tests, but since the change is part of the build
> and we'd like this to go to the branch, I'm asking leo+ on this. This should
> have no impact for the normal build because the "init" function is called
> only once when the app is launched.

Julien, is the slowness a recent regression ? And to confirm here the user flow of the sms code is never touched at all for a normal user ?
Comment on attachment 773224 [details] [diff] [review]
patch v1

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

r=me
Attachment #773224 - Flags: review?(gnarf37) → review+
(In reply to bhavana bajaj [:bajaj] from comment #3)
> (In reply to Julien Wajsberg [:julienw] from comment #2)
> > This is a change only for tests, but since the change is part of the build
> > and we'd like this to go to the branch, I'm asking leo+ on this. This should
> > have no impact for the normal build because the "init" function is called
> > only once when the app is launched.
> 
> Julien, is the slowness a recent regression ?

not really, it's there since the start of the MMS work and the new composer. It's just that I decided to fix it today (I did an early try in bug 888950 that I haven't finished yet).

But I think it's one of the things that makes some tests fail on TBPL (that runs on slow VM).

> And to confirm here the user
> flow of the sms code is never touched at all for a normal user ?

The added code will run only once, and therefore won't have any impact because nothing happened yet. It has an impact if it runs again while the app is running.
master: 4b4688bc6c8e0ddc99453378e00fe53fc14576fb
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Leo- this is this a test fix only but may have a user impact given comment #5.
blocking-b2g: leo? → -
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: