summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2022-06-07 11:48:48 +0200
committerJean-Pierre Ledure <jp@ledure.be>2022-06-07 13:11:26 +0200
commitb4735aac82c6db0afd5692f485364510ac2d9a5d (patch)
treeed42d95da440979627f7442e8d5a08fb09dc421a /wizards
parent6ccff201088590274247fb9f63b7fa997cfee327 (diff)
ScriptForge - (SF_UnitTest) fix typos + layout reviews
Typos in comment lines Minor improvements of test report layout Change-Id: Ic19e55a84475b098959055ac1c573de629e21731 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135466 Tested-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/sfunittests/SF_UnitTest.xba16
1 files changed, 7 insertions, 9 deletions
diff --git a/wizards/source/sfunittests/SF_UnitTest.xba b/wizards/source/sfunittests/SF_UnitTest.xba
index 5237bb7ce88b..5007fb6a7255 100644
--- a/wizards/source/sfunittests/SF_UnitTest.xba
+++ b/wizards/source/sfunittests/SF_UnitTest.xba
@@ -271,7 +271,7 @@ End Property &apos; SFUnitTests.SF_UnitTest.ReturnCode (get)
REM -----------------------------------------------------------------------------
Property Get Verbose() As Variant
-&apos;&apos;&apos; The Verbose property indicates if all assertions are reported
+&apos;&apos;&apos; The Verbose property indicates if all assertions (True AND False) are reported
Verbose = _PropertyGet(&quot;Verbose&quot;)
End Property &apos; SFUnitTests.SF_UnitTest.Verbose (get)
@@ -975,8 +975,6 @@ End Function &apos; SFUnitTests.SF_UnitTest.AssertTrue
REM -----------------------------------------------------------------------------
Public Sub Fail(Optional ByVal Message As Variant)
&apos;&apos;&apos; Forces a test failure
-&apos;&apos;&apos; Args:
-
Dim bAssert As Boolean &apos; Fictive return value
Const cstThisSub = &quot;UnitTest.Fail&quot;
@@ -996,7 +994,7 @@ End Sub &apos; SFUnitTests.SF_UnitTest.Fail
REM -----------------------------------------------------------------------------
Public Sub Log(Optional ByVal Message As Variant)
-&apos;&apos;&apos; Forces to record the given message in the test report (console)
+&apos;&apos;&apos; Records the given message in the test report (console)
Dim bAssert As Boolean &apos; Fictive return value
Dim bVerbose As Boolean : bVerbose = _Verbose
@@ -1170,7 +1168,7 @@ Public Function RunTest(Optional ByVal TestSuite As Variant _
&apos;&apos;&apos; The default pattern is &quot;Test_*&quot;
&apos;&apos;&apos; Message: the message to be displayed in the console when the test starts.
&apos;&apos;&apos; Returns:
-&apos;&apos;&apos; The return code of the execution (RCxxx constants)
+&apos;&apos;&apos; One of the return codes of the execution (RCxxx constants)
&apos;&apos;&apos; Examples:
&apos;&apos;&apos; GlobalScope.BasicLibraries.loadLibrary(&quot;ScriptForge&quot;)
&apos;&apos;&apos; Dim test : test = CreateScriptService(&quot;UnitTest&quot;, ThisComponent, &quot;Tests&quot;)
@@ -1326,7 +1324,7 @@ Public Function SkipTest(Optional ByVal Message As Variant) As Boolean
&apos;&apos;&apos; Args:
&apos;&apos;&apos; Message: the message to be displayed in the console
&apos;&apos;&apos; Returns:
-&apos;&apos;&apos; The return code of the execution (RCxxx constants)
+&apos;&apos;&apos; True when successful
&apos;&apos;&apos; Examples:
&apos;&apos;&apos; GlobalScope.BasicLibraries.loadLibrary(&quot;ScriptForge&quot;)
&apos;&apos;&apos; Dim test : test = CreateScriptService(&quot;UnitTest&quot;, ThisComponent, &quot;Tests&quot;)
@@ -1357,7 +1355,7 @@ Try:
_ReturnCode = RCSKIPTEST
bSkip = True
&apos; Exit message
- sSkipMessage = _Duration(&quot;Test&quot;, True) &amp; &quot;SKIPTEST TESTSUITE=&apos;&quot; &amp; _Module &amp; &quot;&apos;&quot;
+ sSkipMessage = &quot; SKIPTEST testsuite=&apos;&quot; &amp; LibraryName &amp; &quot;.&quot; &amp; _Module &amp; &quot;&apos; &quot; &amp; _Duration(&quot;Suite&quot;, True)
_ReportMessage(sSkipMessage, Message)
End If
@@ -1630,7 +1628,7 @@ Try:
End Select
If Not IsNull(oTimer) Then
sDuration = CStr(oTimer.Duration) &amp; &quot; &quot;
- If pvBrackets Then sDuration = &quot;(&quot; &amp; Trim(sDuration) &amp; &quot; sec) &quot;
+ If pvBrackets Then sDuration = &quot;(&quot; &amp; Trim(sDuration) &amp; &quot; sec)&quot;
Else
sDuration = &quot;&quot;
End If
@@ -1817,4 +1815,4 @@ Const cstMaxLength = 50 &apos; Maximum length for items
End Function &apos; SFUnitTests.SF_UnitTest._Repr
REM ============================================== END OF SFUNITTESTS.SF_UNITTEST
-</script:module>
+</script:module> \ No newline at end of file