2002/css-validator/autotest/client checktests.js,1.5,1.6

Update of /sources/public/2002/css-validator/autotest/client
In directory hutz:/tmp/cvs-serv31816

Modified Files:
	checktests.js 
Log Message:
function to check all tests


Index: checktests.js
===================================================================
RCS file: /sources/public/2002/css-validator/autotest/client/checktests.js,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- checktests.js	3 Mar 2009 22:27:30 -0000	1.5
+++ checktests.js	4 Mar 2009 11:04:49 -0000	1.6
@@ -61,7 +61,7 @@
     checkURI(testrow, resultrow, uri, cssprofile)
 }
 
-function gogo(tableid) {
+function checkTableTests(tableid) {
     var testTable = document.getElementById(tableid);
     if (testTable) {
 	var allTests = testTable.getElementsByTagName('tr')
@@ -74,6 +74,21 @@
     }
 }
 
+function checkAllTests() {
+    var controldiv = document.getElementById("controldiv");
+    if (controldiv) {
+	var allLis = controldiv.getElementsByTagName("li");
+	for (var i=0; i<allLis.length; i++) {
+	    var a = allLis[i].getElementsByTagName("a");
+	    if (a.length > 0) {
+		var thref = a[0].getAttribute("href");
+		var tableId = thref.substring(1);
+		checkTableTests(tableId);
+	    }
+	}
+    }
+}
+
 function resetresults(tableid) {
     var testTable = document.getElementById(tableid);
     if (testTable) {

Received on Wednesday, 4 March 2009 11:04:59 UTC