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