Closed Bug 973560 Opened 12 years ago Closed 11 years ago

Mutt test 'testController/testExpectedEvents.js' fails under xvfb with 'TypeError: callback is not a function'

Categories

(Testing Graveyard :: Mozmill, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: whimboo, Unassigned, Mentored)

References

()

Details

(Whiteboard: [lang=js])

Running Mozmill under xvfb on Linux on display 99 always causes the following test to fail: $ DISPLAY=0:99 time mozmill -b /mozilla/bin/nightly/firefox -t mutt/mutt/tests/js/testController/testExpectedEvents.js Failure: ERROR | Test Failure | { "exception": { "message": "MozMillElement.mouseEvent() contextmenu event fired", "lineNumber": 24, "name": "Error", "fileName": "resource://mozmill/stdlib/EventUtils.js" } } TEST-UNEXPECTED-FAIL | /mozilla/code/mozmill/mutt/mutt/tests/js/testController/testExpectedEvents.js | test TEST-END | /mozilla/code/mozmill/mutt/mutt/tests/js/testController/testExpectedEvents.js | finished in 207ms CRITICAL | Framework Failure | { "message": "[JavaScript Error: \"MozMillElement.mouseEvent() contextmenu event target \" {file: \"resource://mozmill/stdlib/EventUtils.js\" line: 24}]" } !!! error running onStopped callback: TypeError: callback is not a function
Whiteboard: [mentor=whimboo][lang=js] → [mentor=whimboo][lang=js][good first bug]
Not sure why this should be a good first bug. Please ask the owners of a component before you do those changes. Thanks.
Whiteboard: [mentor=whimboo][lang=js][good first bug] → [mentor=whimboo][lang=js]
I see this occasionally, usually when a test has failed for some other reason and hasn't done its final cleanup. As far as I can tell, it's coming from httpd.js (we have several copies in the tree; see http://dxr.mozilla.org/mozilla-central/search?q=%22error+running+onStopped+callback%22&case=true). When xpcshell is shutting down, the socket in use by httpd.js is automatically closed, and httpd.js gets the shutdown notification. httpd.js tries to call back to a listener waiting for the async shutdown, but in this case nobody has called httpserver.stop(aCallback), so there is nothing to call.
Mentor: hskupin
Whiteboard: [mentor=whimboo][lang=js] → [lang=js]
Mozmill will reach its end of life soon. We are currently working on getting all the tests for Firefox ported to Marionette. For status updates please see bug 1080766.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.