Skip to content

Commit

Permalink
8242505: Some WebKit tests might fail because Microsoft libraries are…
Browse files Browse the repository at this point in the history
… not loaded

Reviewed-by: ghb
  • Loading branch information
kevinrushforth committed Apr 28, 2020
1 parent ceb3fce commit e0ffca3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -50,6 +52,10 @@ public class SharedBufferTest {

@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());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -52,6 +54,10 @@ public class SimpleSharedBufferInputStreamTest {

@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());
}

Expand Down

0 comments on commit e0ffca3

Please sign in to comment.