WebCore:
[WebKit-https.git] / LayoutTests / platform / mac / plugins / update-widget-from-style-recalc.html
1 <div id="target1"></div>
2 <div id="target2"></div>
3 <script>
4     if (window.layoutTestController)
5         layoutTestController.dumpAsText();
6     
7     var target1 = document.getElementById("target1");
8     target1.offsetTop;
9     target1.style.display = "none";
10     var embed = document.createElement("embed");
11     embed.setAttribute("type", "x-webkit/x-webkit-unknown");
12     target1.appendChild(embed);    
13
14     var target2 = document.getElementById("target2");
15     target2.offsetTop;
16     target2.style.display = "none";
17     var object = document.createElement("object");
18     object.setAttribute("type", "x-webkit/x-webkit-unknown");
19     target2.appendChild(embed);        
20 </script>
21 <p>This tests that we don&rsquo;t crash when forcing a style recalc when inside RenderPartObject::updateWidget.</p >
22 <p>SUCCESS - Did not crash!</p>