office-gobmx/unotest
Stephan Bergmann ac175a43c9 Add a toDelete parameter to Module.throwUnoException
...as there can be situations (cf. the newly added test code in embindtest.js)
where objects that need to be deleted are passed as payload of the exception
value to be thrown.  So there now is a (mandatory, as Embind doesn't allow to
implicitly pass undefined) third parameter now that must be an array of objects
on which to call .delete().

(75fe059974 "Embind: throwUnoException from JS"
had deliberately made throwUnoException take two arguments, because if it
"directly took a css::uno::Any argument, JS client code would need to create one
with `new Module.uno_Any(...)` and call .delete() on it, but there is no place
where it could call .delete()".  There now would be such a place, but it would
probably still be tedious most of the time to explicitly construct a new uno_Any
to pass into throwUnoException both as the exception and in the toDelete array.
So keep that design decision to have throwUnoException take individual type and
value arguments.)

Change-Id: Idec029d9e500457b02d20d899b9a2328cd7a5d7e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171024
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-07-25 22:39:23 +02:00
..
source Add a toDelete parameter to Module.throwUnoException 2024-07-25 22:39:23 +02:00
IwyuFilter_unotest.yaml
Jar_test-tools.mk
Jar_test.mk
Library_embindtest.mk Missing gb_Library_use_libraries,embindtest 2024-07-17 11:04:26 +02:00
Library_unobootstrapprotector.mk
Library_unoexceptionprotector.mk
Library_unotest.mk qa: call ProcessEventsToIdle inside dispatchCommand 2023-02-21 20:20:29 +00:00
Makefile
Module_unotest.mk Fold InternalUnoApi_embindtest into UnoApi_udkapi 2024-02-28 07:52:11 +01:00
README.md

Tests for UNO

Contains tests for UNO