From f080526aca34c149222c8e19d78342d89b99c8bd Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 24 Dec 2018 18:15:17 +0300 Subject: [PATCH] Update to latest version of HtmlUnit --- tools/junit/pom.xml | 2 +- .../src/main/java/org/teavm/junit/HtmlUnitRunStrategy.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/junit/pom.xml b/tools/junit/pom.xml index 9055f81c7..30cf72255 100644 --- a/tools/junit/pom.xml +++ b/tools/junit/pom.xml @@ -43,7 +43,7 @@ net.sourceforge.htmlunit htmlunit - 2.19 + 2.33 diff --git a/tools/junit/src/main/java/org/teavm/junit/HtmlUnitRunStrategy.java b/tools/junit/src/main/java/org/teavm/junit/HtmlUnitRunStrategy.java index d733bb974..78a4a99f2 100644 --- a/tools/junit/src/main/java/org/teavm/junit/HtmlUnitRunStrategy.java +++ b/tools/junit/src/main/java/org/teavm/junit/HtmlUnitRunStrategy.java @@ -77,7 +77,7 @@ class HtmlUnitRunStrategy implements TestRunStrategy { decodeStack ? createStackDecoderFunction(resultParser) : null, new NativeJavaObject(function, asyncResult, AsyncResult.class) }; - pageRef.executeJavaScriptFunctionIfPossible(function, function, args, page.get()); + pageRef.executeJavaScriptFunction(function, function, args, page.get()); resultParser.parseResult((Scriptable) asyncResult.getResult(), run.getCallback()); }