summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-11-25 13:15:49 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-11-25 13:17:52 +0000
commit55c6f5f36dfe0d917533a6056c4393debb16138c (patch)
treef7c7a39d7805dbdf33c6126b6da035cdfc929007 /sc
parent2092a4588888bf7d9013415e2b9a2c5cd6113a7f (diff)
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
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/extras/macros-test.cxx5
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;