Closed Bug 1054942 Opened 11 years ago Closed 11 years ago

Dissect |KeyboardManager.updateLayouts()|

Categories

(Firefox OS Graveyard :: Gaia::System::Input Mgmt, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

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.
Working on this.
Assignee: nobody → jlu
Target Milestone: --- → 2.1 S4 (12sep)
Whiteboard: [p=1]
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
Attached file Patch (PR @ GitHub)
Let's have it tested!
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 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+
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.

Attachment

General

Created:
Updated:
Size: