diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-11-25 13:15:49 +0000 |
---|---|---|
committer | Robinson Tryon <qubit@runcibility.com> | 2015-11-25 16:20:45 -0500 |
commit | 532b98ff2e5a18d1a2ab13fb79b03b38a284341a (patch) | |
tree | 9b8fcb8ae3c982d5d41d3e576a3d2a9f46d857b2 | |
parent | Version 5.1.0.0.beta1, tag libreoffice-5.1.0.0.beta1 (diff) | |
download | core-532b98ff2e5a18d1a2ab13fb79b03b38a284341a.tar.gz core-532b98ff2e5a18d1a2ab13fb79b03b38a284341a.zip |
sc: force vba events ordering.
Otherwise we get workbook load events (eg.) happening at idle, which
occurs at (more or less) random places as the StarBasic interpreter
Yields every few instructions executed.
Change-Id: I51ea57f4ad45e30e04fe84a9dc051ed1c5537536
-rw-r--r-- | sc/qa/extras/macros-test.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/qa/extras/macros-test.cxx b/sc/qa/extras/macros-test.cxx index 70b70095715f..e2a6f320ce23 100644 --- a/sc/qa/extras/macros-test.cxx +++ b/sc/qa/extras/macros-test.cxx @@ -306,6 +306,11 @@ void ScMacrosTest::testVba() OUString sMsg( "Failed to load " + aFileName ); CPPUNIT_ASSERT_MESSAGE( OUStringToOString( sMsg, RTL_TEXTENCODING_UTF8 ).getStr(), xComponent.is() ); + // process all events such as OnLoad events etc. + // otherwise the tend to arrive later at a random + // time - while processing other StarBasic methods. + Application::Reschedule(true); + Any aRet; Sequence< sal_Int16 > aOutParamIndex; Sequence< Any > aOutParam; |