5 <meta name=
"viewport" content=
"width=800">
7 html { font-size:
16px; }
8 body { width:
800px; margin:
0; overflow-y: hidden; }
11 <script src=
"resources/autosizingTest.js"></script>
17 function enableAutosizing(enabled
) {
19 window
.internals
.settings
.setTextAutosizingEnabled(enabled
);
22 function addCluster() {
23 var cluster
= '<table><tr><td>' +
24 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut' +
25 'labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco' +
26 'laboris ni si ut aliquip ex ea commodo consequat.' +
28 document
.body
.innerHTML
+= cluster
;
31 function removeCluster() {
32 var tables
= document
.getElementsByTagName('table');
34 tables
[tables
.length
- 1].parentElement
.removeChild(tables
[tables
.length
- 1]);
39 var forceLayout1
= document
.body
.offsetTop
;
40 enableAutosizing(false);
43 var forceLayout2
= document
.body
.offsetTop
;
44 enableAutosizing(true);
46 var forceLayout3
= document
.body
.offsetTop
;
47 document
.body
.innerHTML
= "PASS";
49 if (window
.testRunner
)
50 testRunner
.dumpAsText();