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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.dumpChildFramesAsText(); 6 testRunner.dumpChildFramesAsText();
7 testRunner.waitUntilDone();
8 testRunner.setCanOpenWindows();
9 testRunner.setCloseRemainingWindowsWhenComplete(true);
10 testRunner.overridePreference("WebKitJavaScriptEnabled", false); 7 testRunner.overridePreference("WebKitJavaScriptEnabled", false);
11 } 8 }
12 9
13 function transferResult(sourceWindow) { 10 function shouldNotBeExecuted()
14 document.body.innerHTML = sourceWindow.document.body.innerHTML; 11 {
15 testRunner.notifyDone(); 12 var divElement = document.createElement("div");
16 } 13 divElement.innerHTML = "This text should not present";
17 14 document.body.appendChild(divElement);
18 function runTest() {
19 var win = window.open("resources/xslt-transform-with-javascript-disabled-mai nframe.html");
20 win.onload = function() { transferResult(win) };
21 } 15 }
22 16
23 </script> 17 </script>
24 </head> 18 </head>
25 <body onLoad="runTest();"> 19
20 <body onLoad="shouldNotBeExecuted();">
21 <iframe src="resources/xslt-transform-with-javascript-disabled.xml"/>
26 </body> 22 </body>
27 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698