You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2020/06/24 09:31:41 UTC
[myfaces-tobago] 01/04: slightly better naming for setup function
of Jasmine test tools
This is an automated email from the ASF dual-hosted git repository.
lofwyr pushed a commit to branch jsf23+quarkus
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
commit 7ad914f43be15d7d2373d2e021f7f37754866521
Author: Henning Nöth <hn...@apache.org>
AuthorDate: Fri Jun 12 15:59:09 2020 +0200
slightly better naming for setup function of Jasmine test tools
---
.../META-INF/resources/tobago/test/tobago-test-tool.js | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/tobago-tool/tobago-tool-test/src/main/resources/META-INF/resources/tobago/test/tobago-test-tool.js b/tobago-tool/tobago-tool-test/src/main/resources/META-INF/resources/tobago/test/tobago-test-tool.js
index 19131ac..13e6d73 100644
--- a/tobago-tool/tobago-tool-test/src/main/resources/META-INF/resources/tobago/test/tobago-test-tool.js
+++ b/tobago-tool/tobago-tool-test/src/main/resources/META-INF/resources/tobago/test/tobago-test-tool.js
@@ -250,19 +250,19 @@ class JasmineTestTool {
}
/**
- * The condition function (fn1) defines the desired state before the main test starts. The do function (fn2) will be
- * executed if the condition function returns false.
- * @param fn1 condition function
- * @param fn2 do function
+ * The require function (require) defines the desired state before the main test starts. The fix function (fix)
+ * will be executed if the require function returns false.
+ * @param require function
+ * @param fix function
*/
- setup(fn1, fn2) {
+ setup(require, fix) {
this.do(() => {
- if (!fn1()) {
- console.debug("[JasmineTestTool] fn1() returns false, execute fn2()");
- fn2();
+ if (!require()) {
+ console.debug("[JasmineTestTool] require() returns false, execute fix()");
+ fix();
}
})
- this.wait(fn1);
+ this.wait(require);
}
/**