diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-09 13:27:06 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-06-11 06:47:23 +0000 |
commit | 754ade38ddb2e96187d00f3e621203cea34961fa (patch) | |
tree | 52bd945487d1a9ce850cba1d091d4f403da0481d /sc/qa | |
parent | c82c94b40157c08bbbc524b2dc02714cbe82dc65 (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 'sc/qa')
-rw-r--r-- | sc/qa/complex/calcPreview/ViewForwarder.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/qa/complex/calcPreview/ViewForwarder.java b/sc/qa/complex/calcPreview/ViewForwarder.java index ea74e4132aa9..2c23a43cf86a 100644 --- a/sc/qa/complex/calcPreview/ViewForwarder.java +++ b/sc/qa/complex/calcPreview/ViewForwarder.java @@ -235,7 +235,7 @@ public class ViewForwarder { return; } - util.utils.pause(500); + util.utils.waitForEventIdle(mXMSF); System.out.println("Press any key after resizing "); try{ @@ -277,7 +277,7 @@ public class ViewForwarder { System.out.println("P-Parent-BoundsWidth= "+accPPC.getBounds().Width); System.out.println("P-Parent-BoundsHeight= "+accPPC.getBounds().Height); - util.utils.pause(500); + util.utils.waitForEventIdle(mXMSF); System.out.println("Press any key when the second line is on top"); try{ @@ -639,7 +639,7 @@ public class ViewForwarder { return; } - util.utils.pause(500); + util.utils.waitForEventIdle(mXMSF); System.out.println("Press any key after resizing "); try{ @@ -681,7 +681,7 @@ public class ViewForwarder { System.out.println("P-Parent-BoundsWidth= "+accPPC.getBounds().Width); System.out.println("P-Parent-BoundsHeight= "+accPPC.getBounds().Height); - util.utils.pause(500); + util.utils.waitForEventIdle(mXMSF); System.out.println("Press any key when the header is not visible."); try{ @@ -845,7 +845,7 @@ public class ViewForwarder { return; } - util.utils.pause(500); + util.utils.waitForEventIdle(mXMSF); XWindow xWindow = AccessibilityTools.getCurrentWindow(xModel); XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow); @@ -924,7 +924,7 @@ public class ViewForwarder { return; } - util.utils.pause(500); + util.utils.waitForEventIdle(mXMSF); xSpreadsheetDoc = UnoRuntime.queryInterface( XSpreadsheetDocument.class, xComp); @@ -957,7 +957,7 @@ public class ViewForwarder { return; } - util.utils.pause(500); + util.utils.waitForEventIdle(mXMSF); System.out.println("Press any key when a shape is on top."); try{ |