Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / events / resize-subframe.html
1 <script>
2     function test()
3     {
4         if (window.testRunner)
5         {
6             testRunner.dumpAsText();
7             testRunner.waitUntilDone();
8         }
9         document.body.offsetTop;
10         document.getElementById("iframe").style.height = "100px";
11     }
12 </script>
13 <body onload="test()">
14     <iframe id="iframe" style="height: 200px;" src="data:text/html,
15         <head>
16             <script>
17                 function resized()
18                 {
19                     if (window.testRunner)
20                     {
21                         alert('PASS');
22                         testRunner.notifyDone();
23                     }
24                     else
25                         document.body.appendChild(document.createTextNode('PASS'));
26                 }
27             </script>
28         </head>
29         <body onresize='resized()'></body>
30     "></iframe>
31 </body>