OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="resources/frame-programmatic-resize.js"></script> | 4 <script src="resources/frame-programmatic-resize.js"></script> |
5 <script> | 5 <script> |
6 if (window.testRunner) { | 6 if (window.testRunner) { |
7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
8 testRunner.dumpChildFramesAsText(); | 8 testRunner.dumpChildFramesAsText(); |
9 } | 9 } |
10 | 10 |
11 window.onload = runTests; | 11 window.onload = runTests; |
12 | 12 |
13 function runTests() | 13 function runTests() |
14 { | 14 { |
15 if (!window.eventSender) | 15 if (!window.eventSender) |
16 return; // Cannot run this test without DRT. | 16 return; // Cannot run this test without DRT. |
17 | 17 |
18 description("This tests that a frame with a source code-specified noresize a
ttribute can be resized after programmatically removing its noresize attribute."
); | 18 description("This tests that a frame with a source code-specified noresize a
ttribute can be resized after programmatically removing its noresize attribute."
); |
19 setTestFrameById("testFrame"); | 19 setTestFrameById("testFrame"); |
20 shouldAllowFrameResizeAfterProcessingFrame(function(frame) { frame.removeAtt
ribute("noresize") }); | 20 shouldAllowFrameResizeAfterProcessingFrame(function(frame) { frame.removeAtt
ribute("noresize") }); |
21 } | 21 } |
22 </script> | 22 </script> |
23 </head> | 23 </head> |
24 <frameset cols="200,*" border="10"> | 24 <frameset cols="200,*" border="10"> |
25 <frame id="testFrame" src="about:blank" noresize> | 25 <frame id="testFrame" name="testFrame" src="about:blank" noresize> |
26 <frame id="results" src="data:text/html,<p id='description'>This test can on
ly be run using DRT.</p><pre id='console'></pre>"> | 26 <frame id="results" name="results" src="data:text/html,<p id='description'>T
his test can only be run using DRT.</p><pre id='console'></pre>"> |
27 </frameset> | 27 </frameset> |
28 </html> | 28 </html> |
OLD | NEW |