diff --git a/plugins/c9.ide.preferences/preferences_test.js b/plugins/c9.ide.preferences/preferences_test.js index c21b7ec9..cd892555 100644 --- a/plugins/c9.ide.preferences/preferences_test.js +++ b/plugins/c9.ide.preferences/preferences_test.js @@ -185,10 +185,12 @@ require([ }); }); - after(function(done) { - document.body.style.marginBottom = ""; - done(); - }); + if (!onload.remain) { + after(function(done) { + document.body.style.marginBottom = ""; + done(); + }); + } }); onload && onload();