]> git.parisson.com Git - pdf.js.git/commitdiff
Keep the results visible in test_slave.html before quitting.
authorKalervo Kujala <kkujala@>
Tue, 16 Aug 2011 20:08:55 +0000 (23:08 +0300)
committerKalervo Kujala <kkujala@>
Tue, 16 Aug 2011 20:16:29 +0000 (23:16 +0300)
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.

test/driver.js

index f12dcae239f9f8a2284395e7a98f1e2436c7dc21..92fc00af1f18cbaa1916482f3390e5f7694f8336 100644 (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 {