3 <title>Bug 25313 : Missing scrollbars in GMail</title>
5 if (window.layoutTestController)
6 window.layoutTestController.dumpAsText();
10 var content = '<html><head><style>' +
11 'html,body { margin: 0; overflow: hidden; height: 100%; width: 100% } ' +
12 'html.scroll { overflow-x: auto; overflow-y: scroll; } ' +
13 '</style><body><div id="offender" style="height: 900px;"></div></body></html>';
14 var injectee = document.getElementById("injectee");
15 var doc = injectee.contentDocument;
20 doc.getElementsByTagName("html")[0].className = "scroll";
21 // tickle ScrollView::updateScrollbars()
22 doc.getElementById("offender").scrollIntoView(false);
24 injectee.style.width = "400px";
25 // measure to see if there is a scrollbar. Pass if there is.
26 document.getElementById("test").innerHTML = doc.body.offsetWidth < 400 ? "TEST PASSED" : "TEST FAILED";
32 Tests <kbd>ScrollView</kbd>'s behavior when only one of the scrollbars is made <kbd>ScrollbarAlwaysOn</kbd> dynamically.
33 The correct behavior is not to remove this scrollbar, which is what this test checks for.
36 <iframe style="height:100%" id="injectee" onload="inject()">