Closed Bug 928566 Opened 11 years ago Closed 11 years ago

Use more descriptive parameter names in robocop assertion methods

Categories

(Firefox for Android Graveyard :: General, defect)

27 Branch
All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 29

People

(Reporter: mcomella, Assigned: mcomella)

Details

Attachments

(1 file)

The Assert class [1] has assertions such as:

void is(Object a, Object b, String name);

However, in the test output, one of 'a' and 'b' is the expected value and the other is the actual value - they are not interchangeable. This is ambiguous and causes bugs such as bug 928564.

Similarly, Assert's implementations, FennecTalosAssert and FennecMochitestAssert should be corrected.

[1]: https://mxr.mozilla.org/mozilla-central/source/build/mobile/robocop/Assert.java.in
Assignee: nobody → michael.l.comella
Status: NEW → ASSIGNED
Attachment #8344907 - Flags: review?(gbrown) → review+
https://hg.mozilla.org/mozilla-central/rev/a0b73fde685b
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: