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

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

Powered by Google App Engine
This is Rietveld 408576698