QT 4.8 soft hyphen bug has no failing test case
[WebKit-https.git] / LayoutTests / fast / text / soft-hyphen-5.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../js/resources/js-test-pre.js"></script>
6 </head>
7 <body onload="runTest();">
8     <script>
9         description("Soft Hyphen Test");
10
11         function runTest() {
12             if (window.layoutTestController)
13                 layoutTestController.dumpAsText();
14
15             // 56 is 4 * the font size (14). We're expecting the text to break up into 4 lines.
16             // 4 lines + the padding gives a div height of 92 in webkit and FF, 88 in chrome.
17             // So anything less than 56 is a FAIL.
18             var doesItPass = Boolean(document.getElementById('text1').offsetHeight > 56) ;
19             shouldBeTrue(String(doesItPass)) ;
20         }
21     </script>
22
23     <div id="text1" style="width:150px; font-family:Ahem; font-size:14px; border:2px solid red">
24         <p>anti&shy;dis&shy;est&shy;ab&shy;lish&shy;ment&shy;arian&shy;ism.</p>
25     </div>
26
27 <script src="../js/resources/js-test-post.js"></script>
28 </body>
29 </html>