Skip to content

Commit

Permalink
Update MiscellaneousTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Aug 14, 2020
1 parent 717dd93 commit ad72fd6
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,17 @@ void waitForCompletion() {
});
}

@Test public void loadJrtCssFileSuccessfully() {
getEngine().setUserStyleSheetLocation("jrt:/javafx.web/html/imported-styles.css");
@Test public void jrtCssFileIsNotRejected() {
submit(() -> {
try {
getEngine().setUserStyleSheetLocation("jrt:/javafx.web/html/imported-styles.css");
} catch (IllegalArgumentException e) {
// A jrt file is supposed to be a valid argument
throw new AssertionError(e);
} catch (RuntimeException e) {
// The css file cannot be loaded in the tests (since they are not modularized).
// We thus simply ignore this exception here
}
});
}
}

0 comments on commit ad72fd6

Please sign in to comment.