Currently the innerHTML is replaced with text:
Tests are finished.
CLOSE ME!
Instead of replacing the innerHTML prepend that text to it.
This way the user can still check the results of the test.
function quitApp() {
log('Done !');
- document.body.innerHTML = 'Tests are finished. <h1>CLOSE ME!</h1>';
+ document.body.innerHTML = 'Tests are finished. <h1>CLOSE ME!</h1>' +
+ document.body.innerHTML;
if (window.SpecialPowers) {
SpecialPowers.quitApplication();
} else {