Title: [111801] trunk/LayoutTests
Revision
111801
Author
[email protected]
Date
2012-03-22 18:04:07 -0700 (Thu, 22 Mar 2012)

Log Message

QT 4.8 soft hyphen bug has no failing test case
https://bugs.webkit.org/show_bug.cgi?id=81964

Patch by Dave Tharp <[email protected]> on 2012-03-22
Reviewed by Beth Dakin.

Adding test to expose soft hyphen problem in QT 4.8.0

* fast/text/soft-hyphen-5-expected.txt: Added.
* fast/text/soft-hyphen-5.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (111800 => 111801)


--- trunk/LayoutTests/ChangeLog	2012-03-23 00:57:44 UTC (rev 111800)
+++ trunk/LayoutTests/ChangeLog	2012-03-23 01:04:07 UTC (rev 111801)
@@ -1,3 +1,15 @@
+2012-03-22  Dave Tharp  <[email protected]>
+
+        QT 4.8 soft hyphen bug has no failing test case
+        https://bugs.webkit.org/show_bug.cgi?id=81964
+
+        Reviewed by Beth Dakin.
+
+        Adding test to expose soft hyphen problem in QT 4.8.0
+
+        * fast/text/soft-hyphen-5-expected.txt: Added.
+        * fast/text/soft-hyphen-5.html: Added.
+
 2012-03-22  Emil A Eklund  <[email protected]>
 
         Unreviewed rebaseline for chromium leopard.

Added: trunk/LayoutTests/fast/text/soft-hyphen-5-expected.txt (0 => 111801)


--- trunk/LayoutTests/fast/text/soft-hyphen-5-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/text/soft-hyphen-5-expected.txt	2012-03-23 01:04:07 UTC (rev 111801)
@@ -0,0 +1,10 @@
+Soft Hyphen Test
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+PASS true is true
+anti­dis­est­ab­lish­ment­arian­ism.

Added: trunk/LayoutTests/fast/text/soft-hyphen-5.html (0 => 111801)


--- trunk/LayoutTests/fast/text/soft-hyphen-5.html	                        (rev 0)
+++ trunk/LayoutTests/fast/text/soft-hyphen-5.html	2012-03-23 01:04:07 UTC (rev 111801)
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<script src=""
+</head>
+<body _onload_="runTest();">
+    <script>
+        description("Soft Hyphen Test");
+
+        function runTest() {
+            if (window.layoutTestController)
+                layoutTestController.dumpAsText();
+
+            // 56 is 4 * the font size (14). We're expecting the text to break up into 4 lines.
+            // 4 lines + the padding gives a div height of 92 in webkit and FF, 88 in chrome.
+            // So anything less than 56 is a FAIL.
+            var doesItPass = Boolean(document.getElementById('text1').offsetHeight > 56) ;
+            shouldBeTrue(String(doesItPass)) ;
+        }
+    </script>
+
+    <div id="text1" style="width:150px; font-family:Ahem; font-size:14px; border:2px solid red">
+        <p>anti&shy;dis&shy;est&shy;ab&shy;lish&shy;ment&shy;arian&shy;ism.</p>
+    </div>
+
+<script src=""
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to