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