Closed
Bug 1054942
Opened 11 years ago
Closed 11 years ago
Dissect |KeyboardManager.updateLayouts()|
Categories
(Firefox OS Graveyard :: Gaia::System::Input Mgmt, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.1 S4 (12sep)
People
(Reporter: mnjul, Assigned: mnjul)
References
Details
(Whiteboard: [p=1])
Attachments
(1 file)
|KeyboardManager.updateLayouts()| is currently one big function with several inner functions. Let's dissect it.
| Assignee | ||
Comment 1•11 years ago
|
||
Working on this.
Assignee: nobody → jlu
Target Milestone: --- → 2.1 S4 (12sep)
| Assignee | ||
Comment 2•11 years ago
|
||
WIP on this: https://github.com/mnjul/gaia/tree/bug_1054942_dissect_keyboardmanager_updatelayout . Haven't modified unit tests accordingly.
| Assignee | ||
Updated•11 years ago
|
Whiteboard: [p=1]
| Assignee | ||
Comment 3•11 years ago
|
||
My unit tests-writing is blocked by bug 1055908 since the unit tests to add in bug 1055908 are right dealing with codes in |updateLayout()| .
Depends on: 1055908
| Assignee | ||
Comment 4•11 years ago
|
||
Let's have it tested!
| Assignee | ||
Comment 5•11 years ago
|
||
Comment on attachment 8476467 [details] [review]
Patch (PR @ GitHub)
Hi Tim,
Here's another refactoring work to review, thanks. Layout-related chores in |KeyboardManager.updateLayouts()| were extracted to a new sub-module, and were separated into smaller functions with descriptive function names. Layout bookkeeping was moved to the sub-module too.
For unit tests, the "module functional unit-test" sense for KeyboardManager is retained (i.e. keyboard_manager_test depends on a fully-functional InputLayouts and no tests were removed from keyboard_manager_test). For InputLayouts per-function tests are performed.
Attachment #8476467 -
Flags: review?(timdream)
Comment 6•11 years ago
|
||
Comment on attachment 8476467 [details] [review]
Patch (PR @ GitHub)
I didn't try to look into the patch line-by-line but I think this looks good.
Depend on what you want you may want to hold off until FL.
Attachment #8476467 -
Flags: review?(timdream) → review+
| Assignee | ||
Comment 7•11 years ago
|
||
Final TBPL run after rebasing and before landing: https://tbpl.mozilla.org/?rev=321d37228d049c9749d6c907e672f5ff7db28918&tree=Gaia-Try
| Assignee | ||
Comment 8•11 years ago
|
||
Master: https://github.com/mozilla-b2g/gaia/commit/447c3c80150e4e1c93d459933b73d753d8980cb6
The last applicable TBPL run was https://tbpl.mozilla.org/?rev=c167560c4a2bbc69b80f022ac403620d5b4e851a&tree=Gaia-Try and not the one in comment 7.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•