| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <script> | 2 <script> |
| 3 if (window.testRunner) { | 3 if (window.testRunner) { |
| 4 testRunner.dumpAsText(); | 4 testRunner.dumpAsText(); |
| 5 testRunner.waitUntilDone(); | 5 testRunner.waitUntilDone(); |
| 6 } | 6 } |
| 7 | 7 |
| 8 var windowObject; | 8 var windowObject; |
| 9 | 9 |
| 10 function getWindow() | 10 function getWindow() |
| 11 { | 11 { |
| 12 windowObject = subframe; | 12 windowObject = subframe; |
| 13 subframe.location.href = 'resources/blank.html'; | 13 subframe.location.href = 'resources/blank.html'; |
| 14 } | 14 } |
| 15 | 15 |
| 16 function checkWindowAccess() | 16 function checkWindowAccess() |
| 17 { | 17 { |
| 18 if (windowObject && windowObject.document && /blank.html/.test(windowObject.
location)) { | 18 if (windowObject && windowObject.document && /blank.html/.test(windowObject.
location)) { |
| 19 document.getElementById('result').innerHTML = 'SUCCESS'; | 19 document.getElementById('result').innerHTML = 'SUCCESS'; |
| 20 if (window.testRunner) | 20 if (window.testRunner) |
| 21 testRunner.notifyDone(); | 21 testRunner.notifyDone(); |
| 22 } | 22 } |
| 23 } | 23 } |
| 24 </script> | 24 </script> |
| 25 <body onload='getWindow()'> | 25 <body onload='getWindow()'> |
| 26 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=27394">bug 27394</a>
: | 26 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=27394">bug 27394</a>
: |
| 27 properties on a window object should be accessible after the frame of the window
object has navigated to another page.</p> | 27 properties on a window object should be accessible after the frame of the window
object has navigated to another page.</p> |
| 28 <div id='result'>FAILED</div> | 28 <div id='result'>FAILED</div> |
| 29 <iframe id='subframe' onload='checkWindowAccess()'></iframe> | 29 <iframe name='subframe' onload='checkWindowAccess()'></iframe> |
| 30 </body> | 30 </body> |
| 31 </html> | 31 </html> |
| OLD | NEW |