Keep the results visible in test_slave.html before quitting.

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.
This commit is contained in:
Kalervo Kujala 2011-08-16 23:08:55 +03:00
parent 7888439e53
commit 965193b38d

View File

@ -156,7 +156,8 @@ function sendQuitRequest() {
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 {