Add WebKitInitializer and use it in DumpRenderTree and testkjs
[WebKit-https.git] / JavaScriptCore / kjs / testkjs.cpp
index 68ba146..74c32df 100644 (file)
@@ -41,6 +41,7 @@
 #include "protect.h"
 
 #if PLATFORM(WIN_OS)
+#include <WebKitInitializer/WebKitInitializer.h>
 #include <windows.h>
 #include <crtdbg.h>
 #endif
@@ -204,6 +205,12 @@ int kjsmain(int argc, char** argv);
 
 int main(int argc, char** argv)
 {
+#if PLATFORM(WIN_OS)
+    if (!initializeWebKit()) {
+        fprintf(stderr, "Failed to initialize WebKit\n");
+        abort();
+    }
+#endif
 #if defined(_DEBUG) && PLATFORM(WIN_OS)
     _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
     _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);