4 <p>This test ensures WebKit renders text node between two BR elements in a pre when inserted by a script immediately after triggering a layout. You should see PASS below:
</p>
5 <pre id=
"test" style=
"width: 10ex;">---------- -----
<br><br></pre>
8 document
.body
.offsetTop
;
10 var text
= document
.createTextNode('text');
11 var span
= document
.createElement('span');
12 span
.appendChild(text
);
13 test
.insertBefore(span
, document
.getElementsByTagName('br')[1]);
15 var passed
= span
.offsetHeight
> 0 ? true : false;
16 test
.parentNode
.removeChild(test
);
18 if (window
.testRunner
)
19 testRunner
.dumpAsText();
20 document
.writeln(passed
? 'PASS' : 'FAIL');