Another round of diagnostics for bug 536603.
authorZack Weinberg <zackw@panix.com>
Tue, 02 Oct 2012 09:50:19 -0400
changeset 108939 645f41404b82a986d426c41f46b9ad2cd3a70337
parent 108938 784278a210914dca7a1c992a1d7ed97c71cb92ab
child 109000 345a2a8ccb18eebe27b650e7f760be1373b94e4b
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
bugs536603
milestone18.0a1
Another round of diagnostics for bug 536603.
layout/style/test/ccd.sjs
--- a/layout/style/test/ccd.sjs
+++ b/layout/style/test/ccd.sjs
@@ -56,18 +56,22 @@ function handleRequest(request, response
 	response.write(selector + '{background-color:blue}\n');
     } else if (DEBUG_all_stub) {
 	// In this mode, every test chip for a case where the true test
 	// sheet would be honored, should turn red.
 	response.setHeader('Content-Type', 'text/css');
 	response.write(selector + '{}\n');
     } else {
 	// Normal operation.
+        let contentType = responseCSS ? 'text/css' : 'text/html';
+        let responseBody = (leader + selector +
+	                    '{background-color:' + color + '}' +
+		            trailer + '\n');
+        dump("TEST-INFO | ccd.sjs | " + request.queryString + " | " +
+             contentType + " | " + (httpError ? '500' : '200') + " | " +
+             responseBody);
 	if (httpError)
 	    response.setStatusLine(request.httpVersion, 500,
 				   "Internal Server Error");
-	response.setHeader('Content-Type',
-			   responseCSS ? 'text/css' : 'text/html');
-	response.write(leader + selector +
-		       '{background-color:' + color + '}' +
-		       trailer + '\n');
+        response.setHeader('Content-Type', contentType);
+	response.write(responseBody);
     }
 }