| var target = document.getElementById("target"); |
| getSelection().setBaseAndExtent(target, 0, target, 0); |
| var head = document.getElementById("head"); |
| var link = document.createElement("link"); |
| link.setAttribute("href", "data:text/css,"); |
| link.setAttribute("rel", "stylesheet"); |
| // This will increase the pending stylesheet count |
| // This will require layout |
| foo.style.width = "100px"; |
| Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=14118">http://bugs.webkit.org/show_bug.cgi?id=14118</a> |
| ASSERTION FAILED: !needsLayout() seen again</i>. |
| No assertion failure here means SUCCESS. |
| <div id="target">This is something to select</div> |