summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/lib
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-06-09 13:27:06 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-06-11 06:47:23 +0000
commit754ade38ddb2e96187d00f3e621203cea34961fa (patch)
tree52bd945487d1a9ce850cba1d091d4f403da0481d /qadevOOo/runner/lib
parentc82c94b40157c08bbbc524b2dc02714cbe82dc65 (diff)
speed up Java unit tests by removing sleeps
and replacing them with a call to XToolkitExperimental:: processEventsToIdle Change-Id: I9fd6cb8af43d902587186310aebe78b5a5ee6932 Reviewed-on: https://gerrit.libreoffice.org/16201 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'qadevOOo/runner/lib')
-rw-r--r--qadevOOo/runner/lib/MultiMethodTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/qadevOOo/runner/lib/MultiMethodTest.java b/qadevOOo/runner/lib/MultiMethodTest.java
index e7bf886c3223..ab2dd9630940 100644
--- a/qadevOOo/runner/lib/MultiMethodTest.java
+++ b/qadevOOo/runner/lib/MultiMethodTest.java
@@ -64,6 +64,7 @@ import com.sun.star.uno.UnoRuntime;
*
* @see TestResult
*/
+@SuppressWarnings("unused")
public class MultiMethodTest
{
@@ -465,4 +466,9 @@ public class MultiMethodTest
{
this.getClass().getField(fieldName).set(this, value);
}
+
+ protected final void waitForEventIdle() {
+ util.utils.waitForEventIdle(tParam.getMSF());
+ }
+
}