| <!DOCTYPE html> |
| <html> |
| <head> |
| <script src="resources/frame-programmatic-resize.js"></script> |
| <script> |
| if (window.testRunner) { |
| testRunner.dumpAsText(); |
| testRunner.dumpChildFramesAsText(); |
| } |
| |
| window.onload = runTests; |
| |
| function runTests() |
| { |
| if (!window.eventSender) |
| return; // Cannot run this test without DRT. |
| |
| description("This tests that a frame with a source code-specified noresize attribute can be resized after setting frame.noResize to false."); |
| setTestFrameById("testFrame"); |
| shouldAllowFrameResizeAfterProcessingFrame(function(frame) { frame.noResize = false }); |
| } |
| </script> |
| </head> |
| <frameset cols="200,*" border="10"> |
| <frame id="testFrame" name="testFrame" src="about:blank" noresize> |
| <frame id="results" name="results" src="data:text/html,<p id='description'>This test can only be run using DRT.</p><pre id='console'></pre>"> |
| </frameset> |
| </html> |