File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
modules/javafx.web/src/test/java/test/com/sun/webkit Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 2525
2626package test .com .sun .webkit ;
2727
28+ import com .sun .javafx .PlatformUtil ;
29+ import com .sun .javafx .tk .Toolkit ;
2830import com .sun .webkit .SharedBuffer ;
2931import com .sun .webkit .SharedBufferShim ;
3032import com .sun .webkit .WebPage ;
@@ -50,6 +52,10 @@ public class SharedBufferTest {
5052
5153 @ BeforeClass
5254 public static void beforeClass () throws ClassNotFoundException {
55+ if (PlatformUtil .isWindows ()) {
56+ // Must load Microsoft libs before loading jfxwebkit.dll
57+ Toolkit .loadMSWindowsLibraries ();
58+ }
5359 Class .forName (WebPage .class .getName ());
5460 }
5561
Original file line number Diff line number Diff line change 2525
2626package test .com .sun .webkit ;
2727
28+ import com .sun .javafx .PlatformUtil ;
29+ import com .sun .javafx .tk .Toolkit ;
2830import com .sun .webkit .SharedBuffer ;
2931import com .sun .webkit .SharedBufferShim ;
3032import com .sun .webkit .SimpleSharedBufferInputStream ;
@@ -52,6 +54,10 @@ public class SimpleSharedBufferInputStreamTest {
5254
5355 @ BeforeClass
5456 public static void beforeClass () throws ClassNotFoundException {
57+ if (PlatformUtil .isWindows ()) {
58+ // Must load Microsoft libs before loading jfxwebkit.dll
59+ Toolkit .loadMSWindowsLibraries ();
60+ }
5561 Class .forName (WebPage .class .getName ());
5662 }
5763
You can’t perform that action at this time.
0 commit comments