| OLD | NEW | 
|   1 <!doctype html> |   1 <!doctype html> | 
|   2 <html> |   2 <html> | 
|   3 <head> |   3 <head> | 
|   4 <script> |   4 <script> | 
|   5 if (window.testRunner) { |   5 if (window.testRunner) { | 
|   6     testRunner.enableAutoResizeMode(10, 10, 1000, 1000); |   6     testRunner.enableAutoResizeMode(10, 10, 1000, 1000); | 
|   7     testRunner.dumpAsText(); |   7     testRunner.dumpAsText(); | 
|   8     testRunner.dumpChildFramesAsText(); |   8     testRunner.dumpChildFramesAsText(); | 
|   9     testRunner.waitUntilDone(); |   9     testRunner.waitUntilDone(); | 
|  10 } |  10 } | 
|  11  |  11  | 
|  12 function run() |  12 function run() | 
|  13 { |  13 { | 
|  14     var frameWindow = window.frames['frame']; |  14     var frameWindow = document.getElementById("frame").contentWindow; | 
|  15     frameWindow.postMessage("shouldBe('document.body.scrollWidth', 400)", "*"); |  15     frameWindow.postMessage("shouldBe('document.body.scrollWidth', 400)", "*"); | 
|  16     frameWindow.postMessage("shouldBe('document.body.scrollHeight', 200)", "*"); |  16     frameWindow.postMessage("shouldBe('document.body.scrollHeight', 200)", "*"); | 
|  17     frameWindow.postMessage("log('DONE'); if (window.testRunner) testRunner.noti
    fyDone();", "*"); |  17     frameWindow.postMessage("log('DONE'); if (window.testRunner) testRunner.noti
    fyDone();", "*"); | 
|  18 } |  18 } | 
|  19 </script> |  19 </script> | 
|  20 </head> |  20 </head> | 
|  21 <body onload="run()" style="width:400px; height:200px; background-color:yellow;"
    > |  21 <body onload="run()" style="width:400px; height:200px; background-color:yellow;"
    > | 
|  22 <iframe name="frame" style="width:100%; height:100%;" src="resources/iframe.html
    "> |  22 <iframe id="frame" style="width:100%; height:100%;" src="resources/iframe.html"> | 
|  23 </iframe> |  23 </iframe> | 
|  24 </body> |  24 </body> | 
|  25 </html> |  25 </html> | 
| OLD | NEW |