Open Bug 526675 Opened 15 years ago Updated 2 years ago

Need to report if the test suite is unloaded when running a test

Categories

(Testing :: Mochitest, defect)

defect

Tracking

(Not tracked)

People

(Reporter: ehsan.akhgari, Unassigned)

Details

Since this wasted a couple of hours of mine today, I decided to file a bug.

We need to modify the browser chrome test harness to report if it's being unloaded while a test is running.  Tests can inadvertently cause this, and if the developer gets a clear message guiding him in this direction, they will have a clear idea of what's happening.

The problem which I ran into today was like below:  I was writing a test for the nsISessionStore.setBrowserState API, which involved setting the browser state to have two windows open, and then restoring it to its original state.  When restoring to the original state, the first window (which was open initially and was reused the first time) would get closed, hence unloading the test suite which effectively left my test's js half executed.
Component: BrowserTest → Mochitest
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.