Add support on Windows for WEBKIT_TESTFONTS
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Nov 2007 18:57:49 +0000 (18:57 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Nov 2007 18:57:49 +0000 (18:57 +0000)
commitf13dd53a5869c510281995b2e4fc56328232e954
treeef433a0142b83ced4bf5e9c8a9eb0ce3d635b0cc
parentbc05ad2f1b296bba42aa6b05366bfc0acabf0085
     Add support on Windows for WEBKIT_TESTFONTS

         This environment variable lets you specify where the fonts to be used
         by DumpRenderTree reside. The Qt port is already using this, so I'm
         just following their lead.

         Reviewed by Darin.

         * DumpRenderTree/win/DumpRenderTree.cpp:
         (exePath): Refactored code out of initialize().
         (fontsPath): Returns either $WEBKIT_TESTFONTS or
         DumpRenderTree.resources.
         (initialize): Use the new fontsPath function.
         (main): Use the new exePath function.
         * Scripts/run-webkit-tests: Propagate the WEBKIT_TESTFONTS environment
         variable to DRT, like Qt does.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27446 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/win/DumpRenderTree.cpp
WebKitTools/Scripts/run-webkit-tests