Closed Bug 1101391 Opened 10 years ago Closed 10 years ago

layout_manager_test.js may not be able to detect failures due to incomplete data structure comparison

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.1 S9 (21Nov)

People

(Reporter: mnjul, Assigned: mnjul)

References

Details

(Whiteboard: [p=1])

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1070487 +++ In bug 1070487, the added deep-comparison code [1] can actually only test that the relation test -> expected is injective and not necessarily surjective, i.e. there might be some properties only present in expected[i][j] but not test[i][j], which should count as comparison failure, but which the test codes currently don't flag. We need to fix it. I'll have to block bug 1094031 as I can't fix unit tests of that bug when this bug is still lingering around. [1] https://github.com/mozilla-b2g/gaia/blob/master/apps/keyboard/test/unit/keyboard/layout_manager_test.js#L39-L50
Attached file Patch (PR @ GitHub) (deleted) —
Tim, Rudy, any of you can take a little bit time to check the patch? We've already got some false negative: my bug 1072191 removed {ratio: 1} from key objects but that wasn't picked up by the test script.
Assignee: nobody → jlu
Attachment #8525173 - Flags: review?(timdream)
Attachment #8525173 - Flags: review?(rlu)
Attachment #8525173 - Flags: review?(timdream)
Attachment #8525173 - Flags: review?(rlu)
Attachment #8525173 - Flags: review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [p=1]
Target Milestone: --- → 2.1 S9 (21Nov)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: