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

Unified Diff: LayoutTests/http/tests/xsl/xslt-transform-with-javascript-disabled.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
Index: LayoutTests/http/tests/xsl/xslt-transform-with-javascript-disabled.html
diff --git a/LayoutTests/http/tests/xsl/xslt-transform-with-javascript-disabled.html b/LayoutTests/http/tests/xsl/xslt-transform-with-javascript-disabled.html
index cb90582b3908336ea3988f814e38762fc37b577e..e2edbeca6791b9b1b1ca09c78ac4e2c69729117c 100644
--- a/LayoutTests/http/tests/xsl/xslt-transform-with-javascript-disabled.html
+++ b/LayoutTests/http/tests/xsl/xslt-transform-with-javascript-disabled.html
@@ -4,20 +4,24 @@
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.dumpChildFramesAsText();
+ testRunner.waitUntilDone();
+ testRunner.setCanOpenWindows();
+ testRunner.setCloseRemainingWindowsWhenComplete(true);
testRunner.overridePreference("WebKitJavaScriptEnabled", false);
}
-function shouldNotBeExecuted()
-{
- var divElement = document.createElement("div");
- divElement.innerHTML = "This text should not present";
- document.body.appendChild(divElement);
+function transferResult(sourceWindow) {
+ document.body.innerHTML = sourceWindow.document.body.innerHTML;
+ testRunner.notifyDone();
+}
+
+function runTest() {
+ var win = window.open("resources/xslt-transform-with-javascript-disabled-mainframe.html");
+ win.onload = function() { transferResult(win) };
}
</script>
</head>
-
-<body onLoad="shouldNotBeExecuted();">
- <iframe src="resources/xslt-transform-with-javascript-disabled.xml"/>
+<body onLoad="runTest();">
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698