Bug 932854 test fixup - reset the test plugin state only after the UI has finished checking plugin state, r=gfritzsche

This commit is contained in:
Benjamin Smedberg 2013-11-12 09:45:11 -05:00
parent 82b284d489
commit ff589cda42

View File

@ -28,7 +28,10 @@ function runTests() {
is(exceptionThrown, false, "Exception thrown setting undefined variable.");
is(rv, false, "Setting undefined variable succeeded.");
SimpleTest.finish();
// give the UI a chance to settle with the current enabled plugin state
// before we finish the test and reset the state to disabled. Otherwise
// the UI shows the plugin infobar!
SimpleTest.executeSoon(SimpleTest.finish);
}
]]>
</script>