Backport fix for bug 336514: The performance test JavaReplaceAllTest fails on Linux machine
diff --git a/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/performance/AbstractJavaReplaceAllTest.java b/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/performance/AbstractJavaReplaceAllTest.java
index 1856270..9c5ceed 100644
--- a/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/performance/AbstractJavaReplaceAllTest.java
+++ b/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/performance/AbstractJavaReplaceAllTest.java
@@ -88,25 +88,26 @@
runAction(action);
// Fill Find field
- SWTEventHelper.pressKeyChar(display, FIND);
+ SWTEventHelper.pressKeyChar(display, FIND,false);
// Switch to Replace field
- SWTEventHelper.pressKeyCode(display, SWT.TAB);
+ SWTEventHelper.pressKeyCode(display, SWT.TAB,false);
// Fill Replace field
- SWTEventHelper.pressKeyChar(display, REPLACE);
+ SWTEventHelper.pressKeyChar(display, REPLACE,false);
performanceMeter.start();
// Press Replace All button via mnemonic
- SWTEventHelper.keyCodeDown(display, SWT.MOD3);
- SWTEventHelper.pressKeyChar(display, 'a');
- SWTEventHelper.keyCodeUp(display, SWT.MOD3);
+ SWTEventHelper.keyCodeDown(display, SWT.MOD3,false);
+ SWTEventHelper.pressKeyChar(display, 'a',false);
+ SWTEventHelper.keyCodeUp(display, SWT.MOD3,false);
// Close Find/Replace dialog
- SWTEventHelper.pressKeyCode(display, SWT.ESC);
+ SWTEventHelper.pressKeyCode(display, SWT.ESC,false);
+ EditorTestHelper.runEventQueue();
DisplayHelper helper= new DisplayHelper() {
public boolean condition() {
return fEditor.isDirty() && display.getActiveShell() == fEditor.getEditorSite().getShell();
@@ -127,7 +128,6 @@
private void runAction(IAction action) {
action.run();
- EditorTestHelper.runEventQueue();
}