Closed
Bug 611313
Opened 14 years ago
Closed 14 years ago
Investigate why rdf template tests occasionally fail
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
RESOLVED
FIXED
People
(Reporter: enndeakin, Assigned: enndeakin)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
Details | Diff | Splinter Review |
The template tests occasionally fail randomly, likely due to asyncronous loading and content construction not being fully complete when the test runs.
This results in the tests failing with the message such as: "incorrect child node count of vbox 0 expected 3"
Assignee | ||
Updated•14 years ago
|
Assignee | ||
Comment 1•14 years ago
|
||
The template tests are set up such that the first one uses datasources="rdf:null" to force the datasource to load blocking before the remaining tests run.
However this might cause random failures in other tests if the datasource is garbage collected I guess, but I'm not sure if this can happen.
This patch just uses datasources="rdf:null" on all of the template tests. We could try this to see if it improves things.
Assignee: nobody → enndeakin
Status: NEW → ASSIGNED
Comment 2•14 years ago
|
||
I don't see a bug filed on it, but locally I hit
150 ERROR TEST-UNEXPECTED-FAIL | chrome://mochitests/content/chrome/content/xul/templates/tests/chrome/test_tmpl_invalidqp.xul | correct number of logged messages - got 0, expected 1
Comment 3•14 years ago
|
||
Actually I've hit that failure on both Mac and Fedora 12 with this patch applied.
Assignee | ||
Comment 4•14 years ago
|
||
Yes, I noticed that error and working on the fix for it.
Assignee | ||
Comment 5•14 years ago
|
||
Attachment #489828 -
Attachment is obsolete: true
Comment 6•14 years ago
|
||
Shouldn't console messages be investigated regardless if they're expected or not? Furthermore, will expectLogMessages ever be called? It doesn't look like it, to me.
Comment 7•14 years ago
|
||
Is this likely to cover bug 611890 too?
Assignee | ||
Comment 8•14 years ago
|
||
(In reply to comment #6)
> Shouldn't console messages be investigated regardless if they're expected or
> not? Furthermore, will expectLogMessages ever be called? It doesn't look like
> it, to me.
I'm not clear which test you're referring to here.
Some of the template tests are used to check for errors or messages that are logged on the console. These tests compare the messages that are output which the logging that is expected. A test can define a expectLoggedMessages function if an error is expected to generated during the test. Most error cases are handled in test_tmpl_error.xul however.
Bug 611890 should be fixed by not generating additional errors.
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 9•14 years ago
|
||
The only use of expectLoggedMessages in the harness is
> if (expectLoggedMessages) {
but that doesn't actually call the function, does it?
Assignee | ||
Comment 10•14 years ago
|
||
(In reply to comment #9)
> The only use of expectLoggedMessages in the harness is
>
> > if (expectLoggedMessages) {
>
> but that doesn't actually call the function, does it?
It's set in some of the tests, and called about half-way through test_template()
The call to expectLoggedMessages already exists; this patch doesn't add this function call if that's where your confusion is.
Comment 11•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/509c3d710e15
I don't know if I should mark this as fixed...
Keywords: checkin-needed
Assignee | ||
Updated•14 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•13 years ago
|
Summary: Investigate why template tests occasionally fail → Investigate why rdf template tests occasionally fail
Comment 12•7 years ago
|
||
Moving to Core:XUL per https://bugzilla.mozilla.org/show_bug.cgi?id=1455336
Component: XP Toolkit/Widgets: XUL → XUL
You need to log in
before you can comment on or make changes to this bug.
Description
•