- 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
+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.
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];