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); |
6 testRunner.overridePreference("WebKitJavaScriptEnabled", false); | 9 testRunner.overridePreference("WebKitJavaScriptEnabled", false); |
7 } | 10 } |
8 | 11 |
9 function loadstatus() { | 12 function loadstatus() { |
10 if (window.testRunner) | 13 var win = window.open("resources/override-preferences-window.html"); |
11 document.getElementById("status").innerHTML = "FAIL"; | 14 win.onload = function() { testRunner.notifyDone() }; |
12 } | 15 } |
| 16 |
13 </script> | 17 </script> |
14 <body onload="loadstatus()"> | 18 <body onload="loadstatus()"> |
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> | 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> |
16 <span id="status">PASS</span> | 20 <span id="status">PASS</span> |
17 </body> | 21 </body> |
18 </html> | 22 </html> |
OLD | NEW |