5 pre
= document
.getElementById('console');
6 pre
.appendChild(document
.createTextNode(str
+ '\n'));
10 if (window
.layoutTestController
)
11 layoutTestController
.dumpAsText();
13 var width
= window
.innerWidth
;
14 var height
= window
.innerHeight
;
16 // Now force scroll bars. innerWidth and innerHeight should not take the scroll bar into account
17 document
.body
.style
.overflow
= 'scroll';
18 document
.body
.offsetTop
;
20 if (width
!= window
.innerWidth
|| height
!= window
.innerHeight
) {
29 <body onload=
"runTests()">
30 This tests that window.innerWidth/innerHeight does not include the size of the scrollbars.
31 <pre id=
"console"></pre>