Bug 914890 - While running a standalone mochitest, prefs and permissions should also reset after the mochitest run. r=jmaher

This commit is contained in:
Martijn Wargers 2013-09-30 15:05:21 +02:00
parent 056df755ad
commit b334b48a52

View File

@ -779,7 +779,11 @@ SimpleTest.finish = function () {
/* We're running in an iframe, and the parent has a TestRunner */
parentRunner.testFinished(SimpleTest._tests);
} else {
SimpleTest.showReport();
SpecialPowers.flushPermissions(function () {
SpecialPowers.flushPrefEnv(function() {
SimpleTest.showReport();
});
});
}
};