2 ' This file is part of the LibreOffice project.
4 ' This Source Code Form is subject to the terms of the Mozilla Public
5 ' License, v. 2.0. If a copy of the MPL was not distributed with this
6 ' file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 Function doUnitTest() As String
14 verify_testErrorMessage
15 doUnitTest
= TestUtil
.GetResult()
18 Sub verify_testErrorMessage()
20 try
: On Error Goto catch
26 ' tdf#123144 - check for a meaningful error message
27 ' Without the fix in place, this test would have failed with
28 ' - Expected: Variable not defined.\n Additional information: a
30 TestUtil
.AssertEqual(Err
.Description
, _
31 + "Variable not defined." & Chr
$(10) & "Additional information: a", _
32 + "Err.Description failure (Err.Description = " & Err
.Description
& ")")