4 if (window.layoutTestController) {
5 layoutTestController.dumpAsText()
6 layoutTestController.overridePreference("WebKitJavaScriptEnabled", false);
9 function loadstatus() {
10 if (window.layoutTestController)
11 document.getElementById("status").innerHTML = "FAIL";
14 <body onload="loadstatus()">
15 <p>This is a test that verifies that layoutTestController can have its default preferences overridden. This test specifically checks that Javascript can be disabled, and you should see "PASS" below if viewing with a browser.</p>
16 <span id="status">PASS</span>