https://bugs.documentfoundation.org/show_bug.cgi?id=163016

--- Comment #5 from Neil Roberts <[email protected]> ---
I think the reason the prototype doesn’t work is that the BasicLibraries global
is only defined whenever a frame with a component gets focus. Ie,
SfxObjectShell::SetCurrentComponent eventually calls
BasicManager::SetLibraryContainerInfo. I guess the basic_coverage test doesn’t
create a component so the global is never defined.

I think the C++ proposal in the commit message doesn’t work because that is
loading the library into the document’s library container but it needs to be
loaded into the global one in order to work (I admit I’m not really sure why…)

I had a go at making a unit test specially for ScriptForge that runs script
files in a directory. Each script should be in a subdirectory with the name of
the component to create for the tests within.

https://gerrit.libreoffice.org/c/core/+/212185

There are some example tests here:

https://gerrit.libreoffice.org/c/core/+/212186

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to