Closed Bug 759311 Opened 12 years ago Closed 12 years ago

Assertions in update tests have to be more verbose

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(firefox12 unaffected, firefox13 fixed, firefox14 fixed, firefox15 fixed, firefox-esr10 fixed, status1.9.2 wontfix)

RESOLVED FIXED
Tracking Status
firefox12 --- unaffected
firefox13 --- fixed
firefox14 --- fixed
firefox15 --- fixed
firefox-esr10 --- fixed
status1.9.2 --- wontfix

People

(Reporter: whimboo, Assigned: whimboo)

Details

(Whiteboard: [lib][qa-])

Attachments

(1 file)

There are a couple of instances in the current test and lib code which make use of the old controller.assert() method. All of those have to be converted to use the assertions module. Otherwise it's kinda hard to figure out the reason for all the latest update test failures for localized builds.
Whiteboard: [lib]
Attached patch Patch v1Splinter Review
Attachment #627931 - Flags: review?(dave.hunt)
Comment on attachment 627931 [details] [diff] [review]
Patch v1

Looks good. I just have one general question regarding the following line:

expect.equal(button.getNode().hidden, false, "The update button is always visible even after an update.");

An alternative would be to use:

expect.ok(!button.getNode().hidden, "The update button is always visible even after an update.");

When checking something is false would we always use the former, or would there be times we'd use the latter?
Attachment #627931 - Flags: review?(dave.hunt) → review+
(In reply to Dave Hunt (:davehunt) from comment #2)
> An alternative would be to use:
> 
> expect.ok(!button.getNode().hidden, "The update button is always visible
> even after an update.");

Sorry, that's the right way to do it. Simply missed it to use ok(). Thanks for the catch.
Landed as:
http://hg.mozilla.org/qa/mozmill-tests/rev/57f0c818570e

Once it has been proven to work, I will backport the patch to older branches.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [lib] → [lib][qa-]
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: