File tree Expand file tree Collapse file tree
src/test/java/com/openfin/desktop Expand file tree Collapse file tree File renamed without changes.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments