michael@0: A word to the wise: michael@0: michael@0: You must ensure that if your test finishes successfully, no processes have michael@0: priority FOREGROUND_HIGH. michael@0: michael@0: If you don't do this, expect to see tests randomly fail with mysterious michael@0: FOREGROUND --> FOREGROUND priority transitions. michael@0: michael@0: What's happening in this case is that your FOREGROUND_HIGH process lives until michael@0: the beginning of the next test. This causes the process started by the next michael@0: test to have low CPU priority. Then the FOREGROUND_HIGH process dies, because michael@0: its iframe gets GC'ed, and we transition the new test's process from low CPU michael@0: priority to regular CPU priority. michael@0: michael@0: Ouch.