Closed
Bug 524828
Opened 15 years ago
Closed 15 years ago
Intermittent failure in test_smilGetStartTime.xhtml
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: philor, Assigned: birtles)
References
Details
(Keywords: intermittent-failure)
Attachments
(1 file)
694 bytes,
patch
|
Details | Diff | Splinter Review |
Could be a one-off, but: http://tinderbox.mozilla.org/showlog.cgi?log=Firefox-Unittest/1256648611.1256649429.21103.gz Linux mozilla-central test mochitests-1/5 on 2009/10/27 06:03:31 [[[ 44395 INFO Running /tests/content/smil/test/test_smilGetStartTime.xhtml... 44396 INFO TEST-PASS | /tests/content/smil/test/test_smilGetStartTime.xhtml | Unexpected exception code from getStartTime. 44397 INFO TEST-PASS | /tests/content/smil/test/test_smilGetStartTime.xhtml | No exception thrown for indefinite start time. 44398 INFO TEST-PASS | /tests/content/smil/test/test_smilGetStartTime.xhtml | Unexpected start time with begin=1s 44399 ERROR TEST-UNEXPECTED-FAIL | /tests/content/smil/test/test_smilGetStartTime.xhtml | [SimpleTest/SimpleTest.js, window.onerror] An error occurred - uncaught exception: [Exception... "An attempt was made to use an object that is not, or is no longer, usable" code: "11" nsresult: "0x8053000b (NS_ERROR_DOM_INVALID_STATE_ERR)" location: "http://localhost:8888/tests/content/smil/test/test_smilGetStartTime.xhtml Line: 49"] at :0 ]]]
Reporter | ||
Updated•15 years ago
|
Whiteboard: [orange]
Comment 1•15 years ago
|
||
Weird... so it looks like the exception fired somewhere after line 43 and before (or on) line 49 of the test: 43 is(anim.getStartTime(), 1, "Unexpected start time with begin=1s"); 44 45 // We have to be careful here when choosing a negative time that we choose 46 // a time that will create an interval that reaches past t=0 as SMIL has 47 // special rules for throwing away intervals that end before t=0 48 anim.setAttribute("begin", "-0.5s"); 49 is(anim.getStartTime(), -0.5, "Unexpected start time with begin=-0.5s"); http://mxr.mozilla.org/mozilla-central/source/content/smil/test/test_smilGetStartTime.xhtml
Assignee | ||
Comment 2•15 years ago
|
||
getStartTime throws exceptions since bug 521705 (as per SVG 1.1 SE). But that change landed 2 weeks ago so it's odd that it shouldn't have failed until now. Anyway, I think the problem is just that we're not pausing animations in that test. So sometimes (when the server is a bit bogged down) we're actually sampling after the active duration, i.e. in the postactive state, which will cause an exception to throw (again, as per SVG 1.1 SE behaviour). If that's the case, we really should just pause animations at the start of the test. Unfortunately I can't check in from this computer. I can do it later, but if someone else agrees that that's the problem then please go ahead and patch it.
Assignee | ||
Comment 3•15 years ago
|
||
I think this should fix it.
Assignee: nobody → birtles
Status: NEW → ASSIGNED
Comment 4•15 years ago
|
||
Looks good to me.
Assignee | ||
Comment 5•15 years ago
|
||
Pushed: http://hg.mozilla.org/mozilla-central/rev/001e14d17a30
Comment 6•15 years ago
|
||
(In reply to comment #5) > Pushed: http://hg.mozilla.org/mozilla-central/rev/001e14d17a30 Empty changeset :-/
Assignee | ||
Comment 7•15 years ago
|
||
:) Thanks for picking that up. Not sure what happened there. I'll try again soon.
Assignee | ||
Comment 8•15 years ago
|
||
This time for sure: http://hg.mozilla.org/mozilla-central/rev/d1c5512a3586
Assignee | ||
Comment 9•15 years ago
|
||
Ok, since a similar fix seems to have been successful for bug 522878 and this has been in the tree for two weeks I'm pretty confident it's fixed.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Keywords: intermittent-failure
Updated•12 years ago
|
Whiteboard: [orange]
You need to log in
before you can comment on or make changes to this bug.
Description
•