Skip to content

Commit 2398c31

Browse files
committed
ADAP-78: added unit test case for preload in windowOptions
1 parent 0f33778 commit 2398c31

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/test/java/com/openfin/desktop/WindowTest.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -642,14 +642,9 @@ public void onError(Ack ack) {
642642

643643
@Test
644644
public void preload() throws Exception {
645-
URL preloadHtml = WindowTest.class.getClassLoader().getResource("preload.html");
646-
URL preloadJs = WindowTest.class.getClassLoader().getResource("preload.js");
647-
648-
Path preloadHtmlPath = Paths.get(preloadHtml.toURI());
649-
Path preloadJsPath = Paths.get(preloadJs.toURI());
650645

651-
ApplicationOptions options = TestUtils.getAppOptions(preloadHtmlPath.toUri().toString());
652-
options.getMainWindowOptions().setPreload(preloadJsPath.toUri().toString());
646+
ApplicationOptions options = TestUtils.getAppOptions(null);
647+
options.getMainWindowOptions().setPreload("https://cdn.openfin.co/examples/junit/preload.js");
653648

654649
Application application = TestUtils.runApplication(options, desktopConnection);
655650

0 commit comments

Comments
 (0)