This is an automated email from the ASF dual-hosted git repository. jtulach pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans-html4j.git
The following commit(s) were added to refs/heads/master by this push: new d06af255 Only fallback to execute when no tcks present new f24abe58 Mergng bugfix of "later" TCK test d06af255 is described below commit d06af2555cd9733e5339d9d25a7b2cf7e1dbe3f6 Author: Jaroslav Tulach <jaroslav.tul...@apidesign.org> AuthorDate: Sun May 15 08:02:15 2022 +0200 Only fallback to execute when no tcks present --- .../src/main/java/net/java/html/js/tests/JsUtils.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/json-tck/src/main/java/net/java/html/js/tests/JsUtils.java b/json-tck/src/main/java/net/java/html/js/tests/JsUtils.java index a370f1bf..71bc3a58 100644 --- a/json-tck/src/main/java/net/java/html/js/tests/JsUtils.java +++ b/json-tck/src/main/java/net/java/html/js/tests/JsUtils.java @@ -55,13 +55,18 @@ public class JsUtils { static boolean executeNow(Class<?> clazz, String script) { try { - for (JavaScriptTCK j : tcks(clazz)) { - if (j.executeNow(script)) { - return true; + final Iterable<JavaScriptTCK> tcks = tcks(clazz); + if (tcks.iterator().hasNext()) { + for (JavaScriptTCK j : tcks) { + if (j.executeNow(script)) { + return true; + } } + return false; + } else { + execute(clazz, script); + return true; } - execute(clazz, script); - return true; } catch (Exception ex) { throw raise(RuntimeException.class, ex); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists