Reviewed by Darin. Committed by Maciej.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Nov 2005 22:16:15 +0000 (22:16 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Nov 2005 22:16:15 +0000 (22:16 +0000)
- fixed "DumpRenderTree should test for Ahem before doing anything else"
(http://bugzilla.opendarwin.org/show_bug.cgi?id=5838)

        * DumpRenderTree/DumpRenderTree.m:
        (main):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@11318 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/DumpRenderTree.m

index 0909c94317e476c65dabbffc99aed5641ff39457..d07aac2d0ba5f26ea78bc57a1937c400671f8367 100644 (file)
@@ -1,3 +1,13 @@
+2005-11-28  Alexey Proskuryakov  <ap@nypop.com>
+
+        Reviewed by Darin. Committed by Maciej.
+
+       - fixed "DumpRenderTree should test for Ahem before doing anything else"
+       (http://bugzilla.opendarwin.org/show_bug.cgi?id=5838)
+
+        * DumpRenderTree/DumpRenderTree.m:
+        (main):
+
 2005-11-28  Eric Seidel  <eseidel@apple.com>
 
         Reviewed by sullivan and GGAREN.
index 853f96451b46582184aaafa21dc4b1aee367e4bb..c812c249523d5f3ff85acebdd1620da604a3d1e9 100644 (file)
@@ -143,6 +143,11 @@ int main(int argc, const char *argv[])
                 break;
         }
     
+    if ([[[NSFontManager sharedFontManager] availableMembersOfFontFamily:@"Ahem"] count] == 0) {
+               fprintf(stderr, "\nAhem font is not available. This special simple font is used to construct certain types of predictable tests.\n\nTo run regression tests, please get it from <http://webkit.opendarwin.org/quality/Ahem.ttf>.\n");
+               exit(1);
+    }
+    
     WebView *webView = [[WebView alloc] initWithFrame:NSMakeRect(0, 0, width, height)];
     WaitUntilDoneDelegate *delegate = [[WaitUntilDoneDelegate alloc] init];
     EditingDelegate *editingDelegate = [[EditingDelegate alloc] init];