Closed Bug 864119 Opened 12 years ago Closed 12 years ago

Don't generate assertions in MathML mochitests

Categories

(Core :: MathML, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: iacobcatalin, Assigned: iacobcatalin)

Details

Attachments

(1 file)

I get a 100% reproducible test failure when running ./mach mochitest-plain layout/mathml/tests on my build: ERROR TEST-UNEXPECTED-FAIL | /tests/layout/mathml/tests/test_bug553917.html | Assertion count 208 is greater than expected range 204-204 assertions.
The assertions are all of the form: ###!!! ASSERTION: FormatStringFromName() without format parameters: use GetStringFromName() instead: 'aParams && aLength', file /home/catalin/hacking/moz/mozilla-central/intl/strres/src/nsStringBundle.cpp, line 186
This patch gets rid of all the assertions by using nsIStringBundle.GetStringFromName instead of nsIStringBundle.formatStringFromName when the format parameters are an empty list. I don't really know the assertion gets triggered on my machine 208 times instead of 204 on the test machines, but it seems better to get rid of the assertion anyway and use the appropriate method of nsIStringBundle.
Attachment #740073 - Flags: review?(karlt)
Attachment #740073 - Flags: review?(karlt) → review+
Adding checkin-needed following karlt's review+
Keywords: checkin-needed
Assignee: nobody → iacobcatalin
Flags: in-testsuite+
Keywords: checkin-needed
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: