[webkit-help] Running webkit tests on windows

Jason Rukman JasonR at bsquare.com
Wed Apr 7 17:35:14 PDT 2010


I've been trying to get the webkit tests running on windows...I'm pretty close and a lot of the tests are passing however, it looks like I have a problem with several at the moment because of what I think may be an issue with fonts.



I've followed the directions for getting fonts at http://trac.webkit.org/wiki/BuildingOnWindows (which seems to have an issue because the ttc files don't quite decompress the Lucida Grande mac ttc file for me; so I had to get it from somewhere else).  I'm not sure if this is my problem though; but I do have Lucida Grande and Lucida Grande Bold fonts (just not the ones from my mac).  I've stepped through the DumpRenderTree code and I've seen it register all the fonts successfully in WebTextRenderer::registerPrivateFont and it seems to be ok.



However, when I run the tests it seems to fail for the sans-serif font areas.  Here's one of my failures below.  Does someone know which font this test uses for sans-serif and where I can get it from since I'm guessing I have the wrong one.



Is there some way to know which fonts are used in text runs or is there a good breakpoint I can set somewhere to figure this out?



e.g. this line shows a different width for the text run:

-          text run at (0,3) width 348: "This element should be in a sans-serif font. "

+          text run at (0,3) width 375: "This element should be in a sans-serif font. "



Here's my full test failure for css1/font_properties/font.html



--- /tmp/layout-test-results/css1/font_properties/font-expected.txt     2010-04-07 17:31:03.720919800 -0700

+++ /tmp/layout-test-results/css1/font_properties/font-actual.txt 2010-04-07 17:31:03.720919800 -0700

@@ -48,12 +48,12 @@

           text run at (423,29) width 297: "Extra text is included for the purposes of"

           text run at (0,56) width 208: "testing this more effectively."

       RenderBlock {P} at (0,388) size 769x81

-        RenderText {#text} at (0,3) size 760x75

-          text run at (0,3) width 348: "This element should be in a sans-serif font. "

-          text run at (348,3) width 412: "Its font-size should be 150% the base font size, and"

-          text run at (0,30) width 568: "its line-height should 150% of that value (18px and 27px, respectively). "

-          text run at (568,30) width 192: "Extra text is included for"

-          text run at (0,57) width 351: "the purposes of testing this more effectively."

+        RenderText {#text} at (0,3) size 734x75

+          text run at (0,3) width 375: "This element should be in a sans-serif font. "

+          text run at (375,3) width 358: "Its font-size should be 150% the base font"

+          text run at (0,30) width 689: "size, and its line-height should 150% of that value (18px and 27px, respectively). "

+          text run at (689,30) width 45: "Extra"

+          text run at (0,57) width 548: "text is included for the purposes of testing this more effectively."

       RenderBlock {P} at (0,487) size 769x78

         RenderText {#text} at (0,2) size 762x47

           text run at (0,2) width 628: "This element should be in a cursive font, 'small' in size, with a line-height 200% the height of the text's actual size. "

@@ -106,10 +106,11 @@

           text run at (176,79) width 500: "Extra text is included for the purposes of testing this more"

           text run at (0,115) width 93: "effectively."

       RenderBlock {P} at (0,1519) size 769x50

-        RenderText {#text} at (0,6) size 751x37

-          text run at (0,6) width 301: "This element should be in a sans-serif font, with a weight of 400. "

-          text run at (301,6) width 450: "Its font-size should be 80% of 12px, or 10px, and its line-height shoud be 2.5 times that, or 25px."

-          text run at (0,31) width 318: "Extra text is included for the purposes of testing this more effectively."

+        RenderText {#text} at (0,6) size 756x37

+          text run at (0,6) width 317: "This element should be in a sans-serif font, with a weight of 400. "

+          text run at (317,6) width 439: "Its font-size should be 80% of 12px, or 10px, and its line-height shoud be 2.5 times that, or"

+          text run at (0,31) width 30: "25px. "

+          text run at (30,31) width 341: "Extra text is included for the purposes of testing this more effectively."

       RenderBlock {P} at (0,1587) size 769x216

         RenderInline {SPAN} at (0,0) size 765x183 [bgcolor=#C0C0C0]

           RenderText {#text} at (0,16) size 765x183

@@ -148,13 +149,13 @@

                   text run at (138,76) width 563: "Extra text is included for the purposes of testing this more"

                   text run at (0,112) width 111: "effectively."

               RenderBlock {P} at (4,269) size 747x144

-                RenderText {#text} at (0,4) size 733x136

-                  text run at (0,4) width 461: "This element should be in a sans-serif font. "

-                  text run at (461,4) width 232: "Its font-size should be"

-                  text run at (0,40) width 733: "150% the base font size, and its line-height should 150% of that value"

-                  text run at (0,76) width 324: "(18px and 27px, respectively). "

-                  text run at (324,76) width 399: "Extra text is included for the purposes"

-                  text run at (0,112) width 322: "of testing this more effectively."

+                RenderText {#text} at (0,4) size 731x136

+                  text run at (0,4) width 509: "This element should be in a sans-serif font. "

+                  text run at (509,4) width 222: "Its font-size should"

+                  text run at (0,40) width 716: "be 150% the base font size, and its line-height should 150% of"

+                  text run at (0,76) width 469: "that value (18px and 27px, respectively). "

+                  text run at (469,76) width 244: "Extra text is included"

+                  text run at (0,112) width 558: "for the purposes of testing this more effectively."

               RenderBlock {P} at (4,437) size 747x78

                 RenderText {#text} at (0,2) size 731x47

                   text run at (0,2) width 628: "This element should be in a cursive font, 'small' in size, with a line-height 200% the height of the text's actual size. "

@@ -209,11 +210,11 @@

                   text run at (176,79) width 500: "Extra text is included for the purposes of testing this more"

                   text run at (0,115) width 93: "effectively."

               RenderBlock {P} at (4,1877) size 747x66

-                RenderText {#text} at (0,9) size 745x48

-                  text run at (0,9) width 378: "This element should be in a sans-serif font, with a weight of 400. "

-                  text run at (378,9) width 367: "Its font-size should be 80% of 12px, or 10px, and its line-height"

-                  text run at (0,42) width 196: "shoud be 2.5 times that, or 25px. "

-                  text run at (196,42) width 405: "Extra text is included for the purposes of testing this more effectively."

+                RenderText {#text} at (0,9) size 732x48

+                  text run at (0,9) width 410: "This element should be in a sans-serif font, with a weight of 400. "

+                  text run at (410,9) width 322: "Its font-size should be 80% of 12px, or 10px, and its"

+                  text run at (0,42) width 281: "line-height shoud be 2.5 times that, or 25px. "

+                  text run at (281,42) width 441: "Extra text is included for the purposes of testing this more effectively."

               RenderBlock {P} at (4,1967) size 747x432

                 RenderInline {SPAN} at (0,0) size 716x388 [bgcolor=#C0C0C0]

                   RenderText {#text} at (0,22) size 716x388
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20100408/b8b2b7fc/attachment-0001.html>


More information about the webkit-help mailing list