Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: LayoutTests/fast/harness/override-preferences.html

Issue 313173012: HTMLParser should use current value of scriptEnabled flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@WebKit-ADD
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/harness/resources/override-preferences-window.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/harness/resources/override-preferences-window.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698