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

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

Issue 375263002: Revert of 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);
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>
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