Index: LayoutTests/fast/harness/override-preferences.html |
diff --git a/LayoutTests/fast/harness/override-preferences.html b/LayoutTests/fast/harness/override-preferences.html |
index 8ad5d250070e507cab3c00704cb0a9c2c75e1f4d..db67ff30dcb81351b5b8163d5e25209132cd385e 100644 |
--- a/LayoutTests/fast/harness/override-preferences.html |
+++ b/LayoutTests/fast/harness/override-preferences.html |
@@ -2,18 +2,14 @@ |
<body> |
<script> |
if (window.testRunner) { |
- testRunner.dumpAsText(); |
- testRunner.waitUntilDone(); |
- testRunner.setCanOpenWindows(); |
- testRunner.setCloseRemainingWindowsWhenComplete(true); |
+ testRunner.dumpAsText() |
testRunner.overridePreference("WebKitJavaScriptEnabled", false); |
} |
function loadstatus() { |
- var win = window.open("resources/override-preferences-window.html"); |
- win.onload = function() { testRunner.notifyDone() }; |
+ if (window.testRunner) |
+ document.getElementById("status").innerHTML = "FAIL"; |
} |
- |
</script> |
<body onload="loadstatus()"> |
<p>This is a test that verifies that testRunner 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> |