OLD | NEW |
1 <html> | 1 <html> |
2 <body> | 2 <body> |
3 <script> | 3 <script> |
4 if (window.testRunner) { | 4 if (window.testRunner) { |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText() |
6 testRunner.waitUntilDone(); | |
7 testRunner.setCanOpenWindows(); | |
8 testRunner.setCloseRemainingWindowsWhenComplete(true); | |
9 testRunner.overridePreference("WebKitJavaScriptEnabled", false); | 6 testRunner.overridePreference("WebKitJavaScriptEnabled", false); |
10 } | 7 } |
11 | 8 |
12 function loadstatus() { | 9 function loadstatus() { |
13 var win = window.open("resources/override-preferences-window.html"); | 10 if (window.testRunner) |
14 win.onload = function() { testRunner.notifyDone() }; | 11 document.getElementById("status").innerHTML = "FAIL"; |
15 } | 12 } |
16 | |
17 </script> | 13 </script> |
18 <body onload="loadstatus()"> | 14 <body onload="loadstatus()"> |
19 <p>This is a test that verifies that testRunner can have its default prefere
nces overridden. This test specifically checks that Javascript can be disabled,
and you should see "PASS" below if viewing with a browser.</p> | 15 <p>This is a test that verifies that testRunner can have its default prefere
nces overridden. This test specifically checks that Javascript can be disabled,
and you should see "PASS" below if viewing with a browser.</p> |
20 <span id="status">PASS</span> | 16 <span id="status">PASS</span> |
21 </body> | 17 </body> |
22 </html> | 18 </html> |
OLD | NEW |