Skip to content
Permalink
Browse files

8242505: Some WebKit tests might fail because Microsoft libraries are…

… not loaded

Reviewed-by: ghb
  • Loading branch information
kevinrushforth committed Apr 28, 2020
1 parent ceb3fce commit e0ffca32c5c6d98be9e43a4c2b7c1fb7f5216e85
@@ -25,6 +25,8 @@

package test.com.sun.webkit;

import com.sun.javafx.PlatformUtil;
import com.sun.javafx.tk.Toolkit;
import com.sun.webkit.SharedBuffer;
import com.sun.webkit.SharedBufferShim;
import com.sun.webkit.WebPage;
@@ -50,6 +52,10 @@

@BeforeClass
public static void beforeClass() throws ClassNotFoundException {
if (PlatformUtil.isWindows()) {
// Must load Microsoft libs before loading jfxwebkit.dll
Toolkit.loadMSWindowsLibraries();
}
Class.forName(WebPage.class.getName());
}

@@ -25,6 +25,8 @@

package test.com.sun.webkit;

import com.sun.javafx.PlatformUtil;
import com.sun.javafx.tk.Toolkit;
import com.sun.webkit.SharedBuffer;
import com.sun.webkit.SharedBufferShim;
import com.sun.webkit.SimpleSharedBufferInputStream;
@@ -52,6 +54,10 @@

@BeforeClass
public static void beforeClass() throws ClassNotFoundException {
if (PlatformUtil.isWindows()) {
// Must load Microsoft libs before loading jfxwebkit.dll
Toolkit.loadMSWindowsLibraries();
}
Class.forName(WebPage.class.getName());
}

0 comments on commit e0ffca3

Please sign in to comment.