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> |