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

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

Powered by Google App Engine
This is Rietveld 408576698