Closed Bug 419826 Opened 18 years ago Closed 18 years ago

Make browser mochitests run on SeaMonkey

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kairo, Assigned: kairo)

References

Details

Attachments

(1 file, 1 obsolete file)

I'm adding browser mochitests for suite/ code in bug 416233 - it would be nice to make the framework for those be able to run out of the box. For locally running the tests, I only needed two small changes, which was 1) using the different chrome URL for SeaMonkey (we'll need to do some detection there) and 2) moving some Cc/Ci vars to a more global scope in the same file (as those aren't defined by default in SeaMonkey. With those small changes, we should be able to get the framework to run on one more application! :)
This small patch makes the browser mochitests run on both Firefox and SeaMonkey trunk (tested with both on Linux). Firefox still runs with no failures, SeaMonkey fails tests that need FUEL or the toolkit download manager, but succeeds on the others.
Assignee: nobody → kairo
Status: NEW → ASSIGNED
Attachment #306316 - Flags: review?(gavin.sharp)
Comment on attachment 306316 [details] [diff] [review] patch: change browser mochtiest framework to run on the suite >+if (Cc == undefined) { Actually, === might be even better here - changed locally thanks to ajschult pointing this out.
Attachment #306316 - Flags: review?(gavin.sharp) → review+
gavin pointed me to the .pl version still being run by the buildbot machines, so if we get bug 416469 resolved, we need that ifdefed as well, carrying forward review per his IRC comment saying I don't need re-review. Does this need approval?
Attachment #306316 - Attachment is obsolete: true
Attachment #306341 - Flags: review+
Blocks: 416469
I believe because it's a test-only change it doesn't. Can I nitpick and ask that the chrome URL for the overlay be moved into a ALL_CAPS_CONSTANT at the top of the files with the other such constants? :-)
OK, added the constant named BROWSER_CHROME_URL (as it's the same as the browser.chromeURL pref) and checked in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Component: Testing → BrowserTest
Product: Core → Testing
QA Contact: testing → browsertest
Version: Trunk → unspecified
Component: BrowserTest → Mochitest
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: