Fixed result bug
authorPhilippe Le Hégaret <plh@w3.org>
Mon, 26 Jan 2009 17:44:03 +0000
changeset 83 84e00cade84e
parent 82 811137696e2f
child 84 df43d5963285
Fixed result bug
testsuite/web-framework/functions.js
--- a/testsuite/web-framework/functions.js	Mon Jan 26 17:35:56 2009 +0000
+++ b/testsuite/web-framework/functions.js	Mon Jan 26 17:44:03 2009 +0000
@@ -647,10 +647,11 @@
     }
     handleSelection(0);
 
-    // initialize skipOnResult
-    var nSkipOnResult = document.getElementById("skipOnResult").checked;
-    switchSkipOnResult(nSkipOnResult);
-
+    if (displayResult) {
+	// initialize skipOnResult
+	var nSkipOnResult = document.getElementById("skipOnResult").checked;
+	switchSkipOnResult(nSkipOnResult);
+    }
     // initialize autostart
     var nAutostart = document.getElementById("autostart").checked;
     switchAutostart(nAutostart);