diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-07-18 11:44:45 +0200 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-07-18 15:55:12 +0200 |
commit | 91bedcab61424cdfb2f3ba9e48481406fe141ceb (patch) | |
tree | 67c15068c4c1b46ea83c5f138ac9ebc776a79aea /unotest | |
parent | a7c1163684fa5c0376efebe8dc6225a7dfb8e700 (diff) |
Change from Module.intiUno() to Module.uno_init promise
...that is resolved from within C++ Desktop::InitApplicationServiceManager once
UNO is fully initialized, so client code can trigger on
Module.uno_init.then(...)
Change-Id: I2d4c542d9729d09f434502e3f966e9ee474e926c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170683
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'unotest')
-rw-r--r-- | unotest/source/embindtest/embindtest.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/unotest/source/embindtest/embindtest.js b/unotest/source/embindtest/embindtest.js index bb4d2716ee5d..a81937deed87 100644 --- a/unotest/source/embindtest/embindtest.js +++ b/unotest/source/embindtest/embindtest.js @@ -9,9 +9,8 @@ 'use strict'; -Module.addOnPostRun(function() { +Module.uno_init.then(function() { console.log('Running embindtest'); - Module.initUno(); let css = Module.uno.com.sun.star; let test = Module.uno.org.libreoffice.embindtest.Test.create(Module.getUnoComponentContext()); console.assert(typeof test === 'object'); |