9 <script src=
"resources/autosizingTest.js"></script>
12 var autosizeContainer
= document
.getElementById('autosize');
13 var forceLayout
= autosizeContainer
.offsetWidth
;
14 var computedFontSize
= parseInt(window
.getComputedStyle(autosizeContainer
).fontSize
);
15 if (computedFontSize
> 10)
16 document
.write('PASS');
18 document
.write('FAIL. Expected a font size above 10, got ' + computedFontSize
);
19 if (window
.testRunner
)
20 testRunner
.dumpAsText();
24 <body onload=
"test()">
26 This test passes if this text is autosized, the font size change is observable from javascript, and FAIL is not printed. I'm just adding lines so this text is long enough to autosize. I'm just adding lines so this text is long enough to autosize. I'm just adding lines so this text is long enough to autosize. I'm just adding lines so this text is long enough to autosize. I'm just adding lines so this text is long enough to autosize. I'm just adding lines so this text is long enough to autosize.