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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/harness/resources/override-preferences-window.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/harness/override-preferences.html
diff --git a/LayoutTests/fast/harness/override-preferences.html b/LayoutTests/fast/harness/override-preferences.html
index db67ff30dcb81351b5b8163d5e25209132cd385e..8ad5d250070e507cab3c00704cb0a9c2c75e1f4d 100644
--- a/LayoutTests/fast/harness/override-preferences.html
+++ b/LayoutTests/fast/harness/override-preferences.html
@@ -2,14 +2,18 @@
<body>
<script>
if (window.testRunner) {
- testRunner.dumpAsText()
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ testRunner.setCanOpenWindows();
+ testRunner.setCloseRemainingWindowsWhenComplete(true);
testRunner.overridePreference("WebKitJavaScriptEnabled", false);
}
function loadstatus() {
- if (window.testRunner)
- document.getElementById("status").innerHTML = "FAIL";
+ var win = window.open("resources/override-preferences-window.html");
+ win.onload = function() { testRunner.notifyDone() };
}
+
</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>
« 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